descent.utils.molecule
Functions
|
Add atom mapping to a SMILES string. |
|
Convert a molecule to a SMILES string with atom mapping. |
|
Remove atom mapping from a SMILES string. |
- descent.utils.molecule.mol_to_smiles(mol: Chem.Mol, canonical: bool = True) str[source]
Convert a molecule to a SMILES string with atom mapping.
- Args:
mol: The molecule to convert. canonical: Whether to canonicalize the atom ordering prior to assigning
map indices.
- Returns:
The SMILES string.