Most commands require or allow specifying which items they should affect. Which types of items are accepted depends on the specific command.
Specification strings may contain embedded spaces, and a blank specification (where allowed) means “all.” Specification in ChimeraX is generally similar to that in Chimera, but there are differences.
|#||model||model number assigned to the data in ChimeraX
(hierarchical, with positive integers separated by dots: N, N.N, N.N.N, etc.)
|/||chain||chain identifier (case-insensitive unless both upper- and lowercase chain IDs are present)||/A|
residue name (case-insensitive)
|@||atom||atom name (case-insensitive)||@ca|
Each set of atomic coordinates is a model with an associated model identification (ID) number. Three-dimensional datasets other than atomic coordinates are also assigned model ID numbers. A model can be read from a file, derived from another model, or created from scratch.
Model numbers can be assigned automatically or in some cases, specified by the user. They are hierarchical, with any number of levels (positive integers N, N.N, etc.); for example, #1.1, #1.2, ... #1.10 could be 10 structures in an NMR ensemble. A submodel (model at a lower level) is still an entire model, but the hierarchy allows grouping. That is, submodels at any level can be specified individually by their own numbers, or collectively by their parent model number.
An atomic model contains one or more chains, each chain contains one or more residues, and each residue contains one or more atoms. Thus, an atom can be specified by model number, chain identifier (ID), residue number, and atom name. The lack of a specifier is interpreted as all units at the associated level; for example, if no chain ID is given, the specification refers to all chains.
Specifying a set of atoms always specifies any bonds and pseudobonds between pairs of atoms in the set. A pseudobond model can also be specified directly by its own model number (not necessarily within the atomic-model hierarchy). Markers and links are basically the same as atoms and bonds and can be specified in the same ways.
Chain IDs, residue names and numbers, and atom names are read from the input file. In PDB format, a standard nomenclature is used for standard amino acid and nucleic acid residues. Asterisks (*) in PDB input atom names will be translated to prime symbols (').
In the command line, capitalization of chain IDs, residue names, and atom names is not important, with one exception: when a model contains both uppercase and lowercase chain identifiers, case matters for chain specification in that model only.
Model and residue numbers are integers, although a residue number may have an insertion code directly appended. Multiple model numbers or residue numbers can be indicated by comma-separated lists of individual numbers and/or one or more ranges of the form start-end. Not yet implemented: An asterisk * can be substituted for start or end to extend the range to the first or last number possible, respectively. Chain IDs, residue names, and atom names can also be entered as comma-separated lists. Ranges of chain IDs are also allowed; in that case, ordering is alphabetical, and neither start nor end can be omitted.
#1- all atoms in model 1, including any models lower in the hierarchy (1.N, 1.N.N, etc.)
#1/B-D,F- chains B, C, D, and F in model 1
#1,2:50,70-85@ca- atoms named CA in residues 50 and 70-85 in models 1 and 2
/a,d-f:43-256- residues 43-256 in chains A, D, E, and F
:12-25,48@ca,n- atoms named CA and N in residues 12-25 and 48
:lys,arg- lysine and arginine residues
:lys,arg@cb- atoms named CB in lysine and arginine residues
/A@n,ca,c,o- atoms named N, CA, C, O in chain A
/A:195,221@n,ca,c,o- atoms named N, CA, C, O in residues 195 and 221 of chain A
#2.1-3,5- models 2.1, 2.2, 2.3, and 2.5 (submodels 1-3 and 5 of model 2)
#5,2.1-3- models 5.1, 5.2, 5.3, 2.1, 2.2, and 2.3 (submodels 1-3 of models 5 and 2)
#*.1-3- submodels 1-3 of all models that have them (this is the only type of wild card currently implemented)
When the hierarchical symbols are used in descending order (# / : @), each successive level only specifies items within the broader specification that came before it. The hierarchy can be “reset” for lower levels, however, by repeating or returning to a higher level. Examples:
:12,14@CA- atoms named CA in residues 12 and 14 (successive narrowing, as in previous examples)
:12:14@CA- all atoms of residue 12, CA atom of residue 14
/A/B:12-20@CA:14@N- all atoms of chain A, CA atoms of residues 12-20 and N atom of residue 14 in chain B
- or -
/a:10-20,26/b:12-22,29@n,ca,c,o- all atoms of chain A residues 10-20 and 26, plus atoms named N, CA, C, O in chain B residues 12-22 and 29
/a:10-20,26@n,ca,c,o/b:12-22,29@n,ca,c,o- atoms named N, CA, C, O in chain A residues 10-20, 26 and in chain B residues 12-22, 29 (& means intersection, see combinations)
- or -
/a:10-20,26/b:12-22,29 & @n,ca,c,o
#1,2.1- models 1.1 and 2.1
#1#2.1- models 1 (including any submodels) and 2.1
The global wild card * matches all atoms in a residue or all residues in a model. It stands alone as a symbol, that is, it cannot be used to match parts of names, such as G* or *A. The partial wild card = matches parts of atom or residue names but not parts of residue sequence numbers; similarly, the single-character wild card ? matches single characters within residue or atom names but not single digits within residue sequence numbers. Examples:
/A:12@*- all atoms in residue 12 of chain A
- or -
#2:G??- residues in model 2 with three-letter names starting with G
:fmn@?1- atoms in residue FMN with two-letter names ending with 1
@S=- atoms with names starting with S
@h,h?,h??- atoms with one-, two-, or three-letter names starting with H
Built-in classifications include:
Built-in classifications cannot be redefined by the user. A full list can be shown in the Basic Actions tool or with the command: name list builtins true
|Category||Membership rules, in order of application|
of the following two, the set with the greater number of residues:
|ions||non-solvent singleton atoms other than noble gases, plus covalently bonded groups of ≤ 4 atoms (not counting hydrogens) in the same residues as those singletons|
|ligand||singleton atoms that are noble gases; single residues or bonded sequences of residues with < 10 residues per bonded sequence, < 250 atoms, and < 1/4 the number of atoms in the largest bonded sequence of residues in the model; residues bonded to a chain but not included in its main sequence (e.g., retinal in rhodopsin, glycosylations)|
|main||all remaining atoms|
helix & :arg,lys- arginine and lysine residues in α-helices (using & for intersection, see combinations)
nucleic & backbone- nucleic acid ribose-phosphate backbone
Car & :phe,tyr- aromatic ring carbons of phenylalanine and tyrosine
H & ~HC- polar hydrogens (those not bonded to carbon)
With the name command, users can assign a name to a selection or to a target specification string for easy use in later commands. For example:
name tm1 /a:34-64
name tm2 /a:70-101
color tm1 medium blue
color tm2 deep sky blue
Built-in classifications cannot be redefined by the user.
Attributes are properties specified by name and value, indicated with symbols: @@ for atom attributes, :: for residue attributes, and ## for atomic-model attributes. Custom attributes can be created with setattr.
String values should be enclosed in quotation marks if they contain spaces or characters with special meanings in the command line (@, :, others). A wild card * can be used in unquoted string values.
Besides = (equals), attributes with numerical values can also be used with > (greater than), < (less than), >= (greater than or equal to), and <= (less than or equal to). For negation, ~ can be used outside of the attribute specification (see examples).
Examples include & for intersection and ~ for negation, see combinations:
@@display- atoms that are displayed
~@@display- atoms that are not displayed
@ca & @@bfactor>40- atoms named CA with B-factor values over 40
:asn & @@bfactor>40- atoms with B-factor values over 40 in asparagine residues
@@bfactor>=20 & @@bfactor<=40- atoms with B-factor values ranging from 20 to 40
C & ~ @@idatm_type=Car- non-aromatic carbon atoms (see atom types)
::num_atoms>=10- residues with 10 or more atoms
##name="2gbp map 5"- any model named “2gbp map 5”
Atoms, residues or atomic models within or beyond some distance of a reference set of atoms can be specified in the command line as a zone. See also: select zone, surface zone
A zone specification has the following parts:
@nz @< 3.8- atoms within 3.8 Å of atoms named NZ
#1:gtp :< 10.5- residues with any atom within 10.5 Å of any atom in GTP residue(s) of model 1
#1:gtp :> 10.5- residues farther than 10.5 Å from any atom in GTP residue(s) of model 1; the complement of the previous example
Zone specifiations are also useful in combination with other types of specifications.
Atom specifications can be combined with the operators:
/A & protein- chain A protein residues only
/A & ~ :hem- chain A residues other than HEM
@ca & #1/B,E#2/A,D- atoms named CA in chains B, E of model 1 and chains A, D of model 2
#1:asp,glu & (#2 :< 10)- aspartate and glutamate residues in model 1 that are within 10 Å of model 2
(ligand | ions) @< 4.8- atoms within 4.8 Å of ligand or ions
ligand | (ions @< 4.8)- ligand plus atoms within 4.8 Å of ions
(ions @< 4) & ~ions- atoms within 4 Å of ions, excluding the ions themselves
Ng+ | N3+- guanidinium nitrogens and sp3-hybridized, formally positive nitrogens (see atom types)
:cys@sg & ~disulfide- cysteine sulfur atoms not participating in a disulfide bond
- or -
:cys & S & ~disulfide
:phe,tyr & sidechain- phenylalanine and tyrosine sidechains (including CA)
sidechain & ligand :<4- sidechains (including peptide CA and nucleic acid ribose) of residues with any atom within 4 Å of ligand
sideonly & ligand @<4- sidechain atoms within 4 Å of ligand