From: jp d <yo...@ya...> - 2011-06-24 20:57:40
|
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 |
From: Thomas H. <sp...@us...> - 2011-06-26 18:01:54
|
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 |