Skip to main content

rd.smiles()

Write a canonical, non-isomeric SMILES string.

Usage

Source

rd.smiles(mol)

Hydrogens are written as they appear in the molecule, so water with explicit hydrogens (e.g. from from_smiles) gives [H]O[H].

Parameters

mol: Mol
RDKit molecule.

Returns

str
SMILES string.