Skip to main content

rd.from_inchi()

Parse an InChI string.

Usage

Source

rd.from_inchi(
    inchi,
    *,
    with_coords=False,
)

Parameters

inchi: str

InChI string.

with_coords: bool = False
If True, embed 3D coordinates.

Returns

Mol
RDKit molecule with explicit hydrogens.

Raises

ValueError
If the InChI string cannot be parsed.