orthonym.rules.phane_pin.amplificants#

Note

Internal API. Names and behaviour may change between releases.

Amplificants of a phane: the ring or ring system that one superatom stands for.

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

  • (:14892): the amplification prefix is the name of the allowed ring or ring system with the final letter ‘e’ changed to ‘a’, or an ‘a’ added when there is no final ‘e’.

  • “Allowed parent hydrides” (:14902): “An amplification prefix can be derived from monocyclic rings and polycyclic ring systems having the maximum number of noncumulative double bonds (mancude), bridged fused ring systems, saturated monocyclic rings, saturated bicycloalkanes and polycycloalkanes (von Baeyer hydrocarbons), and spiro alkanes.”

  • (a) “Disallowed names of parent hydrides” (:14910): spirobi names, “spiro ring systems with at least one fused ring system or polycycloalkane ring system”, ring assembly names.

  • (:14967): “Numbering of an amplificant is determined primarily by the numbering rules that apply to the parent name from which the amplification prefix is derived. When there is a choice, the general rule of lowest locants is used.”

  • (:14794): a heterocyclic amplificant with locants takes brackets ([1,2]oxazola).

  • (:15173): “Indicated hydrogen, when present in amplificants, is placed before the phane parent hydride name and preceded by the appropriate composite locant(s)” (1^4H-1(3,5)-pyrana-...,:15181). A ring system that is a hydro derivative or needs indicated hydrogen is the amplificant of its mancude parent, and the added hydrogen atoms are cited as hydro prefixes (1^1,1^2-dihydro-1(2)-quinolina-...,:21442; decahydro-1(2,7)-naphthalena-...,:17063), directly before the parent hydride name,:16872 and:16874: hydro prefixes are detachable but not alphabetized). (b) (:3246) gives indicated hydrogen the lowest locants, before the principal characteristic groups; (e)(i) puts the hydro prefixes with the ‘ene’ and ‘yne’ endings.

orthonym.rules.phane_pin.amplificants.HETERO_ORDER: Tuple[str, ...] = ('O', 'S', 'Se', 'Te', 'N', 'P', 'As', 'Sb', 'Bi', 'Si', 'Ge', 'Sn', 'Pb', 'B', 'Al', 'Ga', 'In', 'Tl')#

15246) “Lowest locants are assigned to heteroatoms considered in the order of their seniority: O > S > Se > Te > N > P > As > Sb > Bi > Si > Ge > Sn > Pb > B > Al > Ga > In > Tl”

Type:

(

class orthonym.rules.phane_pin.amplificants.AmplificantHydride(name: 'str', prefix: 'str', key: 'str', score: 'tuple', numberings: 'Tuple[Mapping[int, _Locant], ...]', saturated: 'Tuple[int, ...]' = (), indicated: 'int' = 0, matchable: 'Tuple[int, ...]' = (), bonds: 'Tuple[Tuple[int, int], ...]' = ())#

Bases: object

name: str#
prefix: str#
key: str#
score: tuple#
numberings: Tuple[Mapping[int, Tuple[int, str]], ...]#
saturated: Tuple[int, ...] = ()#

a hydro derivative or a ring that needs indicated hydrogen, read as its mancude parent (name, key and score are the parent’s): the atoms of the ring system, in the input molecule, that carry an added hydrogen atom (saturated), how many of them the parent cites as indicated hydrogen (indicated), the atoms that can carry a ring double bond (matchable) and the ring bonds between them (bonds)

indicated: int = 0#
matchable: Tuple[int, ...] = ()#
bonds: Tuple[Tuple[int, int], ...] = ()#
orthonym.rules.phane_pin.amplificants.amplification_prefix(name)#

and: the amplification prefix of the parent hydride name.

orthonym.rules.phane_pin.amplificants.hydro_split(hydride, numbering)#

The atoms of the amplificant that its name cites as indicated hydrogen and as hydro prefixes under numbering (b): the indicated hydrogen atoms have the lowest locants that leave a mancude parent; the others are the added hydrogen atoms of the hydro prefixes). Both ordered by locant; empty for a mancude or a saturated ring.

orthonym.rules.phane_pin.amplificants.indicated_numberings(hydride)#

The numberings of the amplificant that its parent name allows,:14967: “Numbering of an amplificant is determined primarily by the numbering rules that apply to the parent name from which the amplification prefix is derived. When there is a choice, the general rule of lowest locants is used”): of the valid numberings those that give the indicated hydrogen the lowest locants (b),:3246), because the indicated hydrogen belongs to the parent name and the attachment locants are compared among the numberings that remain. The book’s :19325 is 1^2H-1(6)-pyrana-..., not 1^6H-1(2)-pyrana-.... All valid numberings for a ring with no indicated hydrogen.

orthonym.rules.phane_pin.amplificants.amplificant_hydride(mol, atoms)#

The amplificant hydride of the ring system atoms of mol, or None when it is no parent the plain case builds (a charge, a radical, an isotope, a multiple bond to the outside, indicated hydrogen, hydro prefixes, a ring system that is neither mancude nor a saturated monocycle, and a system with no fusion numbering). Memoised for the last molecule: a molecule with many chains that tie (a polyphenylene dendrimer of 37 rings has 720 of them) asks for the same ring system once for each chain.