Re: [PyMOL] next resi

2011-06-26 Thread Thomas Holder
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,

[PyMOL] next resi

2011-06-24 Thread jp d
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