conformers
Conformer generation methods.
This module provides tools for generating multiple conformations of molecular structures to explore conformational space and identify low-energy structures.
Examples:
>>> from jfchemistry.conformers import CRESTConformers
>>> from pymatgen.core import Molecule
>>>
>>> # Generate conformers using CREST
>>> conformer_gen = CRESTConformers(
... runtype="imtd-gc",
... ewin=6.0, # Energy window [kcal/mol]
... calculation_energy_method="gfnff",
... calculation_dynamics_method="gfnff"
... )
>>> # Generate conformers
>>> job = conformer_gen.make(molecule)
>>> conformers = job.output["structure"]
CRESTConformers
dataclass
Bases: ConformerGeneration, PymatGenMaker[InputType, OutputType]
flowchart TD
jfchemistry.conformers.CRESTConformers[CRESTConformers]
jfchemistry.conformers.base.ConformerGeneration[ConformerGeneration]
jfchemistry.core.makers.pymatgen_maker.PymatGenMaker[PymatGenMaker]
jfchemistry.core.makers.jfchem_maker.JFChemMaker[JFChemMaker]
jfchemistry.core.makers.core_maker.CoreMaker[CoreMaker]
jfchemistry.conformers.base.ConformerGeneration --> jfchemistry.conformers.CRESTConformers
jfchemistry.core.makers.pymatgen_maker.PymatGenMaker --> jfchemistry.conformers.CRESTConformers
jfchemistry.core.makers.jfchem_maker.JFChemMaker --> jfchemistry.core.makers.pymatgen_maker.PymatGenMaker
jfchemistry.core.makers.core_maker.CoreMaker --> jfchemistry.core.makers.jfchem_maker.JFChemMaker
click jfchemistry.conformers.CRESTConformers href "" "jfchemistry.conformers.CRESTConformers"
click jfchemistry.conformers.base.ConformerGeneration href "" "jfchemistry.conformers.base.ConformerGeneration"
click jfchemistry.core.makers.pymatgen_maker.PymatGenMaker href "" "jfchemistry.core.makers.pymatgen_maker.PymatGenMaker"
click jfchemistry.core.makers.jfchem_maker.JFChemMaker href "" "jfchemistry.core.makers.jfchem_maker.JFChemMaker"
click jfchemistry.core.makers.core_maker.CoreMaker href "" "jfchemistry.core.makers.core_maker.CoreMaker"
CREST conformer generation using metadynamics sampling.
CREST (Conformer-Rotamer Ensemble Sampling Tool) performs automated conformational and rotameric searches using metadynamics simulations with GFN-xTB tight-binding methods. It efficiently explores conformational space to identify unique low-energy conformers.
The implementation supports various metadynamics protocols and provides extensive control over optimization settings, energy calculations, and conformer filtering.
Units
Pass a float in the listed unit or a pint Quantity (e.g. jfchemistry.ureg
or jfchemistry.Q_):
- ewin: [kcal/mol]
- ethr: [kcal/mol]
- rthr: [Å]
- bthr: [dimensionless]
| ATTRIBUTE | DESCRIPTION |
|---|---|
name |
Name of the job (default: "CREST Conformer Generation").
TYPE:
|
runtype |
Metadynamics protocol to use: - "imtd-gc": Iterative metadynamics with genetic crossing (default) - "nci-mtd": Non-covalent interaction metadynamics - "imtd-smtd": Iterative metadynamics with static metadynamics
TYPE:
|
preopt |
Pre-optimize structure before conformer search (default: True).
TYPE:
|
multilevelopt |
Use multi-level optimization (default: True).
TYPE:
|
topo |
Enable topology-based filtering (default: True).
TYPE:
|
parallel |
Number of parallel threads (default: 1).
TYPE:
|
opt_engine |
Optimization algorithm: - "ancopt": Approximate normal coordinate optimizer (default) - "rfo": Rational function optimizer
TYPE:
|
hess_update |
Hessian update method: - "bfgs": BFGS update (default) - "powell": Powell update - "sd1": Steepest descent - "bofill": Bofill update - "schlegel": Schlegel update
TYPE:
|
maxcycle |
Maximum optimization cycles (default: None, auto).
TYPE:
|
optlev |
Optimization convergence level: - "crude", "vloose", "loose", "normal" (default), "tight", "vtight", "extreme"
TYPE:
|
converge_e |
Energy convergence threshold (default: None, auto).
TYPE:
|
converge_g |
Gradient convergence threshold (default: None, auto).
TYPE:
|
freeze |
Freeze constraints string (default: None).
TYPE:
|
ewin |
Energy window for conformer selection [kcal/mol] (default: 6.0).
TYPE:
|
ethr |
Energy threshold for duplicate detection [kcal/mol] (default: 0.05).
TYPE:
|
rthr |
RMSD threshold for structural similarity [Å] (default: 0.125).
TYPE:
|
bthr |
Rotational constant threshold for duplicate detection [dimensionless] (default: 0.01).
TYPE:
|
calculation_energy_method |
Method for energy calculations: - "gfn2" (default), "gfn1", "gfn0", "gfnff"
TYPE:
|
calculation_energy_calcspace |
Calculation space setting (default: None).
TYPE:
|
calculation_energy_chrg |
Charge for energy calculations (default: None, from structure).
TYPE:
|
calculation_energy_uhf |
Unpaired electrons for energy calc (default: None).
TYPE:
|
calculation_energy_rdwbo |
Read Wiberg bond orders (default: False).
TYPE:
|
calculation_energy_rddip |
Read dipole moments (default: False).
TYPE:
|
calculation_energy_dipgrad |
Compute dipole gradients (default: False).
TYPE:
|
calculation_energy_gradfile |
External gradient file (default: None).
TYPE:
|
calculation_energy_gradtype |
Gradient file type (default: None).
TYPE:
|
calculation_dynamics_method |
Method for metadynamics: - "gfn2" (default), "gfn1", "gfn0", "gfnff"
TYPE:
|
calculation_dynamics_calcspace |
Calculation space for dynamics (default: None).
TYPE:
|
calculation_dynamics_chrg |
Charge for dynamics (default: None, from structure).
TYPE:
|
calculation_dynamics_uhf |
Unpaired electrons for dynamics (default: None).
TYPE:
|
calculation_dynamics_rdwbo |
Read Wiberg bond orders in dynamics (default: False).
TYPE:
|
calculation_dynamics_rddip |
Read dipole in dynamics (default: False).
TYPE:
|
calculation_dynamics_dipgrad |
Compute dipole gradients in dynamics (default: False).
TYPE:
|
calculation_dynamics_gradfile |
External gradient file for dynamics (default: None).
TYPE:
|
calculation_dynamics_gradtype |
Gradient file type for dynamics (default: None).
TYPE:
|
dynamics_dump_frequency |
Dynamics trajectory dump frequency (default: 100.0).
TYPE:
|
References
- CREST Documentation: https://crest-lab.github.io/crest-docs/
- Pracht et al., PCCP 2020, 22, 7169-7192
Examples:
>>> from pymatgen.core import Molecule
>>> from ase.build import molecule
>>> from jfchemistry.conformers import CRESTConformers
>>> mol = Molecule.from_ase_atoms(molecule("C2H6"))
>>> mol = mol.set_charge_and_spin(0, 1)
>>> # Basic conformer search
>>> conf_gen = CRESTConformers(
... ewin=6.0,
... calculation_energy_method="gfnff",
... calculation_dynamics_method="gfnff"
... )
>>> structures, properties = conf_gen.operation(mol)
Source code in jfchemistry/conformers/crest.py
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 | |
make
make(input: InputType | list[InputType], **kwargs) -> Response[_output_model]
Create a workflow job for processing structure(s).
Automatically handles job distribution for lists of structures. Each structure in a list is processed as a separate job for parallel execution.
| PARAMETER | DESCRIPTION |
|---|---|
input
|
Single Pymatgen SiteCollection or list of SiteCollections.
TYPE:
|
**kwargs
|
Additional kwargs to pass to the operation.
DEFAULT:
|
| RETURNS | DESCRIPTION |
|---|---|
Response[_output_model]
|
Response containing: - structure: Processed structure(s) - files: XYZ format file(s) of the structure(s) - properties: Computed properties from the operation |
Examples:
>>> from jfchemistry.conformers import CRESTConformers
>>> from pymatgen.core import Molecule
>>> molecule = Molecule.from_ase_atoms(molecule("C2H6"))
>>> # Generate conformers
>>> conformer_gen = CRESTConformers(ewin=6.0)
>>> job = conformer_gen.make(input)
Source code in jfchemistry/core/makers/jfchem_maker.py
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |
GOATConformers
dataclass
Bases: ORCACalculator, ConformerGeneration
flowchart TD
jfchemistry.conformers.GOATConformers[GOATConformers]
jfchemistry.calculators.orca.orca_calculator.ORCACalculator[ORCACalculator]
jfchemistry.calculators.base.WavefunctionCalculator[WavefunctionCalculator]
jfchemistry.calculators.base.Calculator[Calculator]
jfchemistry.conformers.base.ConformerGeneration[ConformerGeneration]
jfchemistry.calculators.orca.orca_calculator.ORCACalculator --> jfchemistry.conformers.GOATConformers
jfchemistry.calculators.base.WavefunctionCalculator --> jfchemistry.calculators.orca.orca_calculator.ORCACalculator
jfchemistry.calculators.base.Calculator --> jfchemistry.calculators.base.WavefunctionCalculator
jfchemistry.conformers.base.ConformerGeneration --> jfchemistry.conformers.GOATConformers
click jfchemistry.conformers.GOATConformers href "" "jfchemistry.conformers.GOATConformers"
click jfchemistry.calculators.orca.orca_calculator.ORCACalculator href "" "jfchemistry.calculators.orca.orca_calculator.ORCACalculator"
click jfchemistry.calculators.base.WavefunctionCalculator href "" "jfchemistry.calculators.base.WavefunctionCalculator"
click jfchemistry.calculators.base.Calculator href "" "jfchemistry.calculators.base.Calculator"
click jfchemistry.conformers.base.ConformerGeneration href "" "jfchemistry.conformers.base.ConformerGeneration"
Generate conformers using GOAT.
Source code in jfchemistry/conformers/goat.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | |
MMMCConformers
dataclass
Bases: ConformerGeneration, PymatGenMaker[InputType, OutputType]
flowchart TD
jfchemistry.conformers.MMMCConformers[MMMCConformers]
jfchemistry.conformers.base.ConformerGeneration[ConformerGeneration]
jfchemistry.core.makers.pymatgen_maker.PymatGenMaker[PymatGenMaker]
jfchemistry.core.makers.jfchem_maker.JFChemMaker[JFChemMaker]
jfchemistry.core.makers.core_maker.CoreMaker[CoreMaker]
jfchemistry.conformers.base.ConformerGeneration --> jfchemistry.conformers.MMMCConformers
jfchemistry.core.makers.pymatgen_maker.PymatGenMaker --> jfchemistry.conformers.MMMCConformers
jfchemistry.core.makers.jfchem_maker.JFChemMaker --> jfchemistry.core.makers.pymatgen_maker.PymatGenMaker
jfchemistry.core.makers.core_maker.CoreMaker --> jfchemistry.core.makers.jfchem_maker.JFChemMaker
click jfchemistry.conformers.MMMCConformers href "" "jfchemistry.conformers.MMMCConformers"
click jfchemistry.conformers.base.ConformerGeneration href "" "jfchemistry.conformers.base.ConformerGeneration"
click jfchemistry.core.makers.pymatgen_maker.PymatGenMaker href "" "jfchemistry.core.makers.pymatgen_maker.PymatGenMaker"
click jfchemistry.core.makers.jfchem_maker.JFChemMaker href "" "jfchemistry.core.makers.jfchem_maker.JFChemMaker"
click jfchemistry.core.makers.core_maker.CoreMaker href "" "jfchemistry.core.makers.core_maker.CoreMaker"
Generate conformers with the multiple minimum monte carlo method.
Units
Pass a float in the listed unit or a pint Quantity (e.g. jfchemistry.ureg
or jfchemistry.Q_):
- energy_window: [kcal/mol]
- angle_step: [degrees]
- rmsd_threshold: [Å]
Source code in jfchemistry/conformers/mmmc.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 | |
make
make(input: InputType | list[InputType], **kwargs) -> Response[_output_model]
Create a workflow job for processing structure(s).
Automatically handles job distribution for lists of structures. Each structure in a list is processed as a separate job for parallel execution.
| PARAMETER | DESCRIPTION |
|---|---|
input
|
Single Pymatgen SiteCollection or list of SiteCollections.
TYPE:
|
**kwargs
|
Additional kwargs to pass to the operation.
DEFAULT:
|
| RETURNS | DESCRIPTION |
|---|---|
Response[_output_model]
|
Response containing: - structure: Processed structure(s) - files: XYZ format file(s) of the structure(s) - properties: Computed properties from the operation |
Examples:
>>> from jfchemistry.conformers import CRESTConformers
>>> from pymatgen.core import Molecule
>>> molecule = Molecule.from_ase_atoms(molecule("C2H6"))
>>> # Generate conformers
>>> conformer_gen = CRESTConformers(ewin=6.0)
>>> job = conformer_gen.make(input)
Source code in jfchemistry/core/makers/jfchem_maker.py
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |