orthonym.assembly.ring_prefix_numbering#
Note
Internal API. Names and behaviour may change between releases.
Numbering of a decorated ring prefix among the numberings the free valence leaves open.
substituent_enumerator._recursive_fragment_substituent_name numbers a ring core by the
criteria it models (heteroatoms, free valence, ene/yne, the prefix locants taken together). Several
numberings can tie on all of them (the ring of 2,3-dihydroxy-4,5,6-tris(...)cyclohexyl runs
either way round from C-1). the Blue Book, “ NUMBERING” (:3219), decides the tie in this order:
(f) “detachable alphabetized prefixes, all considered together in a series of increasing numerical
order” (:3300; the caller’s key);
(g) “lowest locants for the substituent cited first as a prefix in the name” (:3307; the examples
4-methyl-5-nitrooctanedioic acid (PIN), 1-methyl-4-nitronaphthalene (PIN) (not 4-methyl-1-
nitronaphthalene));
(j) “the lower locant is assigned to CIP stereodescriptors Z, R, M, and r (pseudoasymmetry) that are
preferred to E, S, P, and s” (:3346).
Without this step the first of the tied numberings found decided, and that is the order of the atoms in the input.
The numberings that tie are the numbering found composed with an automorphism of the core that keeps the attachment atom, each atom’s element, charge, hydrogen count, aromaticity and exocyclic double bonds (so every locant set of the core name is unchanged) and maps the carriers of the decorations onto themselves.
- orthonym.assembly.ring_prefix_numbering.core_automorphisms(mol, core, attach_idx)#
The automorphisms of the ring core that fix the attach atom and keep each atom’s element, charge, hydrogen count, aromaticity and number of exocyclic double bonds (an automorphism then keeps every locant set of the core name: indicated hydrogen, hydro, ene, oxo positions).
- orthonym.assembly.ring_prefix_numbering.tied_numberings(mol, core, attach_idx, pos, carriers)#
Numberings equal to
poson every criterion before (g):poscomposed with an automorphism of the core that maps the set of carrier atoms onto itself.
- orthonym.assembly.ring_prefix_numbering.stereo_atoms(mol, core)#
The core atoms whose locant a stereodescriptor cites: stereocentres and the ends of a stereogenic ring double bond.
- orthonym.assembly.ring_prefix_numbering.fusion_atom_locants(mol, core, attach_idx, carriers, pos)#
{atom: lettered locant}of the fusion atoms of the fusion name of a fused core (rules.fused_forms.fused_system_form), on the numberingpos(the form’s numbering composed with an automorphism of the core, as the ties of (g) are resolved above), or{}.posholds the numbered atoms only; the fusion atoms of a fused ring (‘3a’, ‘7a’ of indene) have no entry in it, so the descriptors of their stereocentres were never cited. “Numbering of peripheral skeletal atoms” (the Blue Book): “Each fusion carbon atom is given the same number as the immediately preceding nonfusion skeletal atom, modified by a Roman letter ‘a’, ‘b’, ‘c’, ‘d’, etc.”; (:44624) cites every stereogenic unit. Every automorphism that reproducesposmust give the same letters, else{}.
- orthonym.assembly.ring_prefix_numbering.with_fusion_locants(mol, core, attach_idx, carriers, pos)#
poswith the lettered locants of the stereogenic fusion atoms of a fused ring core, for the descriptors of the prefix: the centres at ‘3a’ and ‘7a’ of(1R,2S,3aR,7aS)-...octahydro-1H-inden-1-ylwere left out of its descriptors.positself when no stereocentre of the core lacks a locant.
- orthonym.assembly.ring_prefix_numbering.citation_key(name)#
The order in which the groups of a ring prefix are cited: (alphanumerical order) and then, for groups that tie on it because leaves the descriptors out (
(6R)-...and(6S)-...), R before S ,:22603, under### **** CRITERIA RELATED ONLY TO CONFIGURATION; seenaming_utils.alpha_sort_key_total). The order is a total one: asortedthat stops at the alphanumerical key keeps the order its input had, which for a set of names is the order of their hashes (the hash seed’s) and for the groups of a prefix the order of the atoms of the input.
- orthonym.assembly.ring_prefix_numbering.g_key(numbering, named)#
(g): the locants of the prefixes in the order they are cited (
citation_key).
- orthonym.assembly.ring_prefix_numbering.g_winners(mol, core, attach_idx, pos, named)#
The numberings that tie with
poson (a)-(f) and have the lowest (g) key.
- orthonym.assembly.ring_prefix_numbering.j_key(mol, core, numbering)#
(j):
(locants of the Z/R centres and bonds, locants of the E/S ones); lower is preferred. A stereogenic ring double bond is cited at the lower locant of its two ends (the higher when it closes the ring). Only the CIP labels the molecule carries are read.
- orthonym.assembly.ring_prefix_numbering.prefix_order_numbering(mol, core, attach_idx, pos, named)#
posresolved by (g), then (j), among the numberings that tie on (a)-(f). A tie that remains keepsposwhen it is among the winners (the numbering found first), else the first winner.
- orthonym.assembly.ring_prefix_numbering.senior_heteroatom_at_one(mol, hetero, first_atom, rank)#
0 when the numbering of a heteromonocycle that starts at
first_atomgives the locant 1 to a heteroatom of the most senior element of its ring (rankmaps an atom index to its rank in the seniority sequence of the ‘a’ prefixes: lower is senior), else 1; 0 for a ring with no heteroatom. (the Blue Book): “The locant ‘1’ is given to a heteroatom that occurs first in the seniority sequence used for citation of the skeletal replacement (‘a’) prefixes. The numbering is then chosen to give lowest locants to heteroatoms considered as a set in ascending numerical order”: the oxygen of ‘1,3,4-oxadiazol-2-yl’ is 1, not the nitrogen of the lower set {1,2,4}.