The surface command creates and displays molecular surfaces, either atomically detailed solvent-excluded surfaces (default) or lower-resolution Gaussian surfaces. See also: surface operations, show, color, measure, sym, volume, volume operations, chain colors, Molecule Display Toolbar
|Image courtesy of Sebastian Daberdaku|
By default, the surfaces are made to enclose only the residues in biopolymer chains, grouped by chain ID. Typically, this gives a separate molecular surface for each peptide or nucleic acid chain, and specifying a subset of the atoms in the chain will show/hide their patches within the context of the entire chain; for example, no patches will be shown for atoms that are completely buried inside the chain.
The surface show command applies to pre-existing surfaces only, whereas surface (without show) creates a new surface as needed. However, if the intent is to switch between surface types (SES and GS) or to create a new surface with default parameters, closing an existing surface first is recommended, otherwise some of its settings may be retained. The surface close command removes the surface models specified directly, or all surface models that enclose any of the specified atoms.
Surface display style (solid, mesh, or dot) can be adjusted with surface style.
Usage: surface atom-spec1 [ enclose atom-spec2 ] [ include atom-spec3 ] [ replace true | false ] [ probeRadius rad ] [ resolution r [ level l ]] [ gridSpacing s ] [ sharpBoundaries true | false ] [ visiblePatches N ]
Options for surface creation can be categorized as:
The enclose option can be used to specify a different set of atoms (atom-spec2) to enclose within a single surface, for example, to coalesce biopolymer chains with different chain IDs into a single molecular envelope.
The include option can be used to force including atoms that would otherwise be ignored (residues not within a biopolymer chain, such as ligands, solvent, and ions) into the same envelope as the biopolymer atoms with the same chain ID. For convenience, however, if atom-spec1 contains only such atoms, they will be surfaced separately (grouped by chain ID) and the include option is not needed.
The replace option (default true) indicates removing all previously created surface models that enclose any of the same atoms as the current surface. Successive uses of the surface command with replace false can produce multiple surface models that enclose the same set of atoms or different but overlapping sets of atoms. Surface model number assignments are discussed below.
Aside from how atoms are grouped, molecular surface parameters can be specified with the following options:
The default values apply to the initial creation of a surface, but when the surface command acts on an existing surface, only the parameters explicitly specified are changed.
The sharpBoundaries option (default true for an SES, default false for a Gaussian surface) adjusts the triangulation of the surface to produce abrupt and relatively straight boundaries between per-atom patches. This significantly reduces the sawtooth appearance where adjacent per-atom patches differ in color or display status (hidden vs. shown). A molecular surface will not retain atomic associations unless sharp boundaries are used.
The visiblePatches option indicates hiding all but the N largest connected surface patches (per surface model) for the specified atoms; by removing the visual clutter of small patches, this can significantly enhance viewing of pocket surfaces. Ranking to determine the largest is based on surface area, including any portions hidden by clipping. See also: surface dust
- display the surface of each biopolymer chain in each model
- display the surface of each biopolymer chain in model 1
- display the surface patch(es) for residues 5-38 in each chain of model 1
surface hide #1/A:5-38
- hide the surface patch(es) for residues 5-38 in chain A of model 1
surface :10-20 visible 1
- display the largest surface patch for residues 10-20 in each chain
surface close /b
- close (delete) the surface model for chain B
surface close #1.2
- close (delete) the surface with model number 1.2
surface ligand @<5 visible 1 - display the largest surface patch per biopolymer chain for atoms within 5Å of ligand
- display surface(s) for ligand (divided up by chain ID)
- display the surface of each biopolymer chain in models 1-3
surface #1-3 enclose #1-3
- display a single surface enclosing all biopolymer chains in models 1-3; the first #1-3 could be omitted, as a blank specification there is interpreted as “all”
surface :10-20 enclose /a-c
- display the surface patch(es) for residues 10-20 within a single surface that encloses chains A-C
surface #1 include :hem
- display a surface that encloses each biopolymer chain in model 1 along with its respective HEM residue (for example, in PDB 4HHB)
surface enclose #1 include :hem
- display a single surface that encloses all the biopolymer chains and HEM residues in model 1
Usage: surface style surf-model ( solid | mesh | dot )
The representation of a surface model can be solid, mesh, or dot. See also: transparency
Surface operations apply to surface models in general, including volume isosurfaces. See also: volume operations
Adjust capping, in which planar caps are drawn to hide the interior of a surface sliced by a clipping plane. Capping can be toggled on or off, and the initial default can be set in the preferences. The offset distance d is how far to displace caps from the clipping plane (default 0.01 Å). Some displacement is needed, or the cap itself can be clipped (invisible) depending on floating-point rounding errors and the specific graphics hardware being used. If d is large, however, the mismatch between the cap and the cut edge of the surface will be evident.• surface dust surf-model [ size s ] [ metric area | ‘area rank’ | size | ‘size rank’ | volume | ‘volume rank’ ] [ update true | false ]
Hide smaller blobs (disconnected parts) of a surface, such as to simplify the display of noisy density. Blobs smaller than size s (default 5) will be hidden. The size units depend on the metric:• surface zone surf-model nearAtoms atom-spec [ distance cutoff ] [ maxComponents N ] [ bondPointSpacing s ] [ update true | false ]
Size measurements will include any blob parts that have been undisplayed or hidden by zoning or clipping, and blobs at or above the cutoff size will be displayed completely (although possibly still clipped) even if they had been hidden beforehand. The update option (default true) indicates whether to update automatically when the shape of the surface changes.
- area - surface area
- area rank - rank by largest area (a value of N indicates showing the N largest blobs)
- size (default) - bounding box dimension (largest of X, Y, Z)
- size rank - rank by largest size
- volume - enclosed volume
- volume rank - rank by largest volume
The surface undust command turns off hiding smaller blobs, as does using surface zone.
Show only parts of the surface(s) within cutoff (default 2.0 Å) of any atom in atom-spec. If bondPointSpacing is specified, use points spaced s Å apart along bonds in addition to the atoms to define the zone. The maxComponents option indicates hiding all but the N largest connected surface patches in the zone; by removing the visual clutter of small patches, this can significantly enhance viewing of pocket surfaces. Ranking to determine the largest is based on maximum dimension (along X, Y, or Z for a given patch), including any portions within the zone that are hidden by clipping. If maxComponents is not supplied, all patches within the zone will be shown. The update option (default true) indicates whether to update automatically when the shape of the surface changes.
The surface unzone command turns off zoning, as does using surface dust. See also: select zone, volume zone, zone, zone atom specification
Model numbers. Molecular surface models are treated as “children” of the corresponding atomic model. For example, surface models based on atoms in model #1 will be numbered #1.1, 1.2, etc., and closing #1 will also close those surface models. However, if a single surface model is based on atoms from more than one model (for example, generated with surf enclose #1,2), it will be assigned a number at the same level as the atomic models (for example, #3).
Patch boundaries. Per-atom surface patch boundaries are defined by associating each surface point with an atom. In a solvent-excluded surface, each point is associated with the atom with the smallest distance normalized by radius (the atom with the smallest d/r, where d is the distance between the surface point and the atom center, and r is the atomic VDW radius). In a Gaussian surface, each point is simply associated with the closest atomic center.