RESP fitting and partial charges for non-standard residues
About this tutorial
This tutorial demonstrates how to calculate partial charges for non-standard residues and small molecules that can be used for molecular dynamics simulations (See Protein-Ligand complex). Molecular dynamics force fields use pair-wise point charges to describe the electrostatics. Each atom has a partial charge such that the total charge on a residue is constrained to have a unit charge. For non-standard residues or small molecules, the partial charges are usually derived by performing a gas phase QM calculation. The electron density from the gas phase calculation is then fit to a classical Coulomb model with point charges on each atomic nucleus. The RESP fitting procedure uses a restraint function to fit the partial charges to the electrostatic potential.
In this tutorial we will compute the partial charges for the dopamine molecule shown here:
The quantum level of theory used will be the B3LYP/6-31G* level. While more accurate ab initio methods exist, B3LYP/6-31G* gives good results for the parameterization and is widely used.
In this section we use the QM software GAMESS-US to perform a geometry optimization of the structure and a single point energy calculation. We will then use the Multiwfn software to perform the RESP calculation and obtain the partial charges. We start with a pdb file for the dopamine molecule that can be made using your favorite molecular editor. An example pdb file can be found here: dopamine.pdb
First we can use OpenBabel to generate a GAMESS-US input file:
The generated input file will look like:
We see that the GAMESS-US format requires the atom name, the number of electrons, and the x, y, z coordinate for the atom. To perform the geometry optimization we need edit the header section of this file with the following lines:
This sets up a geometry optimization using the B3LYP/6-31G* level of theory. The geometry optimization file is here: dopamine_opt.inp. In this example, the net charge of the molecule is 0 ICHARG=0) and the multiplicity is 1 (MULT=1). Make sure to check these values for other systems. Next we run the geometry optimization with:
Now we want to run a single point energy calculation and calculate the wave function for the final optimized geometry. After the job finishes, copy the optimized coordinates from the dompamine_opt.gms file into a new file called dopamine_energy.inp with the following lines:
Here we are performing a single point energy calculation. Run the single point energy calculation with:
When the calculation finishes, we perform the RESP fit using the Multiwfn software. Type:
In the Main function menu, select 7 Population analysis and atomic charges and then select 18 Restrained Electrostatic Potential (RESP) atomic charge. Here, we will select option 1 Start standard two-stage RESP fitting calculation
After the calculation finishes, out the atomic coordinates with charges to the file called [dopamine_energy.chg]. Looking at the this file we see the atom, x, y, z coordinate and the partial charge found by RESP fitting.
Part 2: RESP fitting using ORCA
As a comparison, we will also perform the QM geometry optimization using the QM software ORCA. If we use Mutiwfn to perform the RESP fit, we should obtain the same partial charges.
Here the charge and multiplicity is set by the line: xyz 0 1. Note also that we do not include the electrons, but only the atom and cartesian coordinates in the input structure. To run the optimization type:
Again we perform an energy minimization using the final optimized coordinates. The input file dopamine_orca_energy.inp looks like:
In order to use Multiwfn with the ORCA wave function file (dopanine_orca_energy.gbw) we need to convert this file into a molden file using the orca command orca_2mkl. When the energy calculation finishes, type the following:
The resulting file will be a molden input file called dopamine_orca_energy.molden.input that can be loaded into Multiwfn with:
Perform the RESP calculation as in Part 1 and write the resulting charges to the file dopamine_orca_energy.molden.chg. The resulting charges are shown here:
Comparing these charges to Part 1, we see that the partial charges are nearly the same.