[Chimera-users] help with command line selections

Elaine Meng meng at cgl.ucsf.edu
Thu Apr 21 08:43:16 PDT 2011


Hi Corey,
For your example you could use the command-line selector

:.a & strand
- or -
:.a & :/isStrand
- or -
:.a & :/isSheet

where "&" means an intersection.   If you have other models, you would use #0:.a for model 0, chain A instead of just the :.a for all chains A.

If you will be referring to this set of atoms frequently in the command line, an alias may be more convenient, for example:

alias sheeta :.a & strand
alias sheetb :.b & strand
color red sheeta
color dodger blue sheetb

<http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/frameatom_spec.html>
<http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/atom_spec.html#combinations>

I hope this helps!
Elaine
----------
Elaine C. Meng, Ph.D. 
UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab
Department of Pharmaceutical Chemistry
University of California, San Francisco

On Apr 20, 2011, at 8:00 PM, Corey Fugate wrote:

> For example,
> 	I have model #0 with chains A and B, how do I select the beta-sheets  
> in chain A?  I tried :.A:/isSheet and that selects all of chain A, not  
> just the sheets.
> 
> 			Corey
> 
> On Apr 20, 2011, at 4:31 PM, Corey Fugate wrote:
> 
>> 	I'm having a hard time figuring out how to select secondary
>> structural elements from the command line.
>> 
>> 			Can someone help me with this?
>> 
>> 						Corey





More information about the Chimera-users mailing list