chemprop.utils.utils
#
Module Contents#
Classes#
Enum where members are also (and must be) strings |
Functions#
|
build an RDKit molecule from a SMILES string. |
|
Make a pretty string from an input shape |
- class chemprop.utils.utils.EnumMapping[source]#
Bases:
enum.StrEnum
Enum where members are also (and must be) strings
- classmethod get(name)[source]#
- Parameters:
name (str | EnumMapping)
- Return type:
- chemprop.utils.utils.make_mol(smi, keep_h, add_h)[source]#
build an RDKit molecule from a SMILES string.
- Parameters:
smi (str) – a SMILES string.
keep_h (bool) – whether to keep hydrogens in the input smiles. This does not add hydrogens, it only keeps them if they are specified
add_h (bool) – whether to add hydrogens to the molecule
- Returns:
the RDKit molecule.
- Return type:
Chem.Mol