Hi jpd,
if your selection is named sele, then try this:
# previous resi
iterate name C and neighbor byres sele, print (resi,resn)
# next resi
iterate name N and neighbor byres sele, print (resi,resn)
More on selection operators:
http://pymolwiki.org/index.php/Selection_Algebra
Cheers,
hi,
is there a way in pymol/python scripts to
determine what the next or previous resi would be?
it needs to handle insertions and deletions
thanks
jpd
--
All the data continuously generated in your IT infrastructure