[Chimera-users] Name selection

Elaine Meng meng at cgl.ucsf.edu
Thu Apr 6 14:37:15 PDT 2006

Hi Eduardo,
We intend to add a command to name the selection, but this has not  
yet been done.  In the meanwhile, the "alias" command might do what  
you need. For example, instead of first selecting

command> select ions z<5 & :/kdHydrophobicity>1 & ~ :trp

(residues within 5 Angstroms of ions, with Kyte-Doolittle  
hydrophobicity greater than 1, but not tryptophans) and then naming  
the selection, you could alias the expression and reuse it:

command> alias mystuff ions z<5 & :/kdHydrophobicity>1 & ~ :trp
command> col byatom mystuff
command> repr stick mystuff

or even
command> sel mystuff

if you needed the atoms to be selected for some other purpose.

Man page for "alias":

Man page for command-line specifications:

I hope this helps,

On Apr 6, 2006, at 2:15 PM, Eduardo Sanz Garcia wrote:

> Hi everybody,
> Is there any way to give a name to a selection from the command line?
> Same as: Select... Name Selection... but from the command line.
> Thank you.

Elaine C. Meng, Ph.D.                          meng at cgl.ucsf.edu
UCSF Computer Graphics Lab and Babbitt Lab
Department of Pharmaceutical Chemistry
University of California, San Francisco

More information about the Chimera-users mailing list