next up previous contents index
Next: PICK_HOT_ATOMS pick Up: Handling of atomic coordinates Previous: RENAME_SEGMENTS rename   Contents   Index

PICK_ATOMS -- select atoms in MODEL

PICK_ATOMS_SET = <integer:1> 1 index of the selected atoms set: 1 | 2 | 3
SELECTION_SEARCH = <string:1> 'SEGMENT' search method: 'SPHERE' | 'SEGMENT' | 'SPHERE_SEGMENT'
RES_TYPES = <string:1> 'ALL' residue type selection: 'ALL' | 'HET' | 'BLK' | 'STD' | CHARMM 4-letter codes
ATOM_TYPES = <string:1> 'ALL' atom type selection: 'ALL' | 'SDCH' | 'MNCH' | IUPAC atom names
SELECTION_FROM = <string:1> 'ALL' selecting from: 'ALL' | 'SELECTED'
SELECTION_MODE = <string:1> 'ATOM' selecting what: 'ATOM' | 'RESIDUE'
SELECTION_STATUS = <string:1> 'INITIALIZE' what to do with selected atoms: 'ADD' | 'REMOVE' | 'INITIALIZE'
$\bullet$ For SELECTION_SEARCH = 'SEGMENT':    
SELECTION_SEGMENT = <string:2> '' '' 'RES:CHN' ids for the first and last residues in a chain/segment; or 'LOOPS'
GAP_EXTENSION = <integer:2> 2 1 extend insertions/deletions for that many residues, in PICK_ATOMS; don't select loops longer than i3
MINMAX_LOOP_LENGTH = <integer:2> 5 15 minimal/maximal length of a loop in PICK_ATOMS
$\bullet$ For SELECTION_SEARCH = 'SPHERE':    
SPHERE_CENTER = <string:2> 'undefined' 'undefined' '#RES1:C' 'ATOM_NAME'
SPHERE_RADIUS = <real:1> 10.0 sphere radius for atoms selection
SELECTION_SLAB = <real:5> 9999 9999 0 0 0 slab for atoms selection: 'dz1' 'dz2' 'xtrans' 'ytrans' 'ztrans'
$\bullet$ For SELECTION_SEARCH = 'SPHERE_SEGMENT':    
SELECTION_SEGMENT = <string:2> '' '' 'RES:CHN' ids for the first and last residues in a chain/segment; or 'LOOPS'
GAP_EXTENSION = <integer:2> 2 1 extend insertions/deletions for that many residues, in PICK_ATOMS; don't select loops longer than i3
SPHERE_RADIUS = <real:1> 10.0 sphere radius for atoms selection

Description:
This command adds atoms to, removes atoms from, or initializes any one of the three independent sets of selected atoms of MODEL. There are three selection sets because it is convenient to have different sets used by different MODELLER commands.

PICK_ATOMS_SET specifies the set of selected atoms. Set 1 is used in the PICK_RESTRAINTS, ROTATE_DIHEDRALS, RANDOMIZE_XYZ and MUTATE_MODEL commands. Sets 2 and 3 are used in the MAKE_RESTRAINTS command.

SELECTION_STATUS determines whether the selected atoms are added ('ADD'), removed ('REMOVE'), or a set is initialized and then the selected atoms are added ('INITIALIZE').

The selection of atoms is a hierarchical two level process. The first level of selection consists of specifying how the atoms will be scanned. The second level consists of selecting by the specified atom and residue names.

How the atoms are scanned is specified by setting the SELECTION_SEARCH variable to either 'SEGMENT', 'SPHERE', or 'SPHERE_SEGMENT':

  1. 'SEGMENT' mode: Only a single stretch of residues specified by the beginning and ending residue identifiers in SELECTION_SEGMENT (Section 2.4.1) is scanned. Alternatively, if SELECTION_SEGMENT[1] has the special value 'LOOPS' only residues in loops are scanned. Loops are defined as those residues in the MODEL that are aligned with only gap positions in the templates (MODEL has to be the last sequence in the current alignment), are within GAP_POSITIONS[1] of an insertion in MODEL, or are within GAP_POSITIONS[2] positions of a deletion in MODEL, and are not in a loop segment shorter than MINMAX_LOOP_LENGTH[1] or longer than MINMAX_LOOP_LENGTH[2]. This selection mode is useful for automatic selection of loops to be refined by the loop modeling procedure.

  2. 'SPHERE' mode: Only those atoms that are closer than SPHERE_RADIUS angstroms to the SPHERE_CENTER atom, after the center atom was translated by $(xtrans, ytrans, ztrans)$ angstroms specified in SELECTION_SLAB[3:5], are scanned. If the first element of SPHERE_CENTER is string 'INDEX', the second element is an integer atom index of the center atom; otherwise, the first and second element are the residue identifier (Section 2.4.1) and the IUPAC atom name, respectively. SELECTION_SLAB[1:2] specifies the interval on the $Z$-axis relative to the $Z$ coordinate of the translated central atom that imposes another condition on the selected atoms: $Zcen+dz1 < Z+ztrans < Zcen+dz2$. Larger $Z$ values are in front, so $dz1$ specifies the plane that is further away than the $dz2$ plane. To pick any atoms, $dz1 < dz2$.

  3. 'SPHERE_SEGMENT' mode: Only atoms within a sphere around the atoms in the specified segment of residues are scanned. This is useful, for example, when a neighborhood of a loop needs to be selected. As for the 'SEGMENT' mode, if SELECTION_SEGMENT[1] has the special value 'LOOPS', only loop atoms are scanned for their neighbors.

If SELECTION_FROM is 'SELECTED', scanning specified above is restricted only to the atoms that were already selected before calling PICK_ATOMS.

Once the method for scanning the atoms is specified, each of the scanned atoms is checked against the specified atom name(s) (ATOM_TYPES) and residue name(s) (RES_TYPES). If SELECTION_MODE is 'RESIDUE', all atoms in a residue with at least one atom that matches both the residue and atom name criteria are selected. Otherwise, only those atoms that have both the specified residue and atom names are selected. The RES_TYPES and ATOM_TYPES keywords can contain several residue and atom names in one quoted string or in several quoted strings. For example, both 'CA' 'N' and 'CA N' are valid specifications selecting the CA and N atoms. The following groups of residues and atoms are defined:

Example:


# Example for: PICK_ATOMS

# This will pick various subsets of atoms in the MODEL and compare them 
# with MODEL2.

SET OUTPUT_CONTROL = 1 1 1 1 0

# Read the models and the alignment:
READ_MODEL  FILE = '1fas'
READ_MODEL2 FILE = '2ctx'
READ_ALIGNMENT FILE = 'toxin.ali', ALIGN_CODES = '1fas' '2ctx'
WRITE_ALIGNMENT FILE = 'toxin.pap', ALIGNMENT_FORMAT = 'PAP'

# Set some defaults (the same as in top.ini):
SET SELECTION_MODE   = 'ATOM'       # only the selected atoms, not whole residues
SET SELECTION_FROM   = 'ALL'        # scanning of all atoms, not selected atoms
SET SELECTION_SEARCH = 'SEGMENT'    # scan over a segment
SET SELECTION_SEGMENT= 'FIRST:' 'LAST:'    # the whole chain as a segment
SET RES_TYPES = 'ALL'               # all residue types
SET PICK_ATOMS_SET   = 1            # put the selected atoms in set 1
SET SELECTION_STATUS = 'INITIALIZE' # select only the selected atoms

# Pick and superpose mainchain atoms:
PICK_ATOMS ATOM_TYPES = 'MNCH'
SUPERPOSE

# Pick and superpose sidechain atoms:
PICK_ATOMS ATOM_TYPES = 'SDCH'
SUPERPOSE

# Pick and superpose CA and CB atoms:
PICK_ATOMS ATOM_TYPES = 'CA CB'
SUPERPOSE

# Pick and superpose all atoms:
PICK_ATOMS ATOM_TYPES = 'ALL'
SUPERPOSE

# Pick and superpose CA and CB atoms in one segment only:
PICK_ATOMS ATOM_TYPES = 'CA CB', SELECTION_SEGMENT = '2:' '10:'
SUPERPOSE
SET SELECTION_SEGMENT = 'FIRST:' 'LAST:' # allow for the whole chain again

# Pick and superpose all atoms within 6 angstroms of the 'CA' atom in residue '10:':
PICK_ATOMS ATOM_TYPES = 'ALL', SPHERE_RADIUS = 6.0, ;
           SELECTION_SEARCH = 'SPHERE', SPHERE_CENTER = '10:' 'CA'
SUPERPOSE

# Pick and superpose all atoms within 6 angstroms of any atom in 
# segment 2: to 10:
PICK_ATOMS ATOM_TYPES = 'ALL', SELECTION_SEGMENT = '2:' '10:',;
           SELECTION_SEARCH = 'SPHERE_SEGMENT', SPHERE_RADIUS = 6.0
SUPERPOSE

# Pick and superpose all atoms in all loops (ie residues within 2 positions 
# of any gap in the alignment):
PICK_ATOMS ATOM_TYPES = 'ALL', SELECTION_SEGMENT = 'LOOPS' '', ;
           SELECTION_SEARCH = 'SEGMENT', GAP_EXTENSION = 2 2
SUPERPOSE

# Pick and superpose all atoms within 6 angstroms of all loops (ie residues
# within 2 positions of any gap in the alignment):
PICK_ATOMS ATOM_TYPES = 'ALL', SELECTION_SEGMENT = 'LOOPS' '',;
           SELECTION_SEARCH = 'SPHERE_SEGMENT', SPHERE_RADIUS = 6.0, ;
           GAP_EXTENSION = 2 2
SUPERPOSE


next up previous contents index
Next: PICK_HOT_ATOMS pick Up: Handling of atomic coordinates Previous: RENAME_SEGMENTS rename   Contents   Index
Ben Webb 2004-10-04