[Chimera-users] Selection command for atoms in different models

Woodbrey Anne awoodbrey at lallemand.com
Tue Dec 14 15:07:54 PST 2021


YESSSS!!!!! THANK YOU!!!

-----Original Message-----
From: Elaine Meng <meng at cgl.ucsf.edu> 
Sent: Tuesday, December 14, 2021 6:02 PM
To: Woodbrey Anne <awoodbrey at lallemand.com>
Cc: chimera-users at cgl.ucsf.edu
Subject: Re: [Chimera-users] Selection command for atoms in different models

Hi Annie,
Sure, you could just select them all with command:

select #0:230,260 #1:232,262

You can also use commands like the following without bothering to select first, e.g.:

color magenta #0:230,260 #1:232,262
color byhet #0:230,260 #1:232,262

Also what I like to do sometimes is just make an alias for a set of residues, e.g. commands:

alias myres #0:230,260 #1:232,262
show myres
color magenta myres
color byhet myres

Command-line atom specification:
<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rbvi.ucsf.edu%2Fchimera%2Fdocs%2FUsersGuide%2Fmidas%2Fframeatom_spec.html&data=04%7C01%7Cawoodbrey%40lallemand.com%7C4d2f9797648840b1556008d9bf55d8c8%7C8287db1ce074412b9c78e1d70e3cc068%7C0%7C0%7C637751198118971412%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Ck7yXfJAYmGPLo%2B%2F6u8UORDn5U322ojZH%2FkMGVvUYlg%3D&reserved=0>

alias command:
<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rbvi.ucsf.edu%2Fchimera%2Fdocs%2FUsersGuide%2Fmidas%2Falias.html&data=04%7C01%7Cawoodbrey%40lallemand.com%7C4d2f9797648840b1556008d9bf55d8c8%7C8287db1ce074412b9c78e1d70e3cc068%7C0%7C0%7C637751198118971412%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=WMBBJaoF%2FKr9sxgYrbUUKKW9NQfpYVw5QqxdLFCrGYc%3D&reserved=0>

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

> On Dec 14, 2021, at 2:19 PM, Woodbrey Anne via Chimera-users <chimera-users at cgl.ucsf.edu> wrote:
> 
> Hi,
> Is there a way to select residues from 2 different models using a single line of command?
>  
> For example, I want to select residues 230 and 260 of Model 0 and residues 232 and 262 of Model 1. I then want to display the side chains, color magenta, then color by heteroatom.
> This is what my current (annoying) workflow is:
> select #0:230,260
> Actions à Color à Magenta
> Actions à Color à By heteroatom
> select #1:232,262
> Actions à Color à Magenta
> Actions à Color à By heteroatom
> I know I can do the following instead:
> disp #0:230,260
> color magenta #0:230,260
> color byhet #0:230,260
>               Repeat for #1:232,262
> .but it doesn't really save any time.
>  
> I want to select all 4 residues at once without having to ctrl + shift + click on them all. Please tell me there's a way!
>  
> Thank you,
> Annie




More information about the Chimera-users mailing list