[Chimera-users] Chimera comands

Elaine Meng meng at cgl.ucsf.edu
Tue Nov 14 13:17:54 PST 2017

Hi Michał,
Yes, it’s a little tricky finding commands for some of those things.

(1) open trajectory would just be done with “open” but you have to use a metafile, which is a text file listing the input file(s) as well as any other parameters that would be required inputs if you were using the MD Movie GUI.  Examples and explanation:

(2) there is no command to open a generic pseudobond file, just the PseudoBond Reader tool (in menu under Tools… Depiction).  However, you can either have python to open it, or instead use a bunch of “distance” commands to add distance monitor pseudobonds.  You can control their colors etc. with “setattr,” for example:

distance :53.a at ca :58.a at ca
setattr p label ''
setattr p color dodger blue
setattr g lineType 1
setattr g lineWidth 3

If you select any pseudobond and then show the Selection Inspector by clicking the green magnifying glass, you can see in the dialog which attributes are of the pseudobond (“p” in setattr) or pseudobond group (“g”) and (by mouseover in the dialog) its name and values that could be used in the setattr command.  You can put atomspecs at the ends of those setattr commands to only affect certain pseudobonds instead of all pseudobonds.

The label command has two single quotation marks (not a single double quotation mark). You could also use two double quotation marks, but be sure to type in the plain ones… my e-mail app insists on changing them to fancy open and close quotation marks, which won’t work.

(3) The “volume” command includes options to change origin and voxel size.

(4) You can rotate a model with “turn” or “roll”.

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

> On Nov 14, 2017, at 1:41 AM, Michał Kadlof <m.kadlof at cent.uw.edu.pl> wrote:
> Hello,
> I have some troubles with finding in documentation suitable commands.
> How do I should write script which:
> - open a trajectory in saved PDB or PSF/DCD in MD movie tool.
> - read pseudobonds from file, and change the color of all of them at once
> - change origin, voxel size and rotation angle of opened volumetric data
> Can you help me?
> --
> ​best wishes,
> Michał Kadlof <m.kadlof at cent.uw.edu.pl>

More information about the Chimera-users mailing list