[chimerax-users] deleting sidechain in ChimeraX

Elaine Meng meng at cgl.ucsf.edu
Mon Apr 20 16:41:20 PDT 2020


Hi Joel,
The command to delete atoms is "delete" ... mainly need to consult the documentation on how to specify the set of atoms that you want, considering that it's not "undo"able!

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

Something like:

delete #4/A:4-45,53,80-90 & sideonly

However, to check your atomspec before deleting you may want to check it with select first instead of delete:

select #4/A:4-45,53,80-90 & sideonly
delete sel

...assuming you don't want to delete CA atoms. #4 is model 4, /A is chain A (case only important if you have both upper- and lowercase), and then the stuff after : is residue numbers and ranges.  If you wanted to delete CA atoms also, it would be "sidechain"  instead of "sideonly" (this is so that "show sidechain" will actually connect the sidechain display to ribbon instead of having just CB onward floating in space).

These things are all described in that "atomspec" page linked above, which is admittedly long because there are several different ways of specifying atoms or other models.

Also you could use the Sequence Viewer to select residues by dragging a box around them
<http://rbvi.ucsf.edu/chimerax/docs/user/tools/sequenceviewer.html>

...and then intersect with sidechain in the delete command:

delete sel & sideonly

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

> On Apr 20, 2020, at 4:29 PM, Joel Meyerson <jrm2008 at med.cornell.edu> wrote:
> 
> Hi,
> What is the command or sequence of commands which can be used to delete the sidechain on an amino acid or range of amino acids? I reviewed the ChimeraX atom spec page but could not find a way to do this.
> 
> Thanks,
> Joel




More information about the ChimeraX-users mailing list