orthonym.assembly.ester_prefix_probe#

Note

Internal API. Names and behaviour may change between releases.

The probe name of the decomposition engine, read the way the PIN tier reads it for an ester molecule.

“All preferred IUPAC names for esters are named by functional class nomenclature”. The decomposition engine

splits a molecule only when the name the pipeline gives it without the split (namer.name_pipeline_only) is poor. The ring cascade of a wider tier names an ester molecule with the ester as a prefix (acyloxy, alkoxycarbonyl: ‘2-methyl-3-methylidene-2-{4-methyl-5-[(phenylacetyl)oxy]pent-3-en-1-yl}bicyclo[2.2.1]heptane’), a valid name that the PIN tier declines, so at the PIN tier the probe gives no name and the ester is split (‘2-methyl-5-(2-methyl-3- methylidenebicyclo[2.2.1]heptan-2-yl)pent-2-en-1-yl phenylacetate’).:func:probe_name is the probe of a wider tier read the same way: such a name is no name for the split’s decision, and it stays the molecule’s name when the split names nothing (the pipeline then names the molecule as before).

The name of a wider tier is no name, for an ester molecule, also when OPSIN reads it as another molecule (names_another_molecule()): the decomposition engine would otherwise take the name for a good one and leave the ester to the producers that cite it in a prefix. The engine asks only for a name its quality gate accepted, so that a name it rejects anyway costs no OPSIN read.

The cascade records the name (record_principal_ester_prefix()) while the probe watches; the record is kept in the memo scope beside the probe’s memoized name, so a probe served from the cache reads it too.

orthonym.assembly.ester_prefix_probe.record_principal_ester_prefix(pin_tier=False)#

The ring cascade named the molecule with its principal ester cited as a prefix (see the module docstring). The probe’s name is no name at a wider tier; with pin_tier it is none at the PIN tier either (the cascade’s name of a polycyclic parent: the PIN tier has no other way to the functional class name of the ester).

orthonym.assembly.ester_prefix_probe.probe_watched()#

Whether a probe of:func:probe_name runs.

orthonym.assembly.ester_prefix_probe.probe_name(smiles, style)#

namer.name_pipeline_only(smiles, style), or '' at a wider tier for a name that cites the molecule’s principal ester as a prefix (at the PIN tier too for the name of a polycyclic parent, record_principal_ester_prefix).

orthonym.assembly.ester_prefix_probe.names_another_molecule(name, mol)#

True at a wider tier when mol holds an ester and OPSIN reads name as a structure whose constitution is not that of mol: the pipeline’s name drops or invents atoms (‘ethyl 4-(cyclohexyloxy)butanoate’ for ethyl cyclohexyl butanedioate, an ether). The engine keeps the pipeline’s name only when it is good enough, and a name of another molecule is no name of this one: the split is made, and the ester is named by functional class , not cited as a prefix of a name that no longer holds it. Scoped to esters, the class this module reads

SENIORITY ORDER FOR CLASSES, Table 4.1: class 9 esters rank above class 11 amides, class 17 hydroxy compounds

and class 19 amines, so the name that holds the ester only in a prefix is a name of a lower class); a carbamate is an ester of carbamic acid, named by its own route, the Blue Book), and is not counted.

Three answers are possible of OPSIN (decomposition.engine.name_constitution_verdict); only “another molecule” rejects the name. A name OPSIN cannot judge (no JVM, the name not read, the coverage oracle off) stays, as in the engine’s own contract: the oracle there only ever rescues a name, it is not a reason to lose one.