Best Practices in Constant pH MD Simulations : Accuracy and Sampling
Full text
This is a self-archived version of an original article. This version may differ from the original in pagination and typographic details. Author(s): Title: Year: Version: Copyright: Rights: Rights url: Please cite the original version: CC BY 4.0 https://creativecommons.org/licenses/by/4.0/ Best Practices in Constant pH MD Simulations : Accuracy and Sampling © 2022 The Authors. Published by American Chemical Society Published version Buslaev, Pavel; Aho, Noora; Jansen, Anton; Bauer, Paul; Hess, Berk; Groenhof, Gerrit Buslaev, P., Aho, N., Jansen, A., Bauer, P., Hess, B., & Groenhof, G. (2022). Best Practices in Constant pH MD Simulations : Accuracy and Sampling. Journal of Chemical Theory and Computation, 18(10), 6134-6147. https://doi.org/10.1021/acs.jctc.2c00517 2022
Best Practices in Constant pH MD Simulations: Accuracy and Sampling Pavel Buslaev,* ,# Noora Aho, # Anton Jansen, Paul Bauer, Berk Hess,*and Gerrit Groenhof* J. Chem. Theory Comput. 2022,10.1021/acs.jctc.2c00516 Cite This: https://doi.org/10.1021/acs.jctc.2c00517 Read Online ACCESS Metrics & More Article Recommendations * sı Supporting Information ABSTRACT: Various approaches have been proposed to include the effect of pH in molecular dynamics (MD) simulations. Among these, the λ-dynamics approach proposed by Brooks and co-workers [Kong, X.; Brooks III, C. L. J. Chem. Phys. 1996,105, 2414−2423] can be performed with little computational overhead and hfor each typeence be used to routinely perform MD simulations at microsecond time scales, as shown in the accompanying paper [Aho, N. et al. J. Chem. Theory Comput. 2022, DOI: 10.1021/acs.jctc.2c00516]. At such time scales, however, the accuracy of the molecular mechanics force field and the parametrization becomes critical. Here, we address these issues and provide the community with guidelines on how to set up and perform long time scale constant pH MD simulations. We found that barriers associated with the torsions of side chains in the CHARMM36m force field are too high for reaching convergence in constant pH MD simulations on microsecond time scales. To avoid the high computational cost of extending the sampling, we propose small modifications to the force field to selectively reduce the torsional barriers. We demonstrate that with such modifications we obtain converged distributions of both protonation and torsional degrees of freedom and hence consistent pKaestimates, while the sampling of the overall configurational space accessible to proteins is unaffected as compared to normal MD simulations. We also show that the results of constant pH MD depend on the accuracy of the correction potentials. While these potentials are typically obtained by fitting a low-order polynomial to calculated free energy profiles, we find that higher order fits are essential to provide accurate and consistent results. By resolving problems in accuracy and sampling, the work described in this and the accompanying paper paves the way to the widespread application of constant pH MD beyond pKaprediction. ■INTRODUCTION Thanks to improvements in algorithms, force fields, and computer hardware, molecular dynamics (MD) simulations have become a versatile tool for investigating the conformational landscape of complex biomolecular systems at the atomic level. 1−5 An important algorithmic improvement has been the explicit inclusion of pH in MD simulations, 6−12 as pH is an important experimental parameter that affects the structure and dynamics of biomolecules. To provide the users of the GROMACS MD package 13 with access to simulations at constant pH, we have implemented the λ-dynamics-based constant pH approach by Brooks and coworkers. 9,14 In contrast to the previous implementation in a fork of GROMACS 3.3, 10 the new implementation, which is described in an accompanying paper, 15 is efficient and constant pH MD simulations can be performed with about 25% for CPU, 30−40% for CPU + GPU computational overhead compared to normal MD simulations irrespective of the number of titratable sites in the system. In the accompanying methodological paper, 15 we also demonstrate that the method can be successfully applied to calculate pKavalues of titratable sites in a protein. The purpose of this paper is to provide users with guidelines and recommendations on how to set up and perform constant pH MD simulations, including the necessary parametrization steps. In constant pH MD simulations, titratable groups can dynamically change their protonation state. These changes are driven by interactions between the group and the chemical environment (modeled with a force field) and the aqueous proton concentration (modeled with a pH potential). Because at the force field level a number of contributions to the free energy of (de)protonation are not included explicitly, i.e., quantum mechanical interactions associated with bond breakage and formation as well as the actual proton particle, corrections to the force field are needed in λ-dynamics-based Received: May 18, 2022 Articlepubs.acs.org/JCTC © XXXX The Authors. Published by American Chemical Society A https://doi.org/10.1021/acs.jctc.2c00517 J. Chem. Theory Comput. XXXX, XXX, XXX−XXX Downloaded via UNIV OF JYVASKYLA on September 19, 2022 at 12:16:48 (UTC). See https://pubs.acs.org/sharingguidelines for options on how to legitimately share published articles.
constant pH MD. In GROMACS, these corrections are implemented as analytical functions, VMM(λj), fitted to the free energy profile associated with the deprotonation of a titratable residue jat the force field level. 15 The accuracy of such free energy profiles depends not only on how closely the force field model represents the true potential energy surface but also on the convergence of sampling of all other degrees of freedom in the system. Therefore, whereas in normal MD the accuracy of the dynamics depends solely on the quality of the force field, the accuracy of λ-dynamics-based constant pH MD depends additionally on whether all relevant degrees of freedom are sampled sufficiently in the simulations required for parametrizing the correction potentials. We found that insufficient sampling of the dihedral degrees of freedom in the amino acid side chains can lead to poor convergence in the deprotonation free energy profiles, as also observed by Klimovich and Mobley in simulations without constant pH. 16 We traced the lack of the dihedral sampling to the barriers that separate the minima in the torsion potentials. These barriers are too high to reach a converged sampling of the dihedral free energy landscape on the time scales of typical constant pH MD simulations. Because the interaction between the titratable group and the environment depends critically on the dihedral angles of the side chain, a lack of convergence in these dihedral angles also affects the sampling of the protonation states. Rather than increasing the time scale of the MD simulations to obtain converged dihedral and protonation state distributions or introducing enhanced sampling techniques, 12,17−21 we propose reducing the barriers for dihedral rotations in a systematic way. We will demonstrate that such optimized dihedral force field parameters improve pKaestimates of amino acids without compromising the overall conformational sampling of the protein. With a higher accuracy of the underlying deprotonation free energy profiles, we found that the correct sampling of protonation states also depends critically on the order of the polynomial fit used to obtain an analytical form for the correction potential. We show that the commonly accepted first-order fit, 12 although firmly based on linear response theory, 22 is not sufficiently accurate and can lead to erroneous protonation dynamics in constant pH MD simulations. Because the dominant energetic contribution to proton affinity comes from electrostatic interactions, 22 it is of utmost importance to use an accurate description of such interactions. Constant pH MD simulations have been performed with various electrostatic models, including generalized Born, 9 shifted cutoff, 23 and particle mesh Ewald (PME). 10,12 Of these methods, the Ewald summation-based PME method 24,25 is generally considered to provide the most accurate description of the electrostatic interactions in periodic biomolecular systems. 26 Because Ewald summation can only provide accurate results if the simulation box remains neutral, 27 the charge fluctuations associated with the dynamic protonation and deprotonation in constant pH MD simulations need to be compensated to prevent artifacts. Titratable sites can be directly coupled to special particles, modeled as ions or water molecules, 21,28 such that charge is transferred directly between the titratable site and that particle. Alternatively, all sites can be coupled collectively to a sufficiently large number of buffer particles. 29 The latter approach has the advantage that spontaneous fluctuations in the interaction of the buffer particles with their environment affect all titratable sites to the same extent. The disadvantage is that the setup and parametrization of the buffer approach are more involved, as these require selecting the number of buffers and parametrizing their interaction with the rest of the system. To facilitate the use of buffers in constant pH MD, we provide a parametrization strategy aimed at preventing buffer clustering, buffer binding to titratable sites, and buffer permeation into hydrophobic regions. We demonstrate that buffers parametrized with this strategy also avoid finite-size effects associated with the periodicity of small simulation boxes. 30,31 ■METHODS Here, we go through all of the important aspects of the simulation setups. Simulated Systems. We performed standard and constant pH MD simulations of the systems listed in Table 1. The original and modified (described in detail below) CHARMM36m 32,33 force fields were used in all simulations. Table 1. Table of Simulated Systems a system box size (nm3) no. of waters no. of ions force field BUF15×5×5∼4000 11 Na, 11 Cl, 2 Buf CHARMM36m BUF23×3×3∼3000 1 or 2 Buf CHARMM36m ADA 5 ×5×5∼4000 11 Na, 11 Cl, 1 or 10 Buf CHARMM36m, CHARMM36m-cph ADA33×3×3∼850 2 Na, 2 Cl, 10 Buf CHARMM36m-cph ADA77×7×7∼11100 31 Na, 31 Cl, 10 Buf CHARMM36m-cph ADAlow salt 5×5×5∼4000 4 Na, 4 Cl, 10 Buf CHARMM36m-cph ADAhigh salt 5×5×5∼4000 38 Na, 38 Cl, 10 Buf CHARMM36m-cph AEA 5 ×5×5∼4000 11 Na, 11 Cl, 1 or 10 Buf CHARMM36m, CHARMM36m-cph AKA 5 ×5×5∼4000 11 Na, 12 Cl, 1 or 10 Buf CHARMM36m, CHARMM36m-cph AHA 5 ×5×5∼4000 11 Na, 12 Cl, 1 or 10 Buf CHARMM36m, CHARMM36m-cph AAA15×5×5∼4000 11 Na, 12 Cl, 1 or 10 Buf CHARMM36m, CHARMM36m-cph AAA25×5×5∼4000 11 Na, 11 Cl, 1 or 10 Buf CHARMM36m, CHARMM36m-cph 1CVO16.8 ×7.8 ×7.1 ∼12400 35 Na, 48 Cl, 20 Buf CHARMM36m, CHARMM36m-cph 1CVO27.1 ×7.1 ×7.1 ∼11400 13 Cl, 150 Buf CHARMM36m MEMB15.9 ×5.9 ×8.1 ∼4200 8 Na, 8 Cl, 50 Buf CHARMM36m MEMB25.9 ×5.9 ×8.1 ∼4200 8 Na, 8 Cl, 1 Buf CHARMM36m SOL 4.3 ×4.3 ×4.3 ∼2600 50 Buf CHARMM36m a We denote the modified CHARMM36m force field as CHARMM36m-cph. Journal of Chemical Theory and Computation pubs.acs.org/JCTC Article https://doi.org/10.1021/acs.jctc.2c00517 J. Chem. Theory Comput. XXXX, XXX, XXX−XXX B
The table also presents the box size, the number of CHARMM36 TIP3P water molecules, 34−36 the number of ions, and buffer particles included in each system. The fitting coefficients of the VMM correction potential for the buffer particles were obtained with system BUF1. To find the optimal charge range and Lennard−Jones parameters for the buffer particles, enhanced sampling simulations with the accelerated weight histogram (AWH) method were performed on system BUF2. Systems ADA, AEA, AKA, and AHA are alanine tripeptides with capped termini and as the central residue aspartic, glutamic, lysine, and histidine amino acids, respectively. AAA1and AAA2systems are alanine tripeptides with protonated termini. Cand N-termini were made titratable in AAA1and AAA2systems, respectively. Two sets of simulations of the cardiotoxin V protein were performed. System 1CVO1was used to calculate the pKavalues of titratable residues, while the larger system 1CVO2was used to compute the radial distribution function of the buffer particles around the protein. The membrane systems MEMB1and MEMB2contained 106 1-palmitoyl-2-oleoyl-glycero-3-phosphocholine (POPC) lipids. The starting coordinates and topologies of all systems are provided as Supporting Information. Simulation Setup. Periodic boundary conditions were applied in all systems. Electrostatic interactions were modeled with the particle mesh Ewald method, 24,25 while van der Waals interactions were modeled with Lennard−Jones potentials which were smoothly switched to zero in the range from 1.0 to 1.2 nm. Simulations were performed at a constant temperature of 300 K, maintained by the v-rescale thermostat, 37 with a time constant of 0.5 ps−1and at a constant pressure of 1 bar, maintained by the Parrinello−Rahman barostat, 38 with a period of 2.0 ps. The leapfrog integrator with an integration step of 2 fs was used. Bond lengths to hydrogens in the solute were constrained with the LINCS algorithm, 39 while the internal degrees of the CHARMM TIP3P water molecules 35,36 were constrained with the SETTLE algorithm. 40 Prior to the constant pH MD simulations, the energy of all systems was minimized using the steepest descent method, followed by a 1 ns equilibration. Constant pH MD Simulation Setup. In the constant pH MD simulations, the mass of λ-particles was set to 5 atomic units and the temperature was kept constant at 300 K with a separate v-rescale thermostat for the λdegrees of freedom 37 with a time constant of 2.0 ps−1. The single-site representation, defined and described in the accompanying paper, 15 was used for Asp, Glu, Lys, C-ter, and N-ter, whereas the multisite representation, also described in that paper, was used for His. 15,41,42 The multisite representation models each physical state of groups with chemically coupled titratable sites with an independent λ-coordinate and takes chemical coupling into account by applying the linear constraint on these λ-coordinates requiring =1 ii group group . 15 The same pH and biasing potentials were used as in Aho et al. 15 In the sampling simulations of single titratable residues, the pH was set equal to the pKaand the barrier height of the biasing potential was set to zero. The titration of the cardiotoxin V (PDB ID 1CVO 43 ) protein was performed by running 10 independent replicas of 100 ns each for 15 equidistantly spaced pH values in the range from 1.0 to 8.0 using both the original and a modified CHARMM36m force field. In the titration simulations, the barrier height of the biasing potential was set to 7.5 kJ mol−1for groups modeled with a single-site representation and to 5 kJ mol−1for groups modeled with a multisite representation. Reference Simulations. The constant pH simulations require a correction potential VMM(λj) for each titratable residue j. These correction potentials are the integrals of polynomial fits to the expectation value of ⟨∂V/∂λ⟩λin reference state simulations at fixed λ-values. 15 Thus, after integration, an nth-order polynomial fit to ⟨∂V/∂λ⟩λyields an (n+ 1)th-order polynomial function that represents VMM(λ). However, in our implementation, the fit to ⟨∂V/∂λ⟩λwas used, rather than VMM(λ). We thus refer to the fitting order as the order of the polynomial fit to ⟨∂V/∂λ⟩λ. We performed the reference simulations as follows: The partial charges in the tripeptide systems were linearly interpolated between λ=−0.1 and λ= 1.1 with a step of 0.05. For His, all three λcoordinates were changed under the constraint λ1+λ2+λ3= 1. For each set of λ-values, called a grid point, we performed an 11 ns MD simulation in which the ∂V/∂λjwere saved every picosecond and accumulated. The total charge of the system was kept neutral by simultaneously changing the charge of a single buffer particle. The fitting procedure is described in full detail in the accompanying paper. 15 Dihedral Free Energy Profiles. Because the sampling of protonation states is tightly coupled to the sampling of side chain dihedral degrees of freedom, we computed the free energy profiles associated with the rotation of the dihedrals in the side chain of the central amino acid in the capped tripeptide systems (Table 1) by means of umbrella sampling. 44,45 As the first step, we performed 20 ns MD simulations with a time-dependent potential on the dihedral angle with a force constant of 418.4 kJ mol−1rad−2. The center of this potential was moved from 0°to 360°with a rate of 18° ns−1. From these simulations, frames with dihedral angles closest to 0°, 10°, 20°, etc., were selected as references for the umbrella replicas. The difference between the dihedral angle in the selected frames and the target angle was always below 0.1°. Then, we performed 36 umbrella sampling simulations of 11 ns with a harmonic restraining potential centered at the reference dihedral angle and a force constant of 418.4 kJ mol−1rad−2. We used the WHAM procedure, 46 implemented in GROMACS, 47 to unbias these umbrellas and obtain free energy profiles associated with the full rotation of the dihedral angle. Dihedral Potential Energy Profiles at the QM and MM Levels. To check the validity of the proposed force field modifications, we computed the potential energy profiles for the N−Cα−Cβ−Cγdihedral of aspartic acid with capped residues. The profiles were computed at both quantum mechanical (QM) and molecular mechanical (MM) levels. The QM profiles were computed at the MP2/6-31+G*level of theory using the Firefly QC package, 48 which is partially based on the GAMESS (US) 49 source code. The MM profiles were computed for both the original and the modified CHARMM36m force fields. The potential energy was computed for the N−Cα−Cβ−Cγdihedral angle with 10° increments. For each dihedral value, the structures were energy minimized prior to potential energy calculation. Accelerated Weight Histogram Alchemical Simulations. Buffer particles are used in constant pH MD to maintain the neutrality of the simulated system. Ideally, buffers should not introduce any artifacts due to binding to titratable groups, binding to each other, or penetrating into hydrophobic regions. Journal of Chemical Theory and Computation pubs.acs.org/JCTC Article https://doi.org/10.1021/acs.jctc.2c00517 J. Chem. Theory Comput. XXXX, XXX, XXX−XXX C
To prevent such behavior, we optimized the charge range and Lennard−Jones parameters of the buffers. To this end, we performed a series of enhanced sampling simulations with the accelerated weight histogram method (AWH). 50,51 In one set of simulations with two buffers in the simulation box (BUF2, Table 1), we quantified the sampling efficiency from the friction metric 50,51 as a function of the absolute charge per buffer particle. In these simulations, the charge of one buffer was changed from 0 to +0.8 while simultaneously the charge of the other buffer was changed from 0 to −0.8 in order to maintain neutrality. The CHARMM36m Lennard−Jones parameters for sodium were used for the buffers in these simulations. In the other set of simulations, we computed the free energy difference between introducing a neutral buffer in water (BUF2) and inside the hydrophobic region of a POPC bilayer system (MEMB2,Table 1) for various values of the Lennard−Jones parameters of the buffer. In these simulations, the Lennard−Jones interactions between the buffer and the rest of the system were increased from noninteracting at λ= 0 to fully interacting (λ= 1) in 10 discrete steps. For all systems, we simulated 10 replicas of 10 ns, from which the free energy differences and friction coefficients were obtained as averages over the replicas. Dihedral Analysis. Distributions of side chain dihedral angles in proteins were derived from publicly shared MD trajectories of proteins with PDB IDs 1U19, 52 2RH1, 53 2Y02, 54 and 5UEN 55 obtained from the GPCRMD 56 and SARS-CoV-2 databases (https://covid.molssi.org/). 57 For each trajectory, the distributions of the following dihedral angles were calculated: (1) N−Cα−Cβ−Cγin aspartic acid (2) N−Cα−Cβ−Cγin glutamic acid (3) Cα−Cβ−Cγ−Cδin glutamic acid (4) N−Cα−Cβ−Cγin histidine (5) H−Oϵ2−C−Oϵ1in aspartic and glutamic acids. In this work, we also computed the distributions of these dihedrals from standard MD trajectories of cardiotoxin V (PDB ID 1CVO 43 ). Comparisons of Distributions. To compare two distributions Pi(x) and Pj(x), with the corresponding cumulative distribution functions Fi(x) and Fj(x), we used Kolmogorov−Smirnov statistics (KSS) 58 = [ ]F F F x F xKSS( , ) sup ( ) ( ) i j x i j (1) The larger the KSS, the less similar the distributions are. The distributions were considered consistent when KSS(Fi,Fj) < 0.03. The KSS was computed using the script from the PCAlipids package. 59,60 Titration. To estimate the pKavalues of titratable groups from multiple simulations at various pH values, we computed the average fraction of deprotonated frames (Sdeprot) over all replicas at each pH value. For a group with a single titratable site, this average was obtained as = + SN N N (pH) deprot deprot prot deprot (2) where Nprot and Ndeprot are the total number of frames in which the site is protonated and deprotonated, respectively. For titratable sites modeled with the single-site representation, we Figure 1. Distributions of the λ-coordinate (A and E) and dihedrals (B−D and F−H) in constant pH MD simulation of Asp with the original (A−D) and modified CHARMM36m (E−H) force field. While the simulations were performed for an ADA tripeptide, only the central aspartic acid is shown for clarity in the inset of A. (A and D) Distributions for third-order fits for ⟨∂V/∂λ⟩λobtained with the original force field. Different colors correspond to independent replicas. Distributions for the λ-coordinate (A) as well as distributions for N−Cα−Cβ−Cγ(B) and O 1 -CγO 2 - H 2 (D) dihedrals are not identical. Right column (E−H) shows the distributions for the modified CHARMM36m force field with third-order fit for ⟨∂V/∂λ⟩λ. Distributions are identical. Journal of Chemical Theory and Computation pubs.acs.org/JCTC Article https://doi.org/10.1021/acs.jctc.2c00517 J. Chem. Theory Comput. XXXX, XXX, XXX−XXX D
considered the site protonated if λis below 0.2 and deprotonated if λis above 0.8. For sites that are described with the multisite description, we considered a state protonated if the λassociated with the protonated form of the residue is above 0.8 and deprotonated if the λassociated with the deprotonated form of the residue is above 0.8. To estimate the macroscopic pKavalue of histidine, which contains two titratable sites Nϵand Nδ, we calculated for each pH value the average fraction of frames in which the residue is deprotonated at either of the two sites = + + SN NNN (pH) 1 macro deprot p p (3) where Np , N , and N are the number of frames in which λp> 0.8, λϵ> 0.8, and λδ> 0.8. The averaged fractions at each pH value were fitted to the Henderson−Hasselbalch equation = + S1 10 1 K deprot (p pH) a (4) which yielded the pKavalues as fitting parameters. ■RESULTS AND DISCUSSION First, we demonstrate that a lack of sampling of the relevant dihedral degrees of freedom in amino acid side chains with the CHARMM36m force field reduces the accuracy of the correction potentials for λ-dynamics. To overcome these convergence problems, we modify the force field by reducing the barriers in the torsion potential and show that this significantly improves the accuracy of the correction potentials and hence the results of constant pH simulations, including pKaestimates, without affecting the protein conformational dynamics. After the validation of the modified force field parameters, we show how the buffer particles that maintain the neutrality of the simulation box have to be parametrized to prevent finite-size effects on proton affinities due to periodicity. 30,31 Sampling. Klimovic and Mobley have shown that calculated hydration free energies of single amino acids depend on the starting conformation. 16 Because a few picoseconds typically suffice to sample bond and angle degrees of freedom in the amino acid as well as the rotational degrees of freedom of the water molecules, we speculate that their observation implies a lack of sampling in the dihedral degrees of freedom in the amino acid side chain. Therefore, we systematically analyzed the convergence of both λ-coordinates and dihedral angles during constant pH simulations of single amino acids in water. We performed 100 ns constant pH MD simulations at pH = pKaof systems ADA, AEA, AKA, AHA, AAA1, and AAA2 (Table 1). To enhance the sampling of the λ-coordinate in these systems, we ran the simulations without a barrier in the biasing potential (Vbias(λ), eq 5 in Aho et al. 15 ). The correction potential (VMM(λ), eq 5 in Aho et al. 15 ) was obtained by fitting a third-order polynomial function to the ⟨∂V/∂λ⟩λvalues of the reference trajectories. We will show later that for accurate and reproducible constant pH MD results, a higher order fit is required. Nevertheless, in spite of its limited accuracy, using the same third-order fit for all system suffices to systematically compare the distributions of the relevant degrees of freedom and assess their convergence. Figure 2. Distributions of dihedral angles for which the torsion potentials were corrected from standard MD simulations. (A) Dihedral distributions from publicly available trajectories 56,57 (total simulation time ≈10 μs). Probability density is significant only around local minima. (B) Dihedral distributions obtained from simulations of cardiotoxin V with both the original and the modified barriers for different protonation states of the titratable residues. Local minima are preserved, and no additional configurations are observed. Journal of Chemical Theory and Computation pubs.acs.org/JCTC Article https://doi.org/10.1021/acs.jctc.2c00517 J. Chem. Theory Comput. XXXX, XXX, XXX−XXX E
In Figure 1A, we show the distributions of the λ-coordinate in five constant pH MD replicas of the ADA system with the original CHARMM36m force field parameters. Distributions of the λ-coordinates in the other systems (AEA, AKA AHA, and AAA1and AAA2) are shown in the Supporting Information (SI, Figures S1−S5). The dissimilarity between the λ-distributions in the replicas (maximum KSS between replicas of 0.29, 0.11, 0.04, and 0.095 for ADA, AEA, AHA, and AAA1, respectively) indicates a lack of convergence. In addition, the distributions of the dihedral angles, shown in Figure 1B−D, are also not identical for all replicas. Because there is no barrier from the biasing potential for the λ-coordinate, we conclude that the lack of convergence in λis due to insufficient sampling of the dihedral degrees of freedom. Force Field Modifications. To overcome the lack of sampling, one can increase the simulation time or enhance sampling by means of special algorithms such as replica exchange MD. 61,62 Replica exchange has been applied frequently in the context of constant pH MD with exchanges between replicas at different temperature (T-REMD), pH (pH-REMD), or both. 20,63−66 However, because the protonation state has little effect on the torsion barrier height (Figure 3), changing the pH across the pH ladder would do little to enhance the sampling of the dihedral degrees of freedom. Furthermore, REMD methods are computationally more demanding than performing a single MD simulation and also prevent access to the dynamical properties of the system due to the jumps between replicas. As for some applications the dynamical properties may be highly needed, we consider it important that all relevant protonation states can be sampled correctly in a single constant pH MD trajectory. Because the sampling of λ-coordinates is tightly coupled to the sampling of the dihedral angles, convergence within a single trajectory can in principle also be reached by lowering the barriers of the torsion potentials. Previously, modifications to the force field have been introduced for carboxyl groups. To improve the sampling of the syn and anti conformations of the carboxyl proton in Glu, Asp, and the C-terminus, Brooks and co-workers reduced the barrier for this rotation by a factor of 8 and also scaled the carboxyl oxygen radii by 0.95. 9 In contrast, Grubmuller and coworkers modified this torsion potential to prevent sampling the anti-conformation altogether. 67 However, according to our analysis (Figure 1), there is a lack of convergence not only in the carboxyl dihedral angle but also in the other side chain dihedral angles. Reducing the torsional barriers without affecting the overall sampling of the conformational space is possible only if the regions near such barriers are sparsely sampled. We, therefore, analyzed the distributions of the dihedral angles in the side chains of titratable amino acids in the publicly available trajectories of G-protein-coupled receptors and of SARS-CoV-2 proteins. 56,57 The distributions of these dihedral angles, plotted in Figure 2A, reflect the shape of the underlying torsion potentials with maxima coinciding with local minima of the potential profiles. The low density near barriers suggests that these barriers are rather high and might be reduced without affecting the dihedral distributions. To achieve convergence of both dihedral angles and λ-coordinates on a 100 ns time scale, we thus altered the maxima of the torsion potentials by adding a small dihedral Figure 3. Modification of the torsional barriers in the Asp side chain. (A) Aspartic acid and its atomic nomenclature. (B and C) Corrections added to dihedral torsions of the original force field. Corrections with two (B) and three (C) local minima were used for torsions with two and three local minima, respectively. Heights of the corrections were selected through the iterative process, aimed at achieving consistent λ-distributions without introducing additional local minima in the free energy profiles. (D−F) Original and modified torsional barriers of Asp for both protonated (H+) and deprotonated (H−) states. Journal of Chemical Theory and Computation pubs.acs.org/JCTC Article https://doi.org/10.1021/acs.jctc.2c00517 J. Chem. Theory Comput. XXXX, XXX, XXX−XXX F
angle (ϕ)-dependent correction to the CHARMM36m force field =V n n( ) cos( ) ( 1) 1 4cos(2 ) i i i n i i Ä Ç Å Å Å Å Å Å Å Å É Ö Ñ Ñ Ñ Ñ Ñ Ñ Ñ Ñ (5) where niis the multiplicity of the torsion angle i(i.e., the number of minima) with ni= 2 for conjugated bonds and ni= 3 for aliphatic bonds. The parameter ϵiis an empirical coefficient that is optimized such that the barriers are low enough to converge the distribution of ϕiwithout introducing additional minima on the potential energy surface. For each side chain dihedral angle of the titratable amino acids, the coefficient ϵiwas optimized in an iterative fashion: After an initial guess, we computed the free energy profiles associated with rotation of the dihedral as well as five unbiased 100 ns trajectories at pH = pKawith different starting conditions and a biasing potential (Vbias(λ), eq 5 in Aho et al. 15 ) without barrier. Prior to these constant pH MD simulations, we recomputed the correction potential, VMM(λ), by fitting a third-order polynomial to the ⟨∂V/∂λ⟩λ values obtained from thermodynamic integration simulations performed with the current value of ϵi. Free energy profiles were inspected visually for artificial minima, while distributions of both dihedral angles and λ-coordinates were compared between the five unbiased replica runs based on their similarity. The coefficient ϵiwas gradually increased until the distributions in the different replicas were sufficiently similar (KSS < 0.03), while at the same time no additional minima appeared in the free energy profiles. In Figure 3 we show the optimized torsion potentials as well as their effect on the free energy profiles of the dihedral angles in Asp. The corrections and free energy profiles of Glu, His, and the C-terminus are shown in Figures S6−S8 of the SI. With the exception of the Cβ−Cγ−Oδ−H dihedral, the corrections introduce no additional minima on the free energy profile of these torsions. Furthermore, as shown on the right panels of Figure 1, the distributions of the dihedrals and λ-coordinates are nearly indistinguishable for all replicas after correction. Because with the corrected potentials the Kolmogorov−Smirnov statistics for Asp, Glu, His, and the C-terminus are 0.028, 0.015, 0.027, and 0.022, we conclude that the corrections improve the convergence of both the λ-coordinates and the dihedral degrees of freedom in constant pH simulations. Note that although the distributions of the λ-coordinate are sufficiently similar, the sampling of these coordinates is not yet uniform (Figure 1E). We will show below that this discrepancy is due to the low order of the polynomial fit used for obtaining the correction potential VMM(λ). With the exception of the O 1 −Cγ− O 2 −H dihedral, the corrections we propose here lead to changes in the torsion barrier of at most 16 kJ mol−1(i.e., for the Glu N−Cα−Cβ−Cγ torsion). For many biomolecular force fields, the parameters of the torsion potentials are obtained by fitting suitable periodic functions to energies evaluated at the MP2 level of theory. 68−71 The parameters for each type of torsional potential are simultaneously fitted for multiple amino acids. Therefore, the average root mean squared (RMS) difference between the torsional energy at the CHARMM36m level and that at the MP2 level of theory is on the order of 10 kJ mol−1. The RMS deviation between the modified and the original torsion potentials is at most 8 kJ mol−1, and the RMS deviation between the ab initio potential at the MP2/6-31+G*level and the N−Cα−Cβ−Cγtorsion potential in ASP is reduced from 4 kJ mol−1for the original CHARMM36m force field to 3.5 kJ mol−1for the modified CHARMM36m force field (Figure S9). Therefore, we conclude that with the corrections of the torsion potentials, the modified force field provides an equally good fit to QM potential profiles as the original CHARMM36m force field. 33,71 We also performed standard MD simulations and simulated five replicas for 100 ns for the two protonation states of the Asp tripeptide in water using both the original and the modified CHARMM36m force field parameters. Without the modifications, the local minima are not consistently sampled in all replicas (Figure S10). In contrast, with the corrections, identical distributions of the dihedral angles are obtained also in standard MD simulations. In addition, the modifications are essential to sample both syn and anti conformations of the carboxyl proton, in line experiment. 72 We note, however, that the correction required for sampling both of these conformations significantly alters the shape of the barrier (Figure 3F). Nevertheless, because of their low mass, proton can tunnel through such barriers, and therefore, we consider the shape and height of the torsional barrier less relevant for this specific dihedral than for the other dihedrals. Finally, we demonstrate that the modifications do not alter the distributions of the dihedral angles in protein simulations. We performed MD simulations of the 1CVO1system both with and without the modifications to the torsion potentials of titratable amino acids with either (i) all of these residues protonated, (ii) all deprotonated, or (iii) all Asp residues deprotonated and all other residues protonated. In Figure 2B, we plot the distributions of the dihedral angles for which corrections were introduced. The high similarity between the distributions suggests that the corrections do not lead to the sampling of different dihedral distributions, even if the relative weights of the minima are slightly altered, in particular, for the H−O−C−O dihedral. We conclude, therefore, that the corrections introduced to facilitate sampling of the dihedral and λ-coordinates do not significantly alter the protein conformational landscape and can hence be used to perform both normal and constant pH MD simulations. Quality of the Correction Potential VMM.Reference Potential. To verify that the modified torsion potentials overcome the convergence problems, we performed constant pH simulations at pH = pKaand without a barrier in the biasing potential. Because with such a setup the potential energy profile for the λ-particle should be flat, we expected a uniform λ-distribution, provided that the dihedral degrees of freedom are sufficiently sampled. However, as shown in Figure 1E, the distributions are identical between replicas but not uniform despite the corrections to the torsion potentials. Because both the pH-dependent potential VpH(λ) and the biasing potential are flat by construction at pH = pKa, the deviations must originate from discrepancies between the correction potential VMM(λ) and the underlying free energy profile associated with deprotonation. The correction potential is obtained as a polynomial fit to the ⟨∂V/∂λ⟩λvalues from thermodynamic integration simulations. Because linear response (LR) theory predicts a linear dependence between the hydration free energy and the magnitude of a (point) charge, a first-order fit has often been used to obtain the correction potential for constant pH MD. 9,12 However, even if the change in the charge dominates the free energy of changing the Journal of Chemical Theory and Computation pubs.acs.org/JCTC Article https://doi.org/10.1021/acs.jctc.2c00517 J. Chem. Theory Comput. XXXX, XXX, XXX−XXX G
protonation state, hydrogen-bond rearrangements can contribute as well. Because the effects due to such structural rearrangements are neglected in LR theories, we hypothesized that higher order fits may be necessary for obtaining sufficiently accurate correction potentials. To test our hypothesis, we investigated the accuracy of the polynomial fit to the correction potential. In Figure 4A, we show the mean error of the correction potential with respect to the computed free energy difference associated with deprotonation as a function of the fitting order. For the LR approximation the fitting errors are higher than 10 kJ/mol. In the worst-case scenario, such errors could lead to deviations in predicted pKavalues of more than one pKaunit. With an error of 4 kJ mol−1, the third-order fit, used above to address the convergence issues, does not yield a sufficiently accurate representation of the underlying free energy profile. Increasing the order of the polynomial fit reduces this error, and as shown in Figure 4B, at least a seventh-order fit is required to provide a uniform distribution of the λcoordinate for the Asp tripeptide in constant pH MD simulations at pH = pKa. Also, for carboxyl groups in the side chains of Glu and in the C-terminus, a polynomial fit to ⟨∂V/∂λ⟩λof at least seventhorder is needed to provide a sufficiently accurate correction potential (Figure 4 and Figures S11 and S14 in SI). For the imidazole ring of His with three coupled titratable sites, a seventh-order fit suffices as well (Figure S13), while for the amino bases in the side chain of Lys and the N-terminus, at least an eighth-order fit is required (Figures S12 and S15 in SI). We speculate that the higher order fit is needed for the latter sites due to the larger change in the charge on the central nitrogen atom from −0.3 eto −0.96 eupon deprotonation. The change in the charge of the carboxylic oxygen from 0.55 e to −0.76 eis smaller as are the changes on the nitrogen atoms of the imidazole ring of His (from −0.36 eto −0.7 e). Parameterization of Buffer Particles. A change in the protonation state affects the total charge of the simulated system, which can lead to artifacts when Ewald summation is used to treat the electrostatic interactions. 27,31 In our implementation of constant pH MD, we avoid this problem by introducing titratable buffers into the simulation box that compensate for the charge fluctuations of the titratable residues. 29 In the original implementation of constant pH MD in GROMACS, 10 the buffers were hydronium molecules that compensated for the overall charge fluctuations by changing their charge between 0 and +1 e. To prevent sampling charges beyond this interval, a biasing potential with steep edges at λ= 0 and 1 was introduced to restrict the range of λ-values. However, this potential still introduces additional forces at the edges of the λ-interval. To avoid the effects of such forces, we use a completely flat biasing potential for the buffers, also outside of the charge interval. Because changing the charge of a buffer particle in solution induces local rearrangements of the hydrogen-bonding network that in turn could affect the proton affinity of a nearby titratable group, we want to minimize the impact of charging the buffer particles. To determine the charge range in which the buffers do not cause significant hydrogen-bond network rearrangement, we ran AWH simulations with two ions, the charges of which are changed simultaneously in opposite directions (BUF2system). From the friction metric available in the AWH method, 50 we estimated the local diffusion coefficient, which is related to the efficiency of sampling: The higher the friction, the slower the dynamics and the more sampling is required to reach convergence. We calculated the friction coefficient (Figure 5A) for the coordinate associated with changing the charge on the buffer. For charges higher than 0.5 e, the friction was more than 50% higher than that for zero charges, reflecting longer correlation times and hence slower dynamics. We, therefore, conclude that the optimal range for the buffer charge is between −0.5 eand 0.5 e. The collective λ-coordinate of the buffer particles is not restricted to a fixed interval by a wall-like potential. To avoid the buffer charge exceeding the optimal range, multiple buffer particles are needed in the simulation box. The optimal number of buffers can be calculated based on the analysis of charge fluctuations performed by Donnini et al. 29 With a small charge, a buffer particle is apolar. To prevent clustering of such apolar particles in water, permeation into hydrophobic areas, such as membrane interiors, or interactions with the protein, the Lennard−Jones parameters (σand ϵ) of the buffers were chosen such that the buffers have only repulsive interactions with all other atoms, except water. After experimenting with the parameters for the buffer particles, we settled on a σof 0.25 nm and an ϵof 4 kJ mol−1. This choice leads to decreased clustering of buffers, low buffer concentrations in the proximity of titratable sites, and reduced penetration into hydrophobic regions (Figure 5). The resulting free energies of neutral buffer insertion into water and the hydrophobic region of the membrane are −2.09 ±0.07 and 1.2 ±0.6 kJ mol−1compared to 8.45 ±0.05 and 7.8 ±0.3 Figure 4. Quality of the VMM(λ) correction potential as a function of the order of the polynomial fit to ⟨∂V/∂λ⟩λfor Asp. (A) Fitting error as a function of fitting order (black line). Gray dashed line shows the average error in the calculated ⟨∂VMM/∂λ⟩. (B) Distributions of λ-coordinates for the thirdand seventh-order polynomial fits to ⟨∂V/∂λ⟩λ. Whereas with the lower order fit the distribution is significantly rugged, the distribution becomes nearly flat and uniform on the [0, 1] interval of the λ-coordinate if a seventh-order fit is used. Journal of Chemical Theory and Computation pubs.acs.org/JCTC Article https://doi.org/10.1021/acs.jctc.2c00517 J. Chem. Theory Comput. XXXX, XXX, XXX−XXX H