Back to TABLE OF CONTENTS
Command Reference:
A-C
D-H
I-P
Q-Se
Se-St
T-Z
Syntax: label {<string>} label <boolean>The RasMol label command allows an arbitrary formatted text string to be associated with each currently selected atom. This string may contain embedded 'expansion specifiers' which display properties of the atom being labelled. An expansion specifier consists of a '%' character followed by a single alphabetic character specifying the property to be displayed (similar to C's printf syntax). An actual '%' character may be displayed by using the expansion specifier '%%'.
The color of each label may be changed using the color label command. By default, each label is drawn in the same
color as the atom to which it is attached. The size of the displayed text may be changed using the set fontsize command.
The following table lists the current expansion specifiers:
%a Atom Name %b %t B-factor/Temperature %c %s Chain Identifier %e Element Atomic Symbol %i Atom Serial Number %m single letter amino acid code %n Residue Name; three letter code %r Residue NumberThe syntax of RasMol atom expressions allows the selection of individual molecule conformations if present in an NMR file. The simplest form of the atom expression is the syntax "::25" to select model 25 from the molecule. This is equivalent to the atom expression, "model = 25", as the keyword model may now be used in comparison expressions. The most general form of atom expression is now CYS32:A:25.SG which denotes the gamma sulfur of residue cysteine-32 in chain A of model 25.
Syntax: load {<format>} <filename> load {<format>} inlineLoad a molecule coordinate file into RasMol. Valid molecule file formats are pdb (Brookhaven Protein Databank), mdl (Molecular Design Limited's MOL file format), alchemy (Tripos' Alchemy file format), mol2 (Tripos' Sybyl Mol2 file format), mopac (mopac file format; either Cartesian or z-matrix format), nmrpdb (nmr multi-pdb file format), charmm (CHARMm file format) or xyz (MSC's XMol XYZ file format). If no file format is specified, pdb is assumed by default. Only a single molecule may be loaded at a time. To delete a molecule prior to loading another, use the RasMol zap command.
The load command selects all the atoms in the molecule, centers it on the screen and renders it as a CPK colored wireframe model. If the molecule contains no bonds (i.e. contains only alpha carbons), it is drawn as an alpha carbon backbone. If the file specifies less bonds than atoms, RasMol determines connectivity using the connect command.
The load inline command also allows the storing of atom coordinates in scripts to allow better integration with WWW browsers. A load command executed inside a script file may now specify the keyword inline instead of a conventional filename. This option specifies that the coordinates of the molecule to load are stored in the same file as the currently executing commands. Typically this is used in the command load pdb inline, which is followed by a number of RasMol commands terminated by the command exit. The exit command terminates execution of the current script and returns control to the command line (or the calling script). This means any lines following exit are never interpreted by RasMol. These may be used to store atomic coordinates in PDB file format. Because in Brookhaven PDB file format, any line not recognized by the parser should be ignored, only lines beginning ATOM, HETATM, TER, etc. are examined. Hence a file may be both a RasMol script and a PDB file simultaneously. This allows both coordinate and representation data to be transmitted as a single file. One possible use is a standard RasMol script prefix that may be concatenated with an appropriate PDB file on-the-fly.
Syntax: monitor <number> <number> monitor {<boolean>}The RasMol monitor command allows the display of distance monitors. A distance monitor is a dashed (dotted) line between an arbitrary pair of atoms, optionally labelled by the distance between them. The RasMol command monitor <number> <number> adds such a distance monitor between the two atoms specified by the atom serial numbers given as parameters.
Distance monitors may also be added to a molecule interactively with the mouse, using the set picking monitor command. Clicking on an atom results in its being identified on the rasmol command line. In addition every atom picked increments a modulo counter such that in monitor mode, every second atom displays the distance between this atom and the previous one. The shift key may be used to form distance monitors between a fixed atom and several consecutive positions. A distance monitor may also be removed (toggled) by selecting the appropriate pair of atom end points a second time.
Syntax: pauseThe RasMol pause command is used in script files to stop the script file for local manipulation by a mouse, until any key is pushed to restart the script file. Wait is synonymous with pause.
This command may be executed in RasMol script files to suspend the sequential execution of commands and allow the user to examine the current image. When RasMol executes a pause command in a script file, it suspends execution of the rest of the file, refreshes the image on the screen and allows the manipulation of the image using the mouse and scroll bars, or resizing of the graphics window. Once a key is pressed, control returns to the script file at the line following the pause command. While a script is suspended the molecule may be rotated, translated, scaled, slabbed and picked as usual, but all menu commands are disabled. The pause can probably be used most effectively with echo commands in education pre-scripted demonstrations, where a description of the current image is presented to the user/student. Typically the command before a pause should be "echo Press any key to continue".
Execution of a script can be cancelled by pressing Control-D or Control-Z (on VAX/VMS, Control-C) while standing at a pause. The command set picking none disables picking, which avoids the display of spurious messages whilst a script is suspended at a pause.
Syntax: printThe RasMol print command sends the currently displayed image to the local default printer using the operating system's native printer driver. Note: this command is not yet supported under UNIX or VMS. It is intended to take advantage of Microsoft Windows and Apple Macintosh printer drivers. For example, allowing images to be printed directly on a dot matrix printer.
Back to TABLE OF CONTENTS
Command Reference:
A-C
D-H
I-P
Q-Se
Se-St
T-Z