Output tiers#
Every name Orthonym returns carries a tier. The tier says how the name was built. The verified field of the provenance row says whether OPSIN read it back. Read the two together.
The five tiers#
pin_verifiedThe strict PIN path built the name and verified it: OPSIN read it back to your structure (for a PIN spelling OPSIN has no grammar for, a twin spelling of it:
verifiedopsin_twin; for a poly-anhydride name, the acids it cites:verifiedopsin_acids).is_pinistrueonly here. The recommendations give the label PIN only to names of compounds that contain carbon, so a compound without carbon (sodium chloride,sulfuric acid,ammonia) never has this tier: its name is a preselected name at most,systematic_verified.pin_unverifiedA name in PIN form that only a breadth producer built, so its preferred status is not certified. It is also the tier of a strict-path name that OPSIN read back only in part (its constitution) or not at all. The
verifiedfield tells which. Atbest-effortit is the tier of the name the PIN-only tier ships for a molecule that has no other name, when OPSIN cannot read the stereodescriptors of that name: the same name with the same label.systematic_verifiedA correct systematic name that is not the PIN: from the general engine (for example, a von Baeyer name for a fused ring system), from the table of retained trivial names, from the strict path when the name contains a part the engine records as not the preferred form (for example
(trimethylazaniumyl)acetate, whose PIN is(N,N-dimethylmethanaminiumyl)acetate), or from the strict path for a class the Blue Book gives no PIN, such as organometallic compounds of the Group 1-12 metals (ethenylsodium), compounds of aluminium, gallium, indium and thallium, compounds without carbon (sodium chloride) and the natural-product and metal-complex list names (lycopodane, heme;verifiedidentity). A name reached through another drawing of the same compound is here too, as are the zinc names of Metal compounds that carry no PIN label. A natural-product parent name from the exact-match list lands here (verifiedidentity), because the recommendations identify no preferred names for natural products. A natural-product name lands here too when the molecule’s preferred name is a bridged fused name the engine does not build yet (diamorphine,(9R,13S,14S)-3-methoxy-17-methylmorphinan). Where the engine builds that bridged fused name (morphine, codeine, oxycodone), it is the PIN and is returned instead of the natural-product name. Atbest-effortthecisortransname of a monocycle’s pair of stereocentres (trans-cyclohexane-1,4-diol) lands here too: it is a general name of the Blue Book, and the PIN of the same structure cites lowercaserands, which OPSIN cannot read.best_effortA name from the last-resort producers of the
best-efforttier, or a name whose own string no round trip confirmed.abstainNo name. The row gives the reason code instead (Declines).
The marks are the ones the web app uses. It shows the five tiers with four marks, because pin_unverified and systematic_verified share the FALLBACK mark, and it has a fifth state, Error, for input it cannot read. The shape carries the tier and the colour only agrees, so the marks stay distinct in greyscale: PIN FALLBACK BEST EFFORT NO NAME
Choosing a tier: --emit-tier#
The default is the best-effort tier. The strict PIN path is the first of its producers: when it built the name and OPSIN read it back, the name is the PIN (pin_verified); otherwise the tier gives a systematic name that is not the PIN, labelled with its own tier. --emit-tier pin gives the verified PIN or no name (the default of releases up to 1.0.x), and valid, complete and full-coverage are the steps between and beyond. Accuracy has the default and the PIN-only tier side by side. A run of orthonym without --emit-tier prints one note on the error stream when it returned a name below pin_verified, and --provenance shows the tier of each name.
$ orthonym "SMILES" # the default: the best-effort tier
$ orthonym "SMILES" --emit-tier pin # a verified PIN or no name
$ orthonym --batch molecules.smi --emit-tier valid
from orthonym import name_compound, Orthonym
name_compound("SMILES") # the default: the best-effort tier
name_compound("SMILES", emit_tier="pin") # a verified PIN or the empty string
namer = Orthonym(general_fallback=True, allow_aromatic_general=True, general_fallback_unverified=True)
namer.name("SMILES") # best-effort, for a loop
Orthonym() with no argument is the engine of the pin tier, as before. The default is the best-effort tier for --style pin when OPSIN reads the names back; with another style, or with no OPSIN (the reduced mode of a host without Java), the default is the pin tier.
|
What it gives |
|---|---|
(none), the default |
The |
|
A name only when the pipeline can build the preferred IUPAC name (PIN), that is when the strict PIN path built the name and verified it ( |
|
Names from the general engine, each with an atom-coverage certificate and a full-InChIKey round trip. |
|
General names for aromatic and heterocyclic ring systems as well. |
|
The last-resort producers as well, and von Baeyer and spiro names for ring systems of up to 100 skeletal atoms and 15 rings (the other tiers build these names for ring systems of up to 40 skeletal atoms and 8 rings; a structure that no other producer names, with one ring system of up to 200 skeletal atoms and 30 rings that is not a union of parts, is tried once more at those ceilings), and adducts with a one-atom ion such as chloride. OPSIN reads no lowercase |
|
The coordination-name builder for metal tetrapyrrole and corrin complexes as well; it builds a name or declines. |
The wider tiers are not simply “the PIN-only tier plus more”. They also return the names the PIN-only tier declines, each labelled with its tier. At valid, complete and best-effort every name must pass a full-InChIKey round trip, except a name from the natural-product and metal-complex lists (verified identity), a twin-checked name for which the engine has no other spelling (a halogen -uide anion, the anion of a thioperoxol, an organometallic name with halido ligands; verified opsin_twin), a name with a count word above 50, which no OPSIN reads and the reconstructor reads from the text of the name (verified reconstructor, tier systematic_verified), at best-effort an inositol name (myo-inositol), which OPSIN cannot read and which ships only when the engine’s recogniser gives exactly that name for your structure by its InChIKey (gate_outcome carveout:inositol, tier best_effort), and, at best-effort, the name of a molecule that has no other name when the PIN-only tier ships it because OPSIN cannot read its stereodescriptors (gate_outcome self_consistency_constitution_only, the label of the PIN-only tier) or, failing that, such a name of another producer whose constitution OPSIN reads back and whose every descriptor two CIP labellers confirm (tier best_effort), so the other name formats absent from OPSIN’s grammar, which the PIN-only tier ships without a full read-back, are declined there (How every name is checked). A PIN spelling that the PIN-only tier ships through its twin gets a name OPSIN reads there (1,4-dihydro-1,4-epithionaphthalene, ethan-1-(2H1)ol, (hydroxysulfanyl)methane for methane-SO-thioperoxol), with the label of that name.
The recommendations identify no preferred names for the compounds of their chapter on natural products and related compounds: carbohydrates (D-glucose, β-D-glucopyranosyloxy), amino acids (L-alanine), cyclitols (myo-inositol), nucleosides and nucleotides (adenosine). A name that cites one of these semisystematic names is labelled below the PIN: the PIN-only tier declines it with NO_VERIFIED_PIN, and the other tiers return it as systematic_verified (an inositol as best_effort) with the natural-products rule in spelling_failures. The names of the natural-product parents (steroids, alkaloids, terpenes, cholestane, tropane, abietane, porphyrin) are names of that chapter too: the molecule is named by its systematic name first ((3S,5S,8R,9S,10S,13R,14S,17R)-10,13-dimethyl-17-[(2R)-6-methylheptan-2-yl]hexadecahydro-1H-cyclopenta[a]phenanthren-3-ol, not 5α-cholestan-3β-ol), and the natural-product name is returned, labelled below the PIN, only where no systematic name is built, never at the PIN-only tier: an exact-match list parent name (lycopodane, ibogamine) is declined there, and its label is described in How every name is checked. At best-effort, a natural-product name whose stereodescriptors OPSIN cannot read and that has no other name ((1R,3s,5S)-tropan-3-ol) is returned as best_effort, its constitution read back and its descriptors checked. A free amino acid, its anion or its ester is named by its systematic substitutive name first ((2S)-2-aminopropanoic acid, aminoacetate, methyl (2S)-2-aminopropanoate), which is the PIN; the retained name is returned only where no such name is built (a peptide, a salt, L-cystine).
Metal compounds#
A standard InChIKey does not record the bonds between a metal and its ligands, so one compound drawn in two ways has one key. Orthonym names a metal compound through another drawing of it when the keys are equal and a separate count of atoms and charges agrees (How every name is checked). That name describes the other drawing, so it is systematic_verified, never pin_verified, and the PIN-only tier declines it.
Zinc is admitted to every mechanism that names a metal compound. Other metals are admitted one at a time. The table shows zinc, drawn in several ways, at three tiers:
Zinc drawn as |
Name |
|
|
|
|---|---|---|---|---|
a zinc ion and two chloride ions |
|
declined |
|
|
two zinc-chlorine bonds |
|
declined |
|
|
a zinc ion and two acetate ions |
|
|
|
|
two acetates joined to zinc by dative bonds |
|
declined |
|
|
a zinc-carbon bond, two ethyl groups |
|
declined |
|
|
a zinc ion and two ethanide ions |
|
declined |
|
|
the atom, an ion, an isotope |
|
declined |
|
|
a zinc ion and four ammonia molecules |
|
declined |
no name |
|
a zinc ion and the tetraphenylporphyrin dianion |
|
declined |
|
|
At valid the engine gives no name for the adducts of zinc (the ammine of the table, the aqua ion, a complex with a neutral ligand such as pyridine, a zincate anion drawn alone, a porphyrin drawn beside a zinc ion), for a phthalocyanine complex, or for an organozinc compound with a halogen or an ester on its organyl group ((3-ethoxy-3-oxopropyl)zinc chloride). best-effort names them.
A zinc salt drawn as ions is pin_verified at the PIN-only tier when the strict PIN path builds its name and the name carries a PIN label: salts of acids, alcohols and thiols. A carbon-free salt (zinc dichloride) carries none: the recommendations give the label PIN only to names of compounds that contain carbon, and the name of a compound without carbon is a preselected name at most. The names of organozinc compounds, of drawings with bonds to zinc, of the atom and its ions, of carbanion salts, of ammines and of complexes carry no PIN label, so the PIN-only tier declines them.
A compound of a metal that is not admitted is named where the general producers can name it (copper diacetate, pin_verified; copper(II) sulfate, which has no carbon, systematic_verified, declined at the PIN-only tier) and is otherwise declined, usually with UNSUPPORTED_ELEMENT (Declines).
One molecule, three tiers#
cis-Decalin shows all of this at once. The PIN-only tier gives a name in preferred-name form that OPSIN read back with the right constitution only:
$ orthonym "C1CC[C@H]2CCCC[C@H]2C1" --emit-tier pin --provenance
{"name": "(4as,8as)-decahydronaphthalene", "tier": "pin_unverified", "is_pin": false, "source": "pin_path", "opsin": "verified_constitution_only", "gates_passed": ["self_consistency_constitution_only"], "gate_outcome": "self_consistency_constitution_only", "formula": null, "limit_code": null, "stereo_unexpressed": false, "suffix_free_prefix_name": false, "prefix_order_fallback": false, "verified": "opsin_constitution", "spelling_failures": [], "producer": "inner:tier_a_ring"}
At valid that name does not pass the full round trip, and no general-engine name does either, so the engine declines:
$ orthonym "C1CC[C@H]2CCCC[C@H]2C1" --emit-tier valid
C1CC[C@H]2CCCC[C@H]2C1 UNNAMEABLE: unknown organic compound
The first line is the empty name, the second the reason on the error stream (see Declines).
At best-effort a last-resort producer builds a name that OPSIN reads back to the same molecule, stereochemistry included:
$ orthonym "C1CC[C@H]2CCCC[C@H]2C1" --emit-tier best-effort --provenance
{"name": "cis-decahydronaphthalene", "tier": "best_effort", "is_pin": false, "source": "t4_floor", "opsin": "verified", "gates_passed": ["full_key_round_trip"], "gate_outcome": "full_key_round_trip_verified", "formula": null, "limit_code": null, "stereo_unexpressed": false, "suffix_free_prefix_name": false, "prefix_order_fallback": false, "verified": "opsin", "spelling_failures": [], "producer": "engine:t4"}
The producer shows the change: inner:tier_a_ring built the default-tier name, and the last-resort namer (engine:t4) built the best-effort one.
At a tier other than pin, the provenance row of a decline has "name": null, and --on-failure label prints (no name — CODE) on the command line.
In Python#
The tiers are keyword switches of Orthonym; the table is on the Python page.