orthonym.decomposition.amide_ties#

Note

Internal API. Names and behaviour may change between releases.

The amide split a molecule is named from when two of its amides tie as parent structures.

engine._split_parent_amide_is_junior declines an amide split whose parent is strictly junior to another amide (rules.amide_parent:,,,, and, and says nothing of a tie. A tie is decided by the names of the prefixes (rules.amide_tie_names): “the lower locant set for substituent groups in order of citation in the name” (the Blue Book, “ CRITERIA RELATED TO NUMBER AND LOCATION OF SUBSTITUENT GROUPS”,:21596) and “The preferred IUPAC name is the name that is earlier in alphanumerical order” (:22234, “ CRITERIA RELATED TO ALPHANUMERICAL ORDER OF NAMES”), so that the first split that was cleaved (‘N-ethyl-2-[2-(methylamino)acetamido]acetamide’) is a PIN only when its parent is the amide those criteria choose.

resolved_amide_split_name is asked of the name of one amide split, after the split has been named:

  • the parent of the split is the best of the amides it names the molecule on, and no other amide ties with it (or only a symmetric copy of it): the name stands;

  • the criteria choose the parent of the split: the name stands;

  • the criteria choose another amide, and the molecule has a split on that amide that names it (adequately): that name;

  • the criteria choose another amide that no split names, or do not decide: the name stands, labelled below the PIN (record_non_pin_label): it is a name of the molecule, not shown to be the preferred one.

Only a molecule whose principal characteristic group is a carboxamide is judged (a name on an acid or an ester parent does not choose among amides).

orthonym.decomposition.amide_ties.TIE_RULE = 'P-45.2.3'#

the rule and the reason of the label of a name whose parent is not shown to be the preferred one

orthonym.decomposition.amide_ties.split_parent_atoms(mol, bond)#

The atoms of the part of mol that the name of the amide split bond takes its parent amide from: the carbonyl carbon when the amine is cited as an N-substituent (a simple amine prefix), the whole amine side when the acyl floats onto the amine (engine._split_parent_amide_is_junior). None when the split cannot be read.

orthonym.decomposition.amide_ties.resolved_amide_split_name(mol, bond, name, style, name_split, find_bonds, adequate)#

name (the name of the amide split bond), the name of the split that the criteria of the module docstring choose instead, or name labelled below the PIN. name_split(mol, bond, style) names a split, find_bonds(mol) lists the cleavable bonds and adequate(name, mol, bond) is the engine’s coverage gate.