gflownet.utils.molecule.conformer_base
Attributes
Classes
Functions
|
|
|
|
Module Contents
- gflownet.utils.molecule.conformer_base.get_torsion_angles_values(conf, torsion_angles_atoms_list)[source]
- class gflownet.utils.molecule.conformer_base.ConformerBase(atom_positions, smiles, freely_rotatable_tas=None)[source]
- Parameters:
atom_positions – numpy.ndarray of shape [num_atoms, 3] of dtype float64
- get_mol_from_smiles(smiles)[source]
Create RDKit molecule from SMILES string :param smiles: python string :returns: rdkit.Chem.rdchem.Mol object
- embed_mol_and_get_conformer(mol, extra_opt=False)[source]
Embed RDkit mol with a conformer and return the RDKit conformer object (which is synchronized with the RDKit molecule object) :param mol: rdkit.Chem.rdchem.Mol object defining the molecule :param extre_opt: bool, if True, an additional optimisation of the conformer will be performed
- set_atom_positions(atom_positions)[source]
Set atom positions of the self.rdk_conf to the input atom_positions values :param atom_positions: 2d numpy array of shape [num atoms, 3] with new atom positions
- get_atomic_numbers()[source]
Get atomic numbers of the atoms as 1d numpy array :returns: numpy array of atomic numbers of shape [num_atoms,]
- get_all_torsion_angles()[source]
- Returns:
a dict of all tostion angles in the molecule with their values