Source code for icolos.core.step_utils.rdkit_utils
from rdkit import Chem
[docs]def to_smiles(mol, isomericSmiles=False):
"""
Converts a Mol object into a canonical SMILES string.
:param mol: Mol object.
:return: A SMILES string.
"""
return Chem.MolToSmiles(mol, isomericSmiles=isomericSmiles)