NGL@1.0.0-beta.7 Home Manual Reference Source Gallery

Molecular Representations

Each loaded structure can be displayed using a variety of representations that can be combined to create complex molecular views. Multiple representation types are supported, including space-filling spheres for atoms (spacefill), cylinders and spheres for bonds and atoms (ball+stick), simple lines for bonds (line), secondary structure abstraction (cartoon), backbone atom trace (backbone). The appearance of the representations can be fine-tuned by parameters, for example, to change the quality. Most representations have a color and a radius parameter that can use data from the underlying structure. For instance, a representation can be colored uniformly or according to the element, residue or secondary structure type of the atoms from which the representation is derived. The size of representation objects, for example sphere and cylinder radii in a ball+stick representation, can be set similarly.

Common parameters are described in the {@link StructureRepresentationParameters} type definition.

axes

backbone

Cylinders connect successive residues of unbroken chains by their main backbone atoms, which are .CA atoms in case of proteins and C4'/C3' atoms for RNA/DNA, respectively. The main backbone atoms are displayed as spheres.

ball+stick

Atoms are displayed as spheres (balls) and bonds as cylinders (sticks).

base

Simplified display of RNA/DNA nucleotides, best used in conjunction with a cartoon representation. Here, a stick is drawn connecting the sugar backbone with a nitrogen in the base (.N1 in case of adenine or guanine, .N3 in case of thymine or cytosine).

cartoon

The main backbone atoms (see backbone) of successive residues in unbroken chains are connected by a smooth trace. The trace is expanded perpendicular to its tangent with an elliptical cross-section. The major axis points from .CA in the direction of the .O in case of proteins and from the C1'/C3' to C2'/O4' for RNA/DNA, respectively.

contact

CAUTION This feature is only for preview. It is still under development and has not been thoroughly tested. Bugs and other surprises are likely.

Works currently only for proteins. The angle criterion has currently little meaning.

Displays cylinders between supposedly contacting atoms.

distance

Displays the distance between pairs of atoms.

helixorient

Displays various helix-related values...

hyperball

A derivate of the ball+stick representation (pioneered by HyperBalls project) in which atoms are smoothly connected by an elliptic hyperboloid.

label

Displays a label near the corresponding atom.

licorice

A variant of the ball+stick representation where balls and sticks have the same radius, that is the aspectRatio parameter is fixed to 1.0.

line

Bonds are displayed by a flat, unshaded line.

point

Atoms are displayed by textured points.

ribbon

A thin ribbon is displayed along the main backbone trace.

rocket

rope

A rope-like protein fold abstraction well suited for coarse-grained structures. In this representation a tube follows the center points of local axes as defined by helixorient. The result is similar to what is shown by the Bendix tool.

spacefill

Atoms are displayed as a set of space-filling spheres.

surface

Displays the molecular surface and its variants.

trace

A flat, unshaded line is displayed along the main backbone trace.

tube

Essentially like cartoon but with the aspectRatio fixed at a value of 1.0.

unitcell

Draws the corners and edges of a crystallographic unitcell.

validation

Draws clashes given in a wwPDB validation report.