Re: [PyMOL] Fwd: What is the difference between Atom ID and Index

2010-11-01 Thread Tsjerk Wassenaar
Hey Martin, rank? I didn't know that one :p Checking your structure, it seems to me that: ID is the numbering as in the PDB file rank is a numbering from 1 to N, following the order of atoms in the PDB file index is an internal index to an array that contains the atoms, sorted by element The

Re: [PyMOL] Fwd: What is the difference between Atom ID and Index

2010-11-01 Thread Martin Hediger
Thanks Hongbo Zhu. Great summary of the topic. Rank rules. Martin On 01.11.10 11:57, Hongbo Zhu wrote: ID is theexternal-index-number, which is parsed from columns 7-11 of the PDB file (Atom serial number). Try pymol command: select id 110 RANK is the order of the atoms as they are listed

Re: [PyMOL] Fwd: What is the difference between Atom ID and Index

2010-10-31 Thread Tsjerk Wassenaar
Hi Martin, So it seems I was right :D ID is an atomic property, read from the PDB file, whereas index is an 'internal' identifier. Following Jasons comments, ID is not changed upon additions/deletions, whereas index does. For your purpose, you probably want to make sure that the IDs are

[PyMOL] Fwd: What is the difference between Atom ID and Index

2010-10-25 Thread Tsjerk Wassenaar
Never get used to that only-reply-to-sender policy... -- Forwarded message -- From: Tsjerk Wassenaar tsje...@gmail.com Date: Mon, Oct 25, 2010 at 12:30 PM Subject: Re: [PyMOL] What is the difference between Atom ID and Index To: Martin Hediger ma@bluewin.ch Hi Martin, ID

Re: [PyMOL] Fwd: What is the difference between Atom ID and Index

2010-10-25 Thread Martin Hediger
Thanks Tsjerk (on both occasions). As a matter of fact, I'm kind of making a living out of writing a Python script once in a while, so thats no worry ;) What I was trying to get at was that I was trying to understand how certain PyMOL scripts work, and naturally from that become able to improve

Re: [PyMOL] Fwd: What is the difference between Atom ID and Index

2010-10-25 Thread Jason Vertrees
Hi Martin Tsjerk, There is a another difference between the two aside from the off-by-one characteristic. PyMOL has to keep track of atoms, so a simple 'index' could work. But, then when the user removes an atom from the middle of a structure, do we shift indices above it down? (This could