icolos.utils package#

Subpackages#

Submodules#

icolos.utils.constants module#

icolos.utils.smiles module#

icolos.utils.smiles.convert_to_rdkit_smiles(smiles)[source]#
icolos.utils.smiles.randomize_smiles(smiles, random_type='restricted')[source]#

Returns a random SMILES given a SMILES of a molecule. :param random_type: The type (unrestricted, restricted) of randomization performed. :return : A random SMILES string of the same molecule or None if the molecule is invalid.

icolos.utils.smiles.to_mol(smi)[source]#

Creates a Mol object from a SMILES string. :param smi: SMILES string. :return: A Mol object or None if it’s not valid.

icolos.utils.smiles.to_smiles(mol)[source]#

Converts a Mol object into a canonical SMILES string. :param mol: Mol object. :return: A SMILES string.

Module contents#