orthonym.validation.spelling.checks_skeletal_chain#
Note
Internal API. Names and behaviour may change between releases.
Spelling check: an acyclic chain of four or more heterounits has a skeletal replacement (‘a’) PIN (registered with:func:orthonym.validation.pin_spelling.register).
## **** Skeletal replacement ('a') nomenclature in acyclic chains (the Blue Book),
(:23348): “Skeletal replacement (‘a’) nomenclature rather than substitutive or multiplicative names must be used to
generate preferred IUPAC names for acyclic structures when four or more heterounits are present in a unbranched
chain containing at least one carbon atom and when none of the heteroatoms constitute all or part of the principal
characteristic group of the compound.” The paragraph that follows (:23350) defines the unit: “A heterounit is a set
of heteroatoms having a name of its own such as, -SS-, disulfanediyl; -SiH2-O-SiH2-, disiloxane-1,3-diyl;
-SOS-, dithioxanediyl (not -OSiH2O- nor -OSO- that correspond to three consecutive units ‘oxysilanediyloxy’ and
‘oxysulfanediyloxy’, respectively).” (:23405): “The same number of characteristic groups that would be
expressed as suffixes in substitutive names must be present in skeletal replacement (‘a’) names.” An ester is named
by functional class nomenclature in a PIN,:31663), so the ‘a’ group stands in its alkyl word
(‘dimethyl 2,4,6,8-tetrasilanonan-1-yl phosphate (PIN)’,:23401): the reading below looks for the ‘a’ block
anywhere in the name, enclosures included.
The structure decides whether the rule applies (a_chain_applies()) and the name decides whether it is met
(names_an_a_chain()); a name that does not meet it for a molecule the rule applies to is a systematic name,
not the PIN. The reading is conservative on purpose: it applies only to a shape it can read with certainty, so a
molecule it cannot read (a branch that carries heteroatoms, a principal group that may sit off the chain, a
heteroatom with a double bond, a ring, an ion, several fragments) is never a failure. It reads the RDKit
structure and the name only: no naming code, no OPSIN.
The chain (S1 of the lane): a simple path of neutral carbons and plain heteroatoms whose ends are carbon or one of B, Si, P, Ge; a heterounit counts per run of consecutive heteroatoms; at least four units. Every other part of the molecule must hang on the path in one of the few ways that leave the chain the one would choose; and a nitrogen in the chain is a skeletal atom only when it is not the principal amine (S2:, classes 17 and 19,:18162; Polyamines,:26324, ‘3,6,9,12-tetraazatetradecane-1,14-diamine (PIN)’,:26400).
- orthonym.validation.spelling.checks_skeletal_chain.names_an_a_chain(name)#
True when
namehas a block of skeletal replacement (‘a’) prefixes on an acyclic stem anywhere in it (‘2,5,8,11-tetraoxadodecane’, ‘3,6,9,12-tetraoxatetradecanedioic acid’, ‘dimethyl 2,4,6,8-tetrasilanonan-1-yl phosphate’); a name of a ring (‘1,4,7,10-tetraoxacyclopentadecane’) has none.
- orthonym.validation.spelling.checks_skeletal_chain.a_chain_applies(mol)#
True when gives the acyclic structure
mola skeletal replacement (‘a’) PIN, as far as the reading above can tell: a single fragment without a ring, of at most 120 heavy atoms, in which some chain of four or more heterounits carries nothing the reading does not know, and whose heteroatoms are no part of the principal characteristic group.
- orthonym.validation.spelling.checks_skeletal_chain.a_substituent_chain_applies(mol)#
True when a chain that hangs from a ring by one bond has four or more heterounits between its carbon ends.
(the Blue Book) gives the ‘a’ name to “four or more heterounits… in a unbranched chain
containing at least one carbon atom”, (:23430) ends the chain in carbon, so the atom bonded to the ring is outside the chain when it is a heteroatom (‘tetraoxatridecan-13-yl’ of a ‘(…)oxy’ group), and the substituent group of the book’s own example, ‘N-(14-amino-3,6,9,12-tetraazatetradecan-1-yl)’ (:23415, “since four heteroatoms are also present in the N-substituent group, it must also be named by skeletal replacement (‘a’) nomenclature”), is named the same way. The reading is conservative as the whole-chain one is: one neutral fragment, the hanging part an unbranched path of saturated atoms with a carbon at the free end, nothing else.
- orthonym.validation.spelling.checks_skeletal_chain.a_substituent_chain_name_check(mol, name)#
A failure when a chain of four or more heterounits hangs from a ring of
molandnamehas no ‘a’ block.
- orthonym.validation.spelling.checks_skeletal_chain.names_an_a_acid_parent(name)#
True when an ‘a’ block of
namecarries the acid (ester, acyl halide) suffix itself, or is the alcohol word of an ester: the ‘a’ chain is a parent, not a prefix (’…-tetraazapentadecan-1-amido}…propanoic acid’ has the block on a prefix only).
- orthonym.validation.spelling.checks_skeletal_chain.a_chain_name_check(mol, name)#
A failure when
molis a chain that gives an ‘a’ PIN andnamehas no ‘a’ block; None when the rule does not apply (or is not read) or the name has the block. With a group senior to amides (an acid, its ester or acyl halide) the block must carry that group’s suffix: (:18875) puts the principal group on the parent, so an ‘a’ block on a prefix leaves the chain of the structure unnamed as the ‘a’ parent.
- orthonym.validation.spelling.checks_skeletal_chain.a_chain_amine_parent_check(mol, name)#
A failure when the principal amine of
molhas an ‘a’ chain on its nitrogen and the parent ofnameis not an ‘a’ chain: makes the ‘a’ chain the parent (‘N-methyl-N-(2,5,8,11-tetraoxatridecan-13-yl)- 2,5,8,11-tetraoxatridecan-13-amine’); an ‘a’ block only inside a prefix of a substitutive parent is not the PIN.
- orthonym.validation.spelling.checks_skeletal_chain.onium_a_chain_applies(mol)#
True when the cation of
mol(the whole molecule, or the one carbon part of a salt whose other parts are carbon-free anions) has an ‘a’ PIN by method (1) (### **** SKELETAL REPLACEMENT ('a') NOMENCLATURE FOR CATIONS, the Blue Book): an acyclic cation without nitrogen (an aminium nitrogen is the principal group,:41775), every atom of this reading, single bonds at the heteroatoms, and a path between two chain ends (carbon, or B, Si, P, Ge) with four heteroatoms, no two adjacent, an onium centre among them (‘3,12-dimethyl-6,9-dioxa-3,12-dithiatetradecane-3,12-diium (PIN)’,:41785).
- orthonym.validation.spelling.checks_skeletal_chain.onium_a_chain_name_check(mol, name)#
A failure when the cation of
molhas an ‘a’ PIN (onium_a_chain_applies()) andnamehas no ‘a’ block: the substitutive ‘{2-[2-(2-methoxyethoxy)ethoxy]ethyl}di(methyl)sulfanium iodide’ is not the PIN.