ChimeraX docs icon

Command: build

Subcommands of build correspond to sections of the Build Structure tool:

See also: addh, bond, angle, torsion, delete, swapaa, altlocs, combine, open, rna

build start atom  model-info  [ position  x,y,z ] [ resName  resname ] [ select  true | false ]
build start fragment  model-info   fragment-name  [ position  x,y,z ] [ resName  resname ]
build start peptide  model-info  sequence   φ11   φ22  ...  φNN  [ position  x,y,z ] [ chainId  ID ] [ rotLib   rotamer-library ]
build start nucleic  model-info  sequence  [ position  x,y,z ] [ type  dna | rna | hybrid ] [ form  A | B ]

For starting a new molecule with build start, the choices are atom, fragment, peptide, or nucleic. With the open command, however, a wide variety of atomic structures for subsequent modification can be fetched from online sources or modeled from a SMILES string.

The model-info can be given as the identifier of an existing atomic model (for example, #2) or a character-string name for a new model.

The position of the new atom or new molecule's geometric center defaults to the current center of view, but can be given as x,y,z coordinates separated by commas only.

For fragment, both model-info and fragment-name are required. Several planar 5- and 6-membered rings and their fused ring systems are available, with choices for fragment-name as listed in the Build Structure dialog.

For peptide, the required arguments are model-info and the sequence as a string of single-letter amino acid codes (upper- or lowercase) and a list of comma-separated pairs of φ,ψ values, one pair for each residue, in the same order as in the sequence. Even though the terminal residues lack either φ or ψ, a pair of values is required for each residue. The “extra” values for the terminal residues will be ignored. Example:

build start peptide "custom built" ADKLL -57,-47 -57,-47 -57,-47 -57,-47 -57,-47 rotLib Dunbrack

For nucleic, the required arguments are model-info and the sequence of one strand as a string of single-letter nucleic acid codes (upper- or lowercase). The complementary strand of the double helix will also be built according to the specified type (default dna) and form (default B). For building a hybrid DNA/RNA, the sequence of the DNA strand should be given. The nucleic acid chains will be assigned the first two unused chain IDs of the atomic model.

Further options:

Options for peptide only:

build modify  atom   element   numBonds  [ geometry  ion | single | linear | trigonal | tetrahedral ] [ connectBack  true | false ] [ colorByElement  true | false ] [ name  name ] [ newRes  true | false ] [ resName  resname ]
The build modify command changes the type of a single specified atom and automatically fills its valence with attached hydrogens. The hydrogens could be modified in turn to continue building outward. The element (element symbol) and numBonds (total number of bonds to the atom, including hydrogens) must also be given, for example:

build modify sel O 2 geometry tetrahedral

Hydrogens will be added to the atom to generate the indicated total number of bonds. They are added to form the idealized bond angles for the specified geometry, or if the atom already has two or more substituents, to maximally avoid those substituents. The default geometry is the same as for the atom's current type. Since the geometry around the atom may be changing, any pre-existing directly attached hydrogens are removed beforehand. No other atoms are removed automatically. If the atom is already bonded to one (and only one) other nonhydrogen atom, the length of the bond will be adjusted depending on the elements involved. No other atoms are moved.

Other options:

UCSF Resource for Biocomputing, Visualization, and Informatics / July 2021