orthonym.rules.phane_pin.stereo#

Note

Internal API. Names and behaviour may change between releases.

CIP descriptors of a phane name,, (j)).

the Blue Book, each line read with sed -n:

  • “NAMING OF STEREOISOMERS” (:44639): a descriptor “is preceded by a numerical or letter locant to describe the position of the stereogenic unit”; descriptors “are placed at the front of the complete name when related to the parent structure” and, “when they relate to substituent groups, they are cited at the front of the corresponding prefix”. A stereogenic unit inside a substituent is therefore named by the substituent namer, which cites it in its prefix ((1R)-1-bromoethyl); only the units of the skeleton are cited here. The round trip of the producer tells whether the whole name describes the input.

  • (:15111): an atom of an amplificant has a composite locant, the locant of its superatom with the locant of the atom in the amplificant as superscript (5^1S); the descriptors of the examples at:50787 and:50791 are in the order of the primary locants and then of the superscripts: (2E,5^1S,5^2R,5^5S,8E, 11E,15^1S,15^2R,15^4R,17E).

  • “Specification of double bonds” (:49684): “The omission of stereodescriptors ‘E’ and ‘Z’ to denote the configuration of double bonds in cyclophanes is related to the total number of nodes in the system; for up to seven nodes, no descriptor is necessary. When more than seven nodes are present, all descriptors must be cited.” A cyclic skeleton of seven nodes or fewer with a specified double bond is not named: OPSIN does not read the omitted descriptor as the configuration, so no read-back could show that the name is the input’s.

  • (j) (:3346): “When there is a choice for lower locants related to the presence of stereogenic centers or stereoisomers, the lower locant is assigned to CIP stereodescriptors Z, R, M, and r (pseudoasymmetry) that are preferred to E, S, P, and s, respectively”. The rule is applied by numbering.

The labels come from perception.stereo.assign_stereochemistry (the centres engine first), never from a raw RDKit call. A structure with an axial or planar element, a pseudoasymmetric label other than r and s, or a double bond between a skeleton atom and a substituent or inside an amplificant is not named.

class orthonym.rules.phane_pin.stereo.Unit(code, atoms)#

Bases: object

A stereogenic unit of the skeleton: the atom of a centre, or the two atoms of a double bond.

code: str#
atoms: Tuple[int, ...]#
orthonym.rules.phane_pin.stereo.units_of(skel)#

The stereogenic units of the skeleton that the name cites, or None when the structure has one the name cannot cite. Computed once for a skeleton.

orthonym.rules.phane_pin.stereo.unit_locant(skel, pos, chosen, unit)#

The locant of a unit: the atom of a centre, the lower of the two atoms of a double bond.

orthonym.rules.phane_pin.stereo.descriptors(skel, pos, chosen, units)#

(locant, code) of every unit, in the order of the locants (primary, then superscript).

orthonym.rules.phane_pin.stereo.prefix_codes(name)#

The descriptors at the front of the name of a substituent prefix (‘(1E)-prop-1-en-1-yl’ gives [‘E’]; ‘(1R,2S)-…’ gives [‘R’, ‘S’]); none for a descriptor of another form.

orthonym.rules.phane_pin.stereo.rank_key(skel, pos, chosen, units, extra=())#

(j): the key of one numbering, lower is preferred (see cip_locant_rank_key). extra are the (locant, code) pairs of the descriptors inside the prefixes, each at the locant of the atom its prefix is attached to

(j),:3346 and its example ‘1-[(2R)-butan-2-yl]-3-[(2S)-butan-2-yl]benzene (PIN)’,:3399: the R prefix has

the lower locant).

orthonym.rules.phane_pin.stereo.block(skel, pos, chosen, units)#

(2E,5^1S,5^2R)-, or nothing.

orthonym.rules.phane_pin.stereo.stereo_atoms(units)#

Every atom a unit is read from (an ordered set).