Révision 695dcff8 modules/isolated.py
b/modules/isolated.py | ||
---|---|---|
55 | 55 |
are required to be local minima, ie. setting the 'local_min' value to |
56 | 56 |
True, a geometry optimisation using UFF is performed. |
57 | 57 |
""" |
58 |
logger.debug('Generating Conformers') |
|
58 |
logger.debug('Generating Conformers.')
|
|
59 | 59 |
|
60 | 60 |
mol = Chem.AddHs(mol) |
61 | 61 |
Chem.EmbedMultipleConfs(mol, numConfs=num_confs, numThreads=0) |
62 | 62 |
Chem.AlignMolConformers(mol) |
63 |
logger.info(f'Generated {len(mol.GetConformers())} conformers') |
|
63 |
logger.info(f'Generated {len(mol.GetConformers())} conformers.')
|
|
64 | 64 |
return mol |
65 | 65 |
|
66 | 66 |
|
... | ... | |
114 | 114 |
if mol.GetNumConformers() < init_num_confs: |
115 | 115 |
logger.warning(f'MMFF Geometry optimization did not comverge for at' |
116 | 116 |
f'least one conformer. Continuing with ' |
117 |
f'{mol.GetNumConformers()} converged conformers') |
|
117 |
f'{mol.GetNumConformers()} converged conformers.')
|
|
118 | 118 |
logger.info(f'Pre-optimized conformers with MMFF.') |
119 | 119 |
return mol, np.array([res[1] for res in results if res[0] == 0]) |
120 | 120 |
else: |
... | ... | |
133 | 133 |
from modules.clustering import clustering, get_rmsd |
134 | 134 |
from modules.calculation import run_calc |
135 | 135 |
|
136 |
logger.info('Carrying out procedures for the isolated molecule') |
|
136 |
logger.info('Carrying out procedures for the isolated molecule.')
|
|
137 | 137 |
rd_mol = adapt_format('rdkit', inp_vars['molec_file']) |
138 | 138 |
confs = gen_confs(rd_mol, inp_vars['num_conformers']) |
139 | 139 |
if inp_vars['min_confs']: |
Formats disponibles : Unified diff