AtomDefinition

class openff.pablo.residue.AtomDefinition(name: str, synonyms: tuple[str, ...], symbol: str, leaving: bool, charge: int, aromatic: bool, stereo: Literal['S', 'R'] | None)[source]

Bases: object

Description of an atom in a residue from the Chemical Component Dictionary (CCD).

Attributes

name

The canonical name of this atom

synonyms

Other names this atom can have

symbol

The elemental symbol for this atom

leaving

Whether this atom is absent when a bond is formed between two residues.

charge

The formal charge of this atom

aromatic

Whether this atom is aromatic

stereo

The chirality of this atom

Constructor Methods

with_defaults

Construct a new atom definition, optionally using some default values.

Instance and Static Methods

replace

Return a copy of self with the specified attributes replaced.

Properties

names

The set of the canonical name and all synonyms

aromatic: bool

Whether this atom is aromatic

charge: int

The formal charge of this atom

leaving: bool

Whether this atom is absent when a bond is formed between two residues.

When a bond is formed between this residue and another, a “leaving fragment” must be removed to satisfy the valence model with the new bond. The leaving fragment is computed by identifying a single leaving atom bonded to each of the atoms forming the bond, as well as all leaving atoms bonded to those first leaving atoms.

name: str

The canonical name of this atom

property names: set[str]

The set of the canonical name and all synonyms

replace(*, name: str | __UNSET__ = __UNSET__(), symbol: str | __UNSET__ = __UNSET__(), synonyms: Iterable[str] | __UNSET__ = __UNSET__(), leaving: bool | __UNSET__ = __UNSET__(), charge: int | __UNSET__ = __UNSET__(), aromatic: bool | __UNSET__ = __UNSET__(), stereo: Literal['S', 'R'] | None | __UNSET__ = __UNSET__()) Self[source]

Return a copy of self with the specified attributes replaced.

stereo: Literal['S', 'R'] | None

The chirality of this atom

symbol: str

The elemental symbol for this atom

synonyms: tuple[str, ...]

Other names this atom can have

classmethod with_defaults(name: str, symbol: str, *, synonyms: Iterable[str] = (), leaving: bool = False, charge: int = 0, aromatic: bool = False, stereo: Literal['S', 'R'] | None = None) Self[source]

Construct a new atom definition, optionally using some default values.