orthonym.validation.key_blind_double_bonds#
Note
Internal API. Names and behaviour may change between releases.
Double-bond configurations the standard InChIKey cannot see: does a name’s OPSIN parse carry the input’s E/Z?
The standard InChI leaves out the configuration of some double bonds whose atoms take part in a mobile-hydrogen group (an amidine C=N, for example), so the two configurations share one key:
C/C(N)=N/C vs C/C(N)=NC ((Z)- and (E)-N’-methylethanimidamide)
and a name with the wrong descriptor passes every gate that accepts a name on full-key equality alone, as it would
pass with the wrong hydrogens of a hypervalent halogen (key_blind_hydrogens) or the wrong site of a hydron
(protonation_identity).
The rule asks only what the key cannot: when the input draws a configured double bond whose configuration its own
InChI leaves out, and the OPSIN parse is the same constitution drawn the same way (equal canonical SMILES without
stereo), the two canonical isomeric SMILES must be equal too. A parse drawn as another tautomer, or a molecule with
no such bond, is never rejected by it (‘n/a’), so a correct name is never lost to a drawing difference. A parse
that carries no configuration on those bonds is an omission (‘omission’), not another molecule: the name ships, labelled
below the PIN (namer._record_key_blind_omission,: a PIN cites each stereogenic unit); only the opposite
configuration (‘mismatch’) refuses it.
The C=N of a hydroximic acid has its own verdict, rules.hydroximic_acids.cn_configuration_verdict, which refuses an
omitted descriptor too: that producer builds PINs, and a PIN states every stereogenic unit,:44718). The two
verdicts stay apart because their answers to an omission differ.
- orthonym.validation.key_blind_double_bonds.key_blind_double_bond_verdict(smiles, opsin_smiles)#
‘mismatch’ when the input draws a configured double bond its InChI leaves out and the OPSIN parse, drawn as the same constitution, has another configuration; ‘omission’ when the parse leaves those configurations out; ‘match’ when it has the same; ‘n/a’ otherwise.
The test compares the whole canonical isomeric SMILES, not only the key-blind bonds. A caller that has already seen the two InChIKeys agree therefore refuses on any stereo difference the key cannot see; that refusal is right, but its label (‘double_bond_configuration_mismatch’) names the key-blind bond as the cause, which is the usual one, not the only one.