orthonym.rules.isotope_suffix_split#
Note
Internal API. Names and behaviour may change between releases.
The decorator on a molecule whose carboxy groups are labelled in different ways: one suffix, the rest prefixes.
(heading ‘Isotopically modified compounds’, the Blue Book): “When two characteristic
groups are isotopically modified in different ways so that they cannot be combined using multiplicative terms such as ‘di-’, ‘bis-’, etc., the isotopically modified characteristic group with the greater number of modifications is chosen as the principal characteristic group to be cited as a suffix; the other characteristic is then cited as a prefix” (‘1-(13C)carboxycyclohexane-1-(14C)carboxylic acid (PIN)’,:43778).
The decorator of rules.isotopes names the isotope-STRIPPED molecule, where the groups are alike and are cited
as one multiplied suffix (‘benzene-1,2-dicarboxylic acid’); a label on one of them has no place in that name. With
one group the suffix, the parent is numbered again by the usual rules (lowest locant to the suffix, then to the
prefixes, then the first prefix in alphanumerical order), which a split of the multiplied suffix cannot do: the
label on C-2 of ‘4-methylbenzene-1,2-dicarboxylic acid’ gives ‘2-carboxy-5-methylbenzene-1-(13C)carboxylic acid’.
So the numbering is the engine’s: every other carboxy group is drawn as a carboxamide, which the engine cites as
the prefix ‘carbamoyl’ with the one acid as the suffix, and that name is spelled with ‘carboxy’. No prefix may
sort between the two words (‘carbamoyl’ < ‘carboxy’), or the alphanumerical tie-break could differ.
The labelled group is the most modified one and carries every label of the molecule. The name is OPSIN-read-back gated like every other candidate, and labelled below the PIN: the PIN status of the split is not checked here.
- orthonym.rules.isotope_suffix_split.surrogate_smiles(original)#
The isotope-stripped molecule with every carboxy group but the labelled one drawn as a carboxamide, or None when the labels do not all sit on one of two or more carboxy groups, or the input has an amide of its own.
- orthonym.rules.isotope_suffix_split.decorate_with_one_suffix(namer, original, skeleton_name)#
The name of
originalwith its labelled carboxy group the suffix and the others ‘carboxy’ prefixes, numbered by the engine on the carboxamide surrogate (module docstring); None when there is no such name. Only for groups the unmodified nameskeleton_namecombines with a multiplier (‘benzene-1,2-dicarboxylic acid’), the case is about; a ‘carboxymethyl’ and a ‘benzoic acid’ are different groups already.
- orthonym.rules.isotope_suffix_split.mark_label_on_one_of_multiplied_groups(name, original, skeleton_name)#
Record
nameas no PIN (record_non_pin_fragment) when the unmodified nameskeleton_namecites a group with a multiplied suffix (‘benzene-1,4-dicarboxamide’) and the groups oforiginalcarry different labels:(heading ‘Isotopically modified compounds’, the Blue Book) makes the group with the
greater number of modifications the suffix and the other a prefix (‘1-carboxycyclohexane-1-(13C,2H)carboxylic acid (PIN)’,:43776), so ‘(15N)benzene-1,4-dicarboxamide’ is a right structure but not the PIN spelling. The name still ships, below the PIN.