orthonym.decomposition.tied_splits#
Note
Internal API. Names and behaviour may change between releases.
Which of several equally ranked ester splits the decomposition names the molecule from.
engine._select_best_bond ranks the cleavable bonds by type, an ester among them by its seniority
(ester_split_rank: criteria 1 and 2 below), and then by how evenly the split halves the molecule.
Two ester bonds can tie on all three (the two acetates of a diacetate, the two
but-2-enoates of a piperazine bis-enoate, the five acetates of a polyol), and the first of them in
the atom order of the input was cleaved. Every such bond gives a name of the molecule, and the
names differ: …-2-methylpiperazin-1-yl}… against …-3-methylpiperazin-1-yl}…, …-en-1-yl
acetate against …-en-11-yl acetate, a butenoate chain against a propenoate chain.
The Blue Book decides between such names. The criteria are applied in this order (the Blue Book, “ SENIORITY OF ACYCLIC CHAINS (THE PRINCIPAL CHAIN)”:20916, ” SENIORITY CRITERIA APPLICABLE TO RINGS, RING SYSTEMS, OR ACYCLIC CHAINS”:21014, “ CRITERIA RELATED TO ALPHANUMERICAL ORDER OF NAMES”:22234):
The acid component of the split: “Systems composed of rings and chains” (1) “Within the same class, a ring or ring system has seniority over a chain” (:19336); then “The principal chain has the greater number of skeletal atoms [criterion (b) in ]” (:20938).
“Polyester names formed by using substitutive nomenclature, and/or multiplicative nomenclature, and functional class nomenclature” (:31858): “seniority of rings, ring systems, and chains; number and location of substituents; and alphanumerical order is applied in forming the alcoholic component” (
rules.ester_seniority): the acid component by substituents, then the alcohol component by ring before chain, the longest chain through the attachment carbon (b)) and substituents (‘2-{2-[(acetyloxy)methyl]phenyl}ethyl acetate’, the ethyl chain senior to the methyl chain).“The senior ring or ring system has the lowest locants for points of attachment (if a substituent group)” (:21354,
pyridin-2-ylbeforepyridin-3-yl): the alkyl component, when the two names cite the same skeleton.“The preferred IUPAC name is the name that is earlier in alphanumerical order… Alphabetic letters are considered first in the order that they appear in the name… Then, if still there is a choice, numerical locants are considered in the order of their appearance in the name”, then (:22603) the order of the descriptors R and S.
Only the splits that tie are named and compared; a name is taken from the split that the order
puts first, and every other criterion of _select_best_bond stays as it was. What this does not
model: the heteroatoms of an acid chain (a)), the multiple bonds of the chain,
and the seniority of two different ring skeletons.
- orthonym.decomposition.tied_splits.MAX_TIED_SPLITS = 6#
the most tied splits that are named
- orthonym.decomposition.tied_splits.acyl_chain_atoms(mol, acyl_c)#
The number of skeletal atoms of the longest chain of acyclic carbon atoms that starts at the acyl carbon (the carboxyl carbon is the first atom of the chain), 0 for an acyl carbon on a ring. The acyclic carbon atoms of a molecule form a forest, so a walk away from the start cannot meet itself.
- orthonym.decomposition.tied_splits.ester_split_rank(mol, bond)#
The seniority of the ester split
bond(the smaller is the senior): the acid component, ring before chain and the longer chain,, then the polyester criteria ofrules.ester_seniority; ```` for a bond that is no ester. It is the first two criteria ofchoose_split.
- orthonym.decomposition.tied_splits.attachment_locant(name)#
The locant of the free valence of the alkyl word of an ester name (0 when it is not cited).
- orthonym.decomposition.tied_splits.name_order_key(name)#
(letters, locant of the free valence, locants in order of appearance, R/S letters): the order of criteria 2 and 3 of the module docstring. The letters of a name are compared first , so the locant of the free valence is compared only between names that cite the same skeleton.
- orthonym.decomposition.tied_splits.tied_ester_splits(mol, bonds, best, balance)#
The ester bonds that rank with
beston every criterion of_select_best_bond(one per symmetry class), or[best]whenbestis not an ester or stands alone.balance(mol, bond)is the engine’s evenness score. An ester whose acid ring carries fewer substituents than another of the same skeleton is left out, as the engine does), and so is one whose parent roles are swapped whenbest’s are not (the two names are not of one kind).
- orthonym.decomposition.tied_splits.choose_split(mol, group, best, style, name_split, adequate, exhausted)#
(bond, name)of the split ofgroupwhose name the criteria of the module docstring put first;(best, its name)when none of them gives an adequate name.name_split(mol, bond, style)names the molecule from a split,adequate(name, mol, bond)is the engine’s coverage gate andexhaustedits exploration budget.