[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
(etc.)
or even
command> sel mystuff
if you needed the atoms to be selected for some other purpose.
Man page for "alias":
http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/alias.html
Man page for command-line specifications:
http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/
frameatom_spec.html
I hope this helps,
Elaine
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
http://www.cgl.ucsf.edu/home/meng/index.html
More information about the Chimera-users
mailing list