inchi()
Generate the standard InChI string of a geometry with RDKit.
Usage
inchi(
geo,
*,
stereo=True,
)Parameters
geo: Geometry-
Geometry.
stereo: bool = True- Whether to include the stereo layers.
Returns
str- InChI string.
Raises
NotImplementedError-
If the geometry contains a metal.
GeometryConversionError-
If no Lewis structure is consistent with the connectivity, charge, and spin.
ValueError- If RDKit fails to generate an InChI.
Examples
>>> import autogeom
>>> geo = autogeom.from_smiles("O")
>>> autogeom.inchi(geo)'InChI=1S/H2O/h1H2'