Molecule

A molecular graph — atoms, bonds and S-groups — with its attachment groups and properties.

A molecule object may hold several unconnected fragments; writers usually put each connected component in an object of its own. Atom indexes used by bonds, S-groups, attachment groups and connections are positions in this object’s atoms array.

Appears in

A top-level value under a key such as mol0, referenced from root.nodes as {"$ref": "mol0"}.

Identified by

"type": "molecule".

Attributes

type

  • Type: string

  • Required: yes

  • Values: "molecule"

Object type; always molecule.

atoms

The atoms of the molecule: plain atoms, R-group labels and atom lists.

bonds

  • Type: array of Bond

  • Required: no

The bonds of the molecule; may be omitted or empty.

sgroups

S-groups defined on the atoms of the molecule; see S-groups.

stereoFlagPosition

Where the enhanced stereochemistry label of the molecule (ABS, AND, OR, Mixed) is drawn.

properties

Key–value properties of the molecule, such as the data fields of an SD file record.

highlight

  • Type: array of Highlight

  • Required: no

  • Items: at most 2

Atoms and bonds shown highlighted.

attachmentGroups

Groups of atoms of this molecule that take part in haptic bonds as a whole.

Rules

  1. type and atoms are required.

  2. Every atom index — in bonds, S-groups and attachment groups — is a position in this molecule’s own atoms array.

  3. The molecule is listed in root.nodes; a molecule no node references is not part of the document.

Examples