Hi Ioannis,
You could make a mapping of rank to residue selection and then sort that by
rank. Something like this:
from pymol import cmd, stored
stored.mydict = {}
cmd.iterate("guide", "stored.mydict[rank] = f'///{chain}/{resi}'")
for rank, sele in sorted(stored.mydict.items()):
cmd.iterate(
Hello,
Is there any way to iterate over residues by index in the PDB file (not
resi, but the absolute order of the residues in the pdb). Something like
the equivalent of ‘rank’ for atoms, but in residue level.
Best,
Ioannis
___
PyMOL-users mailing