[chimerax-users] Distance between two residues

Elaine Meng meng at cgl.ucsf.edu
Sun Aug 7 10:47:10 PDT 2022


Hi Kwangjun,
There is a "distance" command to measure the distance between two atoms.  So you would need to say which atoms (points) you want to measure between.  See the help page with command "help distance" or see the copy at our website:
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/distance.html>

How to specify atoms in the command line
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/atomspec.html#hierarchy>

For example, to measure the CA-CA distance:

distance /A:100 at ca /B:200 at ca

Or if you mean you want all pairs of possible atom-atom distances you could use "contacts" with a permissive distance:
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/clashes.html>

contacts /A:100 restrict /B:200 dist 100 log true

The User Guide index has a list of commands with short descriptions, for when you are trying to find a command that does a particular thing. Use menu: Help... User Guide, or see the copy at our website:
<https://www.rbvi.ucsf.edu/chimerax/docs/user/index.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 Aug 5, 2022, at 9:18 PM, Kwangjun Lee via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
> 
> Hello,
> Do you have a command that measures the distance between two residues?
> For example, I have a dimer model, and I want to measure the distance between /A:100 and /B:200
> Thanks!
> Kwangjun Lee




More information about the ChimeraX-users mailing list