[chimerax-users] How to select one of ligands which is named in different numbers

Elaine Meng meng at cgl.ucsf.edu
Mon Nov 11 10:31:24 PST 2019


Hi Meinan,
It is hard to tell without seeing your input file.  You can use residue name or residue number, but you need to put them after a colon (symbol : ).  I am guessing that the residue names are all the same (LIG) but the residue numbers are different (1,2,3,…)

To use residue name (but this would show all the residues with that name):

show :lig target a

To use residue number:

show :2 target a

However, maybe you have more than one file open.  Each file you open gets its own model number, which is specified with #.  Since maybe more than one model contains the same residue number, you would probably want to specify both model number and residue number.  If the ligands are in model #1 then something like:

show #1:2 target a

How to use model number, residue number, residue name, etc. in the command line is explained in this page.  There are also several examples:

<http://rbvi.ucsf.edu/chimerax/docs/user/commands/atomspec.html>

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




> On Nov 10, 2019, at 1:07 PM, Meinan Lyu <mxl1032 at case.edu> wrote:
> 
> Hi,
> 
> I am having trouble in how to select one of the ligands which named LIG 1, LIG 2, LIG 3, LIG 4, etc. when I hide all of them and want to specifically show LIG 1, using "show LIG 1 target a" command does not work. How to deal with this that the ligand name have a space inside? Thank you very much.
> 
> Best regards
> Meinan




More information about the ChimeraX-users mailing list