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,
   Thomas

jp d wrote, On 06/24/11 22:57:
> 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

--
Thomas Holder
MPI for Developmental Biology
Spemannstr. 35
D-72076 Tübingen

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to