Class wandb.Molecule
W&B class for 3D Molecular data.
Args
data_or_path str | pathlib.Path | TextIO
Molecule can be initialized from a file name or an io object.
Caption associated with the molecule for display.
Methods
method Molecule.from_rdkit()
Convert RDKit-supported file/object types to wandb.Molecule.
Arguments
(string, rdkit.Chem.rdchem.Mol) Molecule can be initialized from a file name or an rdkit.Chem.rdchem.Mol object.
(string) Caption associated with the molecule for display.
convert_to_3d_and_optimize (bool) Convert to rdkit.Chem.rdchem.Mol with 3D coordinates. This is an expensive operation that may take a long time for complicated molecules.
method Molecule.from_smiles()
Convert SMILES string to wandb.Molecule.
Arguments
Caption associated with the molecule for display.
Check if the molecule is chemically reasonable by the RDKit’s definition.
convert_to_3d_and_optimize Convert to rdkit.Chem.rdchem.Mol with 3D coordinates. This is a computationally intensive operation that may take a long time for complicated molecules.