orthonym.rules.charged_spiro#

Note

Internal API. Names and behaviour may change between releases.

The name of a spiro cation or boron anion: the spiro parent, its groups and the suffix ‘ylium’, ‘ium’ or ‘uide’.

SKELETAL REPLACEMENT (‘a’) NOMENCLATURE FOR CATIONS (the Blue Book), method (1): the compound is named

with the neutral ‘a’ prefixes and the cationic centre by the suffix ‘ium’ or ‘ylium’. A quaternary onium at a spiro junction has four bonds, all in rings: one above the standard bonding number of nitrogen, phosphorus, arsenic and antimony, so no neutral parent hydride has it. The book’s name is that of the cation as the hydride ion lost from the λ5 hydride, ‘5λ5-arsaspiro[4.4]nonan-5-ylium (PIN)’ (:41802), and ‘1H-2λ5-spiro[isoquinoline-2,2’-pyrido[1,2-a] pyrazin]-2-ylium (PIN)’ (:41808) for the nitrogen; the ‘ium’ of a parent with the standard valence (‘1-methyl- 1-azabicyclo[2.2.1]heptan-1-ium (PIN)’,:41773) is for the cation that a hydron makes.

The spiro parent is named by spiro.name_spiro_system off the λ5 hydride of the cation (the cation with its charge replaced by a hydrogen atom: the numbering is the one of the molecule, and the replacement prefix cites the λ of the atom by the rule of the neutral spiro route). name_spiro_system hands back the parent alone (its substituents_included is False): a group on a ring atom is cited as a prefix of the parent on the numbering it chose, the way the neutral spiro route cites it (composer._enrich_complex_ring_with_subs).

orthonym.rules.charged_spiro.lambda_hydride(mol, cation_idx)#

The λ5 hydride of the cation: the molecule with the charge of the atom replaced by one hydrogen atom, so that its bonding number is five. Not sanitized (the atom is over-valent for RDKit); None when it cannot be built.

orthonym.rules.charged_spiro.name_charged_spiro(mol, cation_idx)#

The candidate name of the spiro system whose junction carries the one cationic ring heteroatom cation_idx (see the module docstring), or ‘’ when the shape is out of scope: not a ring heteroatom of charge +1, not the junction of a pure spiro system, or a parent that cannot be named. No read-back is made here.

orthonym.rules.charged_spiro.ring_system_is_pure_spiro(mol, cation_idx)#

Whether the ring system of the cation is a pure spiro system (N spiro atoms joining N+1 rings) and holds every spiro atom of the molecule. The rings of the groups on it (a phenyl, a piperidinyl) are no part of the system: spiro.is_spiro_system counts every ring of the molecule and declined the spiro ammonium whose groups held a ring.

orthonym.rules.charged_spiro.ium_with_ring_groups(mol, parent_name, locant, ring_atoms, atom_to_locant, suffix='ium')#

<groups><parent>-<locant>-<suffix>, the ‘e’ of the parent elided before the suffix (‘ium’ or ‘ylium’,, the Blue Book ‘General rule for systematically naming cationic centers in parent hydrides’), or ‘’ when the groups cannot be cited. The caller reads the name back to the full InChIKey.

orthonym.rules.charged_spiro.ring_uide_name(mol, center_idx)#

The name of a ring centre with the charge -1 that is the hydride adduct of its ring hydride: the spiro parent of a boron or pnictogen at a spiro junction, ‘5-boraspiro[4.4]nonan-5-uide’, else the ring hydride and ‘uide’ at the centre (ions.emit_parent_hydride_cumulative_suffix, ‘1,1-dimethylborinan-1-uide (PIN)’, an example of “ANIONS FORMED BY ADDITION OF HYDRIDE IONS”, the Blue Book). ‘’ when there is none; the caller reads the name back to the full InChIKey.

The junction has four ring bonds, so the spiro hydride whose hydride ion is added has no standard bonding number there: the book’s ‘uide’ examples of a ring (the text of “Skeletal replacement (‘a’) nomenclature”, the Blue Book, whose heading is missing from the OCR: “Anionic centers in parent hydrides are named by two methods”, with ‘2,2-dimethyl-2-boraspiro[4.5]decan-2-uide (PIN)’,:41143) have the centre off the junction, so the name of the junction is valid and no PIN.