smiles()
Generate the canonical SMILES string of a geometry with RDKit.
Usage
smiles(geo)Stereochemistry perceived from the 3D coordinates is included, and hydrogens are implicit.
Parameters
geo: Geometry- Geometry.
Returns
str- SMILES string.
Raises
NotImplementedError-
If the geometry contains a metal.
GeometryConversionError- If no Lewis structure is consistent with the connectivity, charge, and spin.
Examples
>>> import autogeom
>>> geo = autogeom.from_smiles("C(O)C")
>>> autogeom.smiles(geo)'CCO'