Volatile and temporary selections
Selections can either be volatile, i.e. be used temporarily for the current command, or persistent, i.e. be used for the following commands. Persistent selections are made with the commands atoms select, angles select, distances select, peaks select, couplings select, rdc select, pcs select, and structures select. Selections made by other commands are always volatile.
Atom selections are enclosed in double quotes and have the following general form:
Items in square brackets are optional and items in curly braces can occur zero or more times.
An atom selection can have the following elements:
- An operator to combine the selection that follows it with the previous selection
- An atom name, possibly containing wildcards ("?" or "*" replace exactly one or any number of characters, respectively)
- An atom name, possibly containing wildcards, as in the residue library, i.e. before a possible renaming with the library rename command
- An atom type, possibly containing wildcards, as given in the residue library
- A residue selection, as explained below
- An additional condition, as explained below
Special atom names
The following special atom names can be used to select groups of atoms:
- nitrogen atoms and hydrogen and pseudo atoms connected to nitrogens
- atoms with assigned chemical shift values (in the first chemical shift list)
- main chain atoms (in proteins: N, CA, C)
- atoms whose position does not depend on side-chain torsion angles (in proteins: N, H, CA, HA, CB, C, O)
- carbon atoms
- atoms covalently bound to carbon atoms
- atoms covalently bound to hydrogen atoms
- all atoms except hydrogen or pseudo atoms
- hydrogen atoms
- oxygen atoms and hydrogen and pseudo atoms connected to oxygens
- methine (CH1) groups, including the carbon and the hydrogen atom
- methyl (CH3) groups, including the carbon atom, three hydrogen atoms and the pseudo atom. In the case of isopropyl groups, e.g. in valine and leucine, the pseudo atom that represents both methyl groups is also selected.
- methylene (CH2) groups, including for each methylene group the carbon atom, two hydrogen atoms and the pseudo atom
- atoms covalently bound to nitrogen atoms
- NH3 groups, including for each NH3 group the nitrogen atom, three hydrogen atoms and the pseudo atom
- nitrogen atoms
- atoms covalently bound to oxygen atoms
- oxygen atoms
- atoms covalently bound to phosphorus atoms
- phosphorus atoms
- pseudo atoms
- atoms for which an external name is defined
- atoms covalently bound to sulfur atoms
- atoms bound to a selected atom
- already selected atoms
- sulfur atoms
- atoms for which Cartesian coordinates are present
A residue selection consists of one or several of the following elements:
- a residue name, possibly containing wildcards
- a residue name, possibly containing wildcards, as in the residue library, i.e. before a possible renaming with the library rename command
- the first residue
- the last residue
- the first residue of every fragment with contiguous resi¬due numbers
- the last residue of every fragment with contiguous resi¬due numbers
- a residue number range
Ranges of numbers in selections, e.g. residue number ranges, can be specified in one of the following ways:
- a number
- a range of numbers
- alternative format for a range of numbers (only for n ≥ 0)
- from number m onwards
- from number m onwards; alternative format
- from the first up to number n.
Atom selections can be combined using the following operators:
- atoms in the new set (default)
- atoms not in the new set
- atoms in the current set or in the new set
- atoms in the current set, but not in the new set
- atoms in the current set and in the new set
Operators are always evaluated from left to right. The current atom set is the set of atoms defined by what precedes the operator. The new atom set is the set of atoms defined by what follows the operator. An empty atom selection selects all atoms.
Additional conditions can be applied to atom selections:
- Select randomly only a fraction p of all atoms that would normally be selected.
- Select only atoms with an assigned chemical shift value between shiftmin and shiftmax ppm in the first chemical shift list.
- Select only assigned atoms with a chemical shift tolerance value between tolmin and tolmax ppm in the first chemical shift list.
All atoms called HA:
Atom HA of residue 5:
All atoms called HA or whose name starts with HB:
Atoms HA in ALA residues with numbers 10-20:
"HA @ALA 10..20"
Atoms HA in ALA except in residues with numbers 10-20:
"HA @ALA - 10..20"
All atoms N, CA, C, and the side-chain heavy atoms of residues 15 and 17:
"N CA C + 15 17 - H* Q*"
The previous selection except for atoms whose starts with C:
Atoms in the previous selection that are bound to carbon atoms'
Assigned carbon atoms:
"CARBON / ASSIGNED"
Hydrogens and pseudo atoms, except hydroxyls and side-chain amides, whose atom type either starts with H_ or is PSEUD:
"H* Q* - HYDROXYL - AMIDE + H HN / &H_* &PSEUD"
The commands atoms list and atoms select (with the parameter info=full) can be used to check atom selections.