[Chimera-users] Selecting multiple residues in one chain

Elaine Meng meng at cgl.ucsf.edu
Sun Jan 12 08:52:17 PST 2020

Hi Yehuda,
You could try intersection:

select #1:15,18,20 & :.B

…or two steps (with the second step subtracting non-B) if you like that better:

select #1:15,18,20
~select ~:.B

I hope this helps,
Elaine C. Meng, Ph.D.                       
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco

> On Jan 12, 2020, at 1:52 AM, Yehuda Halfon <yehuda.halfon at weizmann.ac.il> wrote:
> HI all, 
> I want to select and color multiple residues in one chain.
> When I use 
> select #1: 15, 18, 20 .B
> It select 15, 18 and 20 in all the chains. But when I use
> select #1: 15.B, 18.B, 20.B
> It select 15, 18 and 20 in chain B. 
> Is there another way to select residues in one chain without adding .B after each one? It makes the script much bigger and less clean.
> Yehuda

More information about the Chimera-users mailing list