orthonym.rules.systematic_offer#

Note

Internal API. Names and behaviour may change between releases.

The systematic name of the caller’s whole molecule, offered before a Chapter name.

INTRODUCTION (the Blue Book): “When the full structure is known, a ‘systematic name’ may be generated in

accordance with Rules described in Chapters through… Preferred IUPAC names (PINs) are not identified for the compounds in this Chapter.” A producer of a Chapter name (a retained amino-acid name, a natural-product name) asks:func:systematic_pin_offer first: the molecule is named once more by a default-tier engine with that producer’s names left out (its context variable set), under the default tier’s context (assembly.default_tier_scope: a best-effort caller’s breadth is off, so both tiers are offered the same name). The name is returned only when it reads as a PIN (the checks in:func:_reads_as_pin) and OPSIN reads it back to the full InChIKey of the molecule. Else None, and the producer keeps its own name, labelled below the PIN by the spelling check (validation/spelling/checks_natural_products.py).

orthonym.rules.systematic_offer.systematic_pin_offer(mol, off, key, *, stereo_unread_ok=False)#

The systematic PIN of mol named with off set, or None: only for the caller’s whole molecule (outermost_name_input; a peptide residue or a salt component keeps the name its producer asks for), not while off is set, memoised per molecule under key. stereo_unread_ok: also a name the nested naming labels pin_unverified because OPSIN reads its constitution but not its stereodescriptors (‘(1R,3r,5S)-8-methyl-8- azabicyclo[3.2.1]octan-3-yl…’), the name the PIN tier ships for such a molecule; the producer’s own name had that licence as a PIN, and has none since it is not one.