vibesketch.naming¶
Names for drawn species, through vibe-qc’s naming engine when it is there.
vibeqc_naming is optional: it ships inside vibe-qc today (vibe-qc #536),
so naming hides behind an install hint when it cannot be imported.
The engine’s names are checked before they are shown (vibe-qc #539 lists high-confidence wrong names). A name is mapped back to a structure and compared with the drawing by the connectivity block of the InChIKey, in two ways, because each of the engine’s back-mappings has faults of its own:
the engine’s 3D structure for the name (
structure_from_name), with bonds perceived by RDKit (rdDetermineBonds.DetermineBonds, RDKit’s implementation of xyz2mol: Kim and Kim, Bull. Korean Chem. Soc. 2015, 36, 1769);the engine’s SMILES for the name (
smiles_from_name), which mangles carbonyl groups (vibe-qc #539).
The outcome:
verified: either mapping gives the drawn constitution;
rejected: the 3D structure gives a different, valid molecule, so the name describes something else and is not shown;
unverified: no mapping could check it (only a SMILES mismatch, or none at all), so it is shown as a suggestion with that caveat;
not-applicable: an ion or a radical, which the engine cannot name yet (it takes no charge or spin);
unavailable or failed: no engine, or no 3D structure to give it.
Names carry no stereodescriptors until the engine accepts them (vibe-qc #537); a verified name for a stereo-defined species says so in its note.
Functions
|
The checked name of the species with this SMILES, charge and multiplicity. |
|
The SMILES the engine knows for |
Classes
|
Exceptions
|
- class vibesketch.naming.NameResult(status: 'Status', value: 'str | None' = None, source: 'str | None' = None, confidence: 'str | None' = None, note: 'str | None' = None)¶
Bases:
object- Parameters:
Bases:
RuntimeErrorvibeqc_namingcannot be imported.- Return type:
None
- vibesketch.naming.name_for(smiles, charge=0, multiplicity=1)¶
The checked name of the species with this SMILES, charge and multiplicity.
- Parameters:
- Return type:
- vibesketch.naming.smiles_for_name(name)¶
The SMILES the engine knows for
name, orNone; raisesNamingUnavailable.