orthonym.rules.amide_tie_names#

Note

Internal API. Names and behaviour may change between releases.

Two carboxamides of one molecule that tie as parent structures:, then, on the names of their prefixes.

rules.amide_parent ranks the amides of a molecule by,,,, and, which are criteria of structures. Two amides that tie on all of them are told apart by the criteria that read the names of the prefixes (the same step rules.ring_tie_names takes for two rings):

  • “the senior parent structure that has the lower locant or set of locants for substituents cited as prefixes to the parent structure (other than ‘hydro/dehydro’ prefixes) in their order of citation in the name” (the Blue Book, under “ CRITERIA RELATED TO NUMBER AND LOCATION OF SUBSTITUENT GROUPS”,:21596): the locants of the prefixes as the name cites them, group by group; the locant ‘N’ is lower than a numeral “Lowest set of locants”,:3189: “Italic capital and lower-case letter locants are lower than Greek letter locants, which, in turn, are lower than numerals”). In ‘N-ethyl-2-[2-(methylamino)acetamido]acetamide’ the prefixes are cited ‘ethyl, (methylamino)acetamido’ at ‘N,2’; the other parent of the same molecule cites ‘N,2’ too (‘N-[2-(ethylamino)-2-oxoethyl]-2-(methylamino)acetamide’), and the amide of ‘C[C@@H]1CCCC[C@@H]1NC(=O)CNCC(=O)NC’ that has the N-methyl group cites ‘methyl’ before ‘methylcyclohexylamino…’ at ‘N,2’ where the other cites ‘2,N’.

  • and (:22172,:22208) come between the two criteria. They are not worked out: a prefix with a nonstandard bonding number (a ‘lambda’ in its name) or an isotopically modified atom outside the parents leaves a tie of undecided.

  • “CRITERIA RELATED TO ALPHANUMERICAL ORDER OF NAMES” (:22234): “The preferred IUPAC name is the name that is earlier in alphanumerical order (see. Alphabetic letters are considered first in the order that they appear in the name; all Roman letters are considered before any italic letters, unless the latter are used as locants or are a part of a compound or composite locant, for example, ‘N’ and ‘4a’. Then, if still there is a choice, numerical locants are considered in the order of their appearance in the name.” Two amides that tie have the same parent skeleton, so the letters that decide are those of the prefixes as the name cites them; a string of letters that is the start of the other is left undecided (the letters of the parent name would decide, and they are not built here).

The parents are chains of acyclic carbon atoms from the carbonyl carbon (C-1): the locant of a prefix is its position on the chain, or N on the amide nitrogen. A carboxamide on a ring is not worked out (the numbering of the ring decides the locants), and a prefix without a name, or a shape this does not read, leaves the tie undecided (None) for the caller to label. The prefixes are named as the sort keys of perception.chains are (name_substituent_for_ordering, inside isolated_provenance, which leaves no trace in the name of the molecule).

orthonym.rules.amide_tie_names.senior_amide_by_names(mol, carbonyls)#

The carbonyl carbon, among carbonyls, of the amide that and then make the parent; None when they do not decide (a ring amide, a prefix without a name, equal keys, one string of letters the start of the other, or

next after a tie of the locants). carbonyls are amides that tie on every criterion of

rules.amide_parent.amide_parent_key, one for each class of atoms the symmetry of the molecule maps onto each other.