rd.from_smiles()
Parse a SMILES string.
Usage
rd.from_smiles(
smi,
*,
with_coords=False,
)Parameters
smi: str-
SMILES string.
with_coords: bool = False-
If
True, embed 3D coordinates.
Returns
Mol- RDKit molecule with explicit hydrogens.
Raises
ValueError- If the SMILES string cannot be parsed.