Skip to main content

from_inchi()

Embed a geometry for an InChI string with RDKit.

Usage

Source

from_inchi(inchi)

Coordinates are embedded with a fixed random seed, so they are reproducible.

Parameters

inchi: str
InChI string.

Returns

Geometry
The embedded geometry.

Raises

ValueError
If the InChI string is invalid.

Examples

    >>> import autogeom
    >>> geo = autogeom.from_inchi("InChI=1S/H2O/h1H2")
    >>> geo.symbols
['O', 'H', 'H']

See Also

inchi()
from_smiles()