DihedralParametrizer GUI
WaNo and Settings

A note on the versions
This is the documentation for the latest v4-version of DHP, being released from 01/2023. It comprises a simplified algorithm that is overall a factor 3-5 faster that DHP3 (depending on the size of the molecule and the numbers of allocated cores) and the resulting forcefields have improved accuracy when benchmarked against DFT. We recommend to use this version. Usage is very similar to DHP3.
Input files and parameters: (DihedralParametrizer4 tab)
Molecule input:
- Molecule_pdb: Import PDB file of the molecule, either from your hard drive or from the Parametrizer WaNo preceding the DihedralParametrizer WaNo in the Workflow.
- Molecule_spf: Import SPF file containing the nonbonded force field (electrostatic and Lennard Jones) of the molecule, either from your hard drive or from the Parametrizer WaNo preceding the DihedralParametrizer WaNo in the Workflow. Note: Dihedral energy profiles and force-fields are only computed if the spf file contains dihedral information (automatically generated by the Parametrizer).
DFT Options
Like QuantumPatch, the DihedralParametrizer employs Quantum Chemistry Engines to compute molecular energies. For the DihedralParametrizer, DFTBplus (DFTB as implemented in DFTB+), XTB and Turbomole (DFT) are available. If Turbomole (requires a Turbomole license and installation not included in the software package) is chosen, additional settings for basis-set and functional are enabled. We recommend to use Turbomole with BP86 and def2-SVP. You can find a description of QM engines here.
Algorithm settings
The standard settings are depicted in the screenshot of the DihedralParametrizer WaNo above. We recommend to leave all parameters as they are and only adapt input files and resources.
- forcefield_optimization: The intramolecular interaction can be optimized when fitting forcefield parameters to a set of training configurations.
- optimize: Enable this forcefield optimization
- train_set_generation: There are three methods to generate or read in training sets:
- vacuum_wide: Generates a training set of random configurations. Clashes are removed from the train set using a Metropolis acceptance criterion at temperature T_acc in the sampling subbox.
- from_deposit: Read in configurations from a deposit morphology via the restarfile.zip from Deposit. Note: This may cause a bias in your training set.
- from_file: Read in the trainings set from a previous DHP run (all_coords.npy, all_energies.dat).
- no_samples: Number of configurations in you training set, in case vacuum_wide is chosen. We recommend to use ~x10 as many training configurations as numbers of atoms in your molecule, e.g. approx. 1000 for alpha-NPD. Note that in case of parallel usage of DHP, a subset of 80% of the training set is assigned randomly to each core during the forcefield optimization.
The following parameters are accessible when "Show advanced" is enabled:
- DH_scan_steps: Number of base points for the interpolation resulting dihedral force field in Deposit. Due to the speedup achieved in comparison to DHP3 we recommended to use at least 120 base points.
- scf_iter: In the DHP there is a slight missmatch in the nonbonded parameters used in the DihedralScan and the ultimate, optimized parameters passed to Deposit (in case forcefield_optimization is enabled). To further improve forcefield quality, you can run the dihedral scan and forcefield-optimization iteratively by increasing this parameter, e.g. to 3. In our recent benchmark, however, a significant impact could not be observed.
Parallelization and Performance: (Resources tab)
DihedralParametrizer can be run in parallel or as a serial run. We recommend to use at least 20 cores, as execution with multiple threads offers two advantages:
- Workload of DFT(B) computations is distributed over multiple cores. This large part to the DHP runtime scales almost linearly with the numbers of processors. The total number of single points increases with the number of dihedral angles in the molecule, "DHP_scan_staps" and "no_samples" (see above).
- When forcefield optimization is enabled, i.e. intramolecular forcefield parameters are fitted to DFT using a set of training configurations, this optimization is done in parallel on each thread using a slightly different train set and different random initial state. The parameters providing the best fit on an independent test set are used in the further simulation progress.
The required memory depends on the size of your compound. For average sized small organic compounds (~100 Atoms) 4000MB are recommended. Check the manual of your DFT engine for details.
Recommended Resources:
| Resource | Recommendation |
|---|---|
| CPUs per Node: | 32 |
| Number of Nodes: | 1 (No parallelization on more than a single node available) |
| Memory: | 4GB per core |
| Walltime: | Depending on the size of the compounds and the number of data points and the number of dihedrals of your molecule, the parametrization may range from 1h to over a day. |
| Queue: | Default |
Output Files
Main output files
| Filename | File description | Interface to module... |
|---|---|---|
| molecule.pdb | PDB-file containing atom positions, as provided as input file. | Deposit |
| dihedral_forcefield.spf | Force-field file for Deposit including the nonbonded force field (partial charges and Lennard-Jones parameters) and the dihedral force field computed for this module. | Deposit |
| DihedralScans/DHATOMS_energy_TYPE_iter*.png | For each dihedral identified by four DHATOMS, energy profiles for TYPE=DFTEnergy, Dihedral, LJ_coulomb are printed. Check for smoothness and clashes (high profiles). | None |
| OptimizationOutput/corellation_test_set_rank.png, OptimizationOutput/corellation_train_set_rank.png | For each rank (thread), the correlation of forcefield energies and DFT energies of training and test set are displayed in these files. The best correlation has an ending "min.png" and these final parameters of this thread are used in the further progress of the DHP. Check the correlation plot to estimate the quality of the potential parameter fit. A narrow distribution around a straight line with slope one through the origin indicates a good fit. | None |
Train set output
In addition to the standard output, the DHP provides data of the training set, either as training input for another DHP run (see "train_set_generation" in the settings description above) or to use elsewhere, e.g. as training set in other modules.
| Filename | File description | Interface to module... |
|---|---|---|
| all_coords.npy | Coordinates of the full train set in numpy format. This file can be used as input train set coordinates for another DHP run. | DHP |
| all_energies.dat | Total energies of the full train set in numpy format. This file can be used as input train set energies for another DHP run. | DHP |
| all_homo_lumo.dat | HOMO and LUMO energies of the train set configurations | None |
| all_charges.dat | Partial charges (derived from ESP fit in case of Turmobole engine) of all train set configurations. | None |
| all_train_data.npz | File combining all data mentioned above, accessible via np.load("all_train_data.npz",allow_pickle=True)[key] with key="coords","partial_charges","total_energies","homos","lumos". Metadata on the DFT engine settings used to compute these quantities is provided with the key "DFTOptions". | None |
The results of the search are