MoSDeF-dihedral-fit: A simple software package to fit dihedrals via the MoSDeF software

The MoSDeF-dihedral-fit program is an open-source, transparent, and lightweight Python software package capable of fitting dihedrals for existing forces fields. This software fits the Optimized Potentials for Liquid Simulations (OPLS) style dihedrals, then also analytically converts them to the periodic/CHARMM dihedral and Ryckaert-Bellemans (RB) torsion.

The MoSDeF-dihedral-fit software produces dihedral fits for existing force fields, compatible with GPU Optimized Monte Carlo (GOMC) >= v2.75 and Molecular Simulation Design Framework (MoSDeF), with only tens of lines of python code, the Gaussian 16 log files, and a mol2 file.

Note

Currently, MoSDeF-dihedral-fit only supports up to the fourth (4th) cosine multiple or power in the generated dihedral equations.

Note

If using the CHARMM dihedral format, the K0 term (constant term) will have to be disregarded because CHARMM recognizes this as a harmonic dihedral, not a periodic dihedral.

The MoSDeF-GOMC software package is used for the Molecular Mechanics (MM) calculation, which utilizes GPU Optimized Monte Carlo (GOMC) >= v2.75, the Molecular Simulation Design Framework (MoSDeF), and the vmd-python core software packages. For the Quantum Mechanics calculations, the Gaussian 16 software is used, reading the Gaussian 16 log files. From the Gaussian 16 log file, a user created mol2 file, and a few user inputs, this software automatically fits the desired dihedral, accounting for multiple dihedrals simultaneously. The software output provides a wide range of allowable dihedral fits with different cosine term combinations, including plots for visual reference; from this information, the user can then select the best dihedral fit for the specific application. Additionally, the 1-4 interactions for the force fields can be explicitly set in the force field XML file, allowing the flexibility that some other dihedral fitters lack. Lastly, the dihedral fits are compared by recalculating the dihedral in GOMC >= v2.75 and comparing it to the original Gaussian 16 energies, ensuring a correct dihedral fit.

Dihedral Equations:

OPLS-dihedral:

\[U_{OPLS} = \frac{k_0}{2} + \frac{k_1}{2}*(1+cos(\theta)) + \frac{k_2}{2}*(1-cos(2*\theta))\]
\[+ \frac{k_3}{2}*(1+cos(3*\theta)) + \frac{k_4}{2}*(1-cos(4*\theta))\]

Ryckaert-Bellemans (RB)-torsions:

\[U_{RB} = C_0 + C_1*cos(\psi) + C_2*cos(\psi)^2 + C_3*cos(\psi)^3 + C_4*cos(\psi)^4\]
\[\psi = \theta - 180^o\]

Periodic-dihedral:

\[U_{Periodic} = K_0 * (1 + cos(n_0*\theta - d_0))\]
\[+ K_1 * (1 + cos(n_1*\theta - d_1)) + K_2 * (1 + cos(n_2*\theta - d_2))\]
\[+ K_3 * (1 + cos(n_3*\theta - d_3)) + K_4 * (1 + cos(n_4*\theta - d_4))\]
\[where: n_0 = 0 ; n_1 = 1 ; n_2 = 2 ; n_3 = 3 ; n_4 = 4\]
\[d_0 = 90^o ; d_1 = 180^o ; d_2 = 0^o ; d_3 = 180^o ; d_4 = 0^o\]
MoSDeF-dihedral-fit Highlights:
  1. With a Gaussian 16 log file and a few user inputs, the user can easily fit a dihedral.

  2. MoSDeF-dihedral-fit is designed to automate the dihedral fit

  3. MoSDeF-dihedral-fit permits a transparent dihedral fitting process, where the user can alter the input force field XML file, which is the standard input for all of the MoSDeF software packages.

MoSDeF-dihedral-fit with United-Atom (UA) force fields:
  1. For the QM All-Atom (AA) and UA atoms parameterization to work together, the UA atoms must be entered as single atoms in the sudo UA force field XML and mol2 files.

  2. The individual atoms in the force field XML and mol2 files used to fit the dihedral shall have force field parameters for the central atoms (i.e., C or CH_3 in CH3) and other non-UA force field atoms alike (atoms with zero nonbonded interactions in a UA force field). The user should enter zeros for the force field terms wherever possible for the atoms not part of the UA forcefield (Example: atoms with zero nonbonded interactions in a UA force field), as setting the non-central atoms parameters to zero is especially true and critically important for the nonbonded interactions.

MoSDeF-dihedral-fit License:

https://img.shields.io/badge/license-MIT-blue.svg

vmd-python License:

The vmd-python software is licensed by the Theoretical and Computational Biophysics Group at the Beckman Institute for Advanced Science and Technology at the University of Illinois at Urbana-Champaign, which is a modified version of VMD.

The vmd-python website is https://github.com/Eigenstate/vmd-python

The official VMD web page is http://www.ks.uiuc.edu/Research/vmd