[Chimera-users] select by atom number

Eric Pettersen pett at cgl.ucsf.edu
Wed Mar 9 12:56:09 PST 2011


On Mar 9, 2011, at 12:31 PM, Elaine Meng wrote:

> Hi Francesco,
> Well, it's not really a trick, you can just use the "serialNumber"  
> attribute like other attributes in the command line, for example:
>
> select @/serialNumber=19
> sel @/serialNumber>12 and serialNumber<16

If you will be doing many commands with serial numbers, you can reduce  
the strain on your fingers with the "alias" command, e.g.:

alias sn @/serialNumber

then the two commands Elaine gave would be:

select sn = 19
sel sn > 12 & sn < 16

Note that alias is a simple textual substitution and that therefore  
there have to be spaces around the "sn" (e.g. "sn > 12" rather than  
"sn>12").

--Eric

                         Eric Pettersen
                         UCSF Computer Graphics Lab
                         http://www.cgl.ucsf.edu


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20110309/7b78fd16/attachment.html>


More information about the Chimera-users mailing list