This function allows for the selection of atom and coordinate data
corresponding to the intersection of various input criteria. Input selection criteria include selection string keywords (such as
"calpha", "backbone", "protein", "ligand", etc.)
and individual named selection components (including chain,
resno, resid, elety etc.). For example, atom.select(pdb, "calpha") or atom.select(pdb, elety="CA"), which in this
case are equivalent.
Alternatively, a single element character vector containing a hierarchical
selection string, string, with a strict format composed of
six sections separated by a / character can be used.
Each section of this selection string corresponds to a
different level in the PDB structure hierarchy, namely:
(1) segment identifier,
(2) chain identifier,
(3) residue number,
(4) residue name,
(5) element number, and
(6) element name.
For example, the string //A/65:143///CA/ selects all C-alpha
atoms from residue numbers 65 to 143, of chain A.
A simpler alternative would be atom.select(pdb, chain="A", resno=65:143,
elety="CA").
More typical use is through keyword string shortcuts
"calpha", "back", "backbone", "cbeta",
"protein", "notprotein", "ligand", "water",
"notwater", "h" and "noh".
Note that keyword string shortcuts can be combined with individual
selection components, e.g. atom.select(pdb, "protein", chain="A"). See below for further examples.
In addition, the combine.sel function can further combine atom selections using and, or, or not logical operations.
When called without selection criteria, atom.select will print a
summary of pdb makeup.