orthonym.rules.hydroximic_acids#
Note
Internal API. Names and behaviour may change between releases.
Hydroximic acids: the N-hydroxy derivatives of the imidic acids.
“Substitutive nomenclature, suffix mode” (the Blue Book,:30096): “Acids in which the
carbonyl oxygen atom of a carboxylic acid group has been replaced by =N-OH are named as N-hydroxy
derivatives of imidic acids named as described in. This method is used to generate preferred
IUPAC names.” (‘N-hydroxyethanimidic acid (PIN)’,:30106; ‘N-hydroxybenzenecarboximidic acid (PIN)’,:30108.)
The acid chalcogen may be S, Se or Te, (:30208): ‘N-hydroxycyclohexanecarboximidoselenoic acid
(PIN)’ (:30273), so the suffix is that of the imidic, imidothioic, imidoselenoic or imidotelluroic acid of
the same chalcogen (suffix_group()) and the N-hydroxy is a PREFIX, cited with the others in one
alphanumerical series ‘ALPHANUMERICAL ORDER’,:3436,:3440; ‘N,4-dimethyl-N-(3-methylphenyl)benzamide (PIN)’,:32879, puts the
italic N and the numbers in one list). Its italic locant is essential “Citation of locants”,
:2869), so no licence withholds a locant beside it (n_substituted_acids.n_italic_locant_cited), and a
‘hydroxy’ the parent also carries is one multiplied prefix with it (b),:7067): ‘N,2-dihydroxy-
propanimidic acid’. The group demoted by a senior one is the compound prefix ‘C,N-dihydroxycarbonimidoyl’
on a ring (1),:30131; ‘4-(C,N-dihydroxycarbonimidoyl)benzoic acid (PIN)’,:30138) and
‘hydroxy’ with ‘hydroxyimino’ at the end of a chain (:30132).
The group used to be built by one handler that put ‘N-hydroxy’ in front of the finished name of the imidic
acid, which is right only when that name has no prefix of its own: a substituted acyl group got
‘N-hydroxy2-methylpropanimidic acid’ or nothing. It is built now where the other groups are: the
fragment assembly of general_acyclic and polyfunctional for a chain or a saturated ring, the benzene
namer for a benzene ring. This module holds what those producers share. Not built, and left to the
producers that name every structure: two hydroximic groups on one parent (their N locants carry the
parent’s numbers, ‘N1,N4-dihydroxybutanediimidic acid’,:30112), a ring that is neither benzene nor a
saturated carbocycle (‘N2-hydroxy-1H-pyrrole-2-carboximidic acid (PIN)’,:30121 numbers the N with its ring
position), and the S, Se and Te analogues demoted on a ring (the book gives them no prefix).
The standard InChIKey does not see the configuration of the C=N of -C(=N-OH)-XH (its mobile hydrogen): ‘C/C(O)=N/O’ and ‘C/C(O)=NO’ have one key. The descriptor (‘(1E)-N-hydroxy…’) is read back against OPSIN’s isomeric SMILES in the tests, not by the key.
- orthonym.rules.hydroximic_acids.junior_to(principal_group, mol, match)#
True when the hydroximic acid
matchis junior toprincipal_group: the principal group is strictly senior to the imidic acid it is the N-hydroxy derivative of.(the Blue Book): the prefixes are used “When another group is present that has
seniority for citation as principal group”. A plain imidic acid has none over an N-hydroxy imidic acid (both are imidic-acid suffixes:,:18875, “the maximum number of substituents corresponding to the principal characteristic group”, ‘N1,N’4-dihydroxybenzene-1,4-dicarboximidic acid (PIN)’, :30125), and a hydrazonic acid or an imidothioic acid is junior to it (class 7a,:18172).
- orthonym.rules.hydroximic_acids.cn_labels(mol)#
{frozenset({C, N}): 'E' | 'Z'}for the configured C=N bonds of the hydroximic and N-substituted imidic acids ofmol.
- orthonym.rules.hydroximic_acids.with_n_group_fragments(features, fragments)#
fragments(parent, suffix, prefix and stereo fragments of a general-acyclic name) with the N-substituent of the principal group cited among the prefixes (with_n_prefix_fragments(): the N-hydroxy of a hydroximic, hydroxamic or sulfonimidic acid, the carbon group on the N of an imidic acid) and, for a hydroximic or N-substituted imidic acid on a ring parent, the configuration of its C=N in the stereo fragment; None where the name cannot be built.A descriptor that relates to the parent structure is “placed at the front of the complete name”, “preceded by a numerical or letter locant… when such locants are present”, the Blue Book). The carbon of the suffix of ‘cyclohexanecarboximidic acid’ is not an atom of the ring and has none, so the descriptor is bare, as for the one-carbon parent of ‘(Z)-N-hydroxy(4-chlorophenyl)(phenyl)methanimine (PIN)’ (:47666): ‘(E)-N-hydroxycyclohexanecarboximidic acid’. (A chain parent numbers the carbon:
_generate_stereodescriptorscites ‘(1E)-‘.) Another descriptor at the front would need one block with a bare member, which the book does not print: the name is not built. Unchanged for every other group.
- orthonym.rules.hydroximic_acids.ring_stereodescriptors(features, descriptors)#
descriptors((locant, label)of the parent’s stereogenic units) with the bare descriptor of the C=N of a principal hydroximic acid on a ring parent (see:func:with_n_group_fragments), or None where another descriptor stands at the front too. Unchanged for every other group.
- orthonym.rules.hydroximic_acids.ring_acyl_prefixes(features, fg_name, matches, ring_set, atom_to_locant, principal_group)#
The formatted ring prefixes of the imidic or hydroximic acids
matchesbonded to a ring, or None where one of them cannot be cited (its carbon is a ring atom, it has no single ring neighbour, or it has no compound prefix:ring_prefix_ok()).The compound prefix of the group bonded to the ring, ‘C-hydroxycarbonimidoyl’ (1), the Blue Book) or ‘C,N-dihydroxycarbonimidoyl’ (1),:30131). A descriptor of the C=N of the hydroximic acid relates to the substituent group, so it “is cited at the front of the corresponding prefix”,:44639), within its enclosing marks, and without a locant, for the carbon of the acyl group has none (‘1-[(Z)-ethylidene]- 3-[(E)-ethylidene]cyclopentane’,:48292; ‘(Z)-N-hydroxy(4-chlorophenyl)(phenyl)methanimine (PIN)’,:47666): ‘4-[(E)-C,N-dihydroxycarbonimidoyl]benzoic acid’. Groups of one configuration are one multiplied prefix, ‘bis[(E)-C,N-dihydroxycarbonimidoyl]’ (c),:7035); groups of two are two prefixes.
- orthonym.rules.hydroximic_acids.ring_prefix_ok(fg_name, mol, match, principal_group)#
False for a group that has no compound prefix on a ring: a hydroximic acid that is not junior to the principal group (
junior_to(): two imidic acids of one rank are a dicarboximidic acid with an N-hydroxy,:30125, not built) or whose acid chalcogen is not O (the book gives the S, Se and Te analogues none).
- orthonym.rules.hydroximic_acids.chain_end_prefixes(mol, matches, chain_set, atom_to_locant, principal_group)#
The prefixes of the hydroximic acids
matchesdemoted at the end of a chain:(prefixes, atoms); None where the group is not at a chain end (the caller goes on as before).(the Blue Book): “the combination of the prefixes ‘hydroxy’ and ‘hydroxyimino’
at the end of a carbon chain is used in preferred IUPAC names rather than the prefix ‘dihydroxycarbonimidoyl’” (‘5-hydroxy-5-(hydroxyimino)pentanoic acid (PIN)’,:30140); the S, Se and Te analogues give ‘sulfanyl’ and so on for the ‘hydroxy’,:30208). ‘hydroxyimino’ is a compound prefix, parenthesised. A match is (C, imino N, O on N, acid X).
The prefixes are the PIN’s only under a principal group that is strictly senior (
junior_to()). Under an acid of the group’s own rank the name (‘4-hydroxy-4-(hydroxyimino)butanimidic acid’) still describes the structure (a read-back holds) but is not the PIN, which is the dicarboximidic acid with an N-hydroxy (:30125, not built): it is recorded as a non-PIN part (record_non_pin_label), so the default tier declines it and the best-effort tier ships it below the PIN, never deletes it.
- orthonym.rules.hydroximic_acids.BENZENE_SUFFIX_NAMES = {'(E)-N-hydroxycarboximidic acid': 'carboximidic acid', '(E)-N-hydroxycarboximidoselenoic acid': 'carboximidoselenoic acid', '(E)-N-hydroxycarboximidotelluroic acid': 'carboximidotelluroic acid', '(E)-N-hydroxycarboximidothioic acid': 'carboximidothioic acid', '(E)-N-substituted carboximidic acid': 'carboximidic acid', '(E)-N-substituted carboximidoselenoic acid': 'carboximidoselenoic acid', '(E)-N-substituted carboximidotelluroic acid': 'carboximidotelluroic acid', '(E)-N-substituted carboximidothioic acid': 'carboximidothioic acid', '(Z)-N-hydroxycarboximidic acid': 'carboximidic acid', '(Z)-N-hydroxycarboximidoselenoic acid': 'carboximidoselenoic acid', '(Z)-N-hydroxycarboximidotelluroic acid': 'carboximidotelluroic acid', '(Z)-N-hydroxycarboximidothioic acid': 'carboximidothioic acid', '(Z)-N-substituted carboximidic acid': 'carboximidic acid', '(Z)-N-substituted carboximidoselenoic acid': 'carboximidoselenoic acid', '(Z)-N-substituted carboximidotelluroic acid': 'carboximidotelluroic acid', '(Z)-N-substituted carboximidothioic acid': 'carboximidothioic acid', 'N-hydroxycarboximidic acid': 'carboximidic acid', 'N-hydroxycarboximidoselenoic acid': 'carboximidoselenoic acid', 'N-hydroxycarboximidotelluroic acid': 'carboximidotelluroic acid', 'N-hydroxycarboximidothioic acid': 'carboximidothioic acid', 'N-substituted carboximidic acid': 'carboximidic acid', 'N-substituted carboximidoselenoic acid': 'carboximidoselenoic acid', 'N-substituted carboximidotelluroic acid': 'carboximidotelluroic acid', 'N-substituted carboximidothioic acid': 'carboximidothioic acid'}#
The N-substituted imidic acids (
n_substituted_acids) are the same classes with a carbon group on the N in place of the OH: ‘N-substituted’ stands for the group in the suffix name, the name of the group is the record’sn_substituents. They have no prefix on the ring (the book prints none for a carbon group on the N, (1),:30020), so they are claimed only as the principal group (claims_benzene_group()).
- orthonym.rules.hydroximic_acids.ACID_SUFFIX_FGS = (('hydroximic_acid', 'carboximidic acid'), ('hydroximic_thioic_acid', 'carboximidothioic acid'), ('hydroximic_selenoic_acid', 'carboximidoselenoic acid'), ('hydroximic_telluroic_acid', 'carboximidotelluroic acid'), ('n_substituted_imidic_O', 'carboximidic acid'), ('n_substituted_imidic_S', 'carboximidothioic acid'), ('n_substituted_imidic_Se', 'carboximidoselenoic acid'), ('n_substituted_imidic_Te', 'carboximidotelluroic acid'))#
(key, imidic suffix) in the order the groups are looked for, as
benzene_acid_suffixes.ACID_SUFFIX_FGS
- orthonym.rules.hydroximic_acids.DEMOTED_PREFIX = {'(E)-N-hydroxycarboximidic acid': '(E)-C,N-dihydroxycarbonimidoyl', '(Z)-N-hydroxycarboximidic acid': '(Z)-C,N-dihydroxycarbonimidoyl', 'N-hydroxycarboximidic acid': 'C,N-dihydroxycarbonimidoyl'}#
30138); the S, Se and Te analogues have no prefix and are claimed only as the suffix. The prefix of a configured group carries its descriptor at its front,:44639;
ring_acyl_prefixes).- Type:
(
- orthonym.rules.hydroximic_acids.acid_suffix_extra(key, mol, match)#
What the record of the group
keycarries beyond the plain acid record: its own suffix name (with the descriptor of its C=N where it is configured) and its N-substituent; nothing for the plain acids.
- orthonym.rules.hydroximic_acids.claims_benzene_group(key, mol)#
True when the benzene namer takes the group
keyit matched: every group but a hydroximic acid with an S, Se or Te acid group (no prefix form in the book: it is the suffix or it is not named here) and an N-substituted imidic acid (none either), that is not the principal group of the molecule.
- orthonym.rules.hydroximic_acids.UNHANDLED = <object object>#
what
name_imidic_on_benzenereturns for a ring the general suffix assembly names
- orthonym.rules.hydroximic_acids.name_imidic_on_benzene(chosen_suffix, suffix_groups, n_substituents_map, remaining_prefix_groups, locants, stereo_descriptors=None)#
The name of a benzene ring whose suffix is a single imidic acid, plain or N-hydroxy;
UNHANDLEDfor any other suffix and for several imidic acids (they fall through to the general assembler: ‘benzene-1,4-dicarboximidic acid’); None where the ring is not built.Suite fix j6 (TRIAGE g8 C23): (the Blue Book) ‘benzenecarboximidic acid (PIN)’ (bare, no locant); with other substituents the PIN cites ‘-1-’ on the group: ‘2-(propanimidoylselanyl)benzene-1- carboximidic acid (PIN)’ (:32013).
A hydroximic acid is the N-hydroxy derivative,:30096): ‘N-hydroxybenzenecarboximidic acid (PIN)’ (:30108), and with other ring prefixes the suffix keeps its locant, ‘N-hydroxy-4-methylbenzene-1- carboximidic acid’, as ‘4-methylbenzene-1-carboximidic acid’ does,:2869). Position 1 is the carbon of the group. The N-hydroxy and a ring ‘hydroxy’ are ONE multiplied prefix, (b) (‘N,2-dihydroxy- benzene-1-carboximidic acid’), and the whole set is alphanumerically ordered,:3440), as
_name_substituted_benzamidedoes for the italic N of an amide. The configuration of its C=N is the descriptor at the front of the name (‘(E)-N-hydroxybenzenecarboximidic acid’;with_n_group_fragments), in the one block with no other: ringstereo_descriptors(none, or not established) are not built beside it. One group only: two would need the N locants to carry the ring numbers of their groups (‘N1,N4-dihydroxy- benzene-1,4-dicarboximidic acid’,:30125), and so would a plain imidic acid or a hydroximic acid of another configuration beside it (one rank: a dicarboximidic acid with an N-hydroxy on one of its N, not an imidic acid with a ‘C,N-dihydroxycarbonimidoyl’ prefix). Every other group on the ring must be one the name cites as a prefix.
- orthonym.rules.hydroximic_acids.cn_configuration_verdict(input_smiles, opsin_smiles)#
"mismatch"when OPSIN’s reading of a name has not the configuration of the C=N of a hydroximic acid that the input has, else"ok".The mobile hydrogen of -C(=N-OH)-XH puts the group in one layer of the standard InChI, so the full key is the same for both configurations (‘C/C(O)=N/O’ and ‘C/C(O)=NO’ share an InChIKey) and no gate that compares keys sees a descriptor that is flipped, or one that is missing. The configurations are compared group by group, both ways: a name that states one the input does not carry, one that is not the input’s, or none where the input configures one,:44718: “In preferred IUPAC names, all stereogenic units must be specified, unless an omission is allowed according to “, which allows it for the double bonds of three- to seven-membered alicyclic rings only,:44637). The reading, not the string of the name, says what the name states. Cheap: nothing is parsed unless a SMILES configures a double bond.