Skip to main content
Biophysical Reviews logoLink to Biophysical Reviews
. 2022 Dec 14;14(6):1503–1512. doi: 10.1007/s12551-022-01030-9

Use of multistate Bennett acceptance ratio method for free-energy calculations from enhanced sampling and free-energy perturbation

Yasuhiro Matsunaga 1, Motoshi Kamiya 2, Hiraku Oshima 3, Jaewoon Jung 4, Shingo Ito 5, Yuji Sugita 3,4,5,
PMCID: PMC9842838  PMID: 36659993

Abstract

Multistate Bennett acceptance ratio (MBAR) works as a method to analyze molecular dynamics (MD) simulation data after the simulations have been finished. It is widely used to estimate free-energy changes between different states and averaged properties at the states of interest. MBAR allows us to treat a wide range of states from those at different temperature/pressure to those with different model parameters. Due to the broad applicability, the MBAR equations are rather difficult to apply for free-energy calculations using different types of MD simulations including enhanced conformational sampling methods and free-energy perturbation. In this review, we first summarize the basic theory of the MBAR equations and categorize the representative usages into the following four: (i) perturbation, (ii) scaling, (iii) accumulation, and (iv) full potential energy. For each, we explain how to prepare input data using MD simulation trajectories for solving the MBAR equations. MBAR is also useful to estimate reliable free-energy differences using MD trajectories based on a semi-empirical quantum mechanics/molecular mechanics (QM/MM) model and ab initio QM/MM energy calculations on the MD snapshots. We also explain how to use the MBAR software in the GENESIS package, which we call mbar_analysis, for the four representative cases. The proposed estimations of free-energy changes and thermodynamic averages are effective and useful for various biomolecular systems.

Keywords: Multistate Bennett acceptance ratio, Umbrella sampling, Replica exchange molecular dynamics, Free-energy perturbation, Molecular dynamics, Enhanced conformational sampling, Free-energy calculation, QM/MM calculations

Introduction

Multistate Bennett acceptance method (MBAR) (Shirts and Chodera 2008) is widely used to estimate free energy changes between different states and thermodynamic averages at the states of interest using simulation trajectory data after the simulations have been finished. MBAR is an extension of Bennett’s acceptance ratio method (Bennett 1976) that was formulated for only two states to multiple states. Theoretically, the estimation using MBAR is superior to other estimators in that it has the lowest variance and is asymptotically unbiased (Shirts and Chodera 2008). MBAR can be interpreted as the limit of infinitesimal bin size in the weighted histogram analysis method (WHAM) (Kumar et al. 1992),(Souaille and Roux 2001),(Tan et al. 2012). It can avoid any biases introduced by the binning of trajectory data.

MBAR covers a broad range of applications where thermodynamic ensembles are required. They include the estimations of the free-energy differences including absolute/relative binding free-energy calculations (Chodera et al. 2011) and the ensemble averages including the potential of mean force (PMF) calculations from biased molecular dynamics (MD) trajectories, such as umbrella sampling (Torrie and Valleau 1977), or temperature replica-exchange MD (T-REMD) (Sugita and Okamoto 1999). Furthermore, MBAR has recently been applied to the rapid parameterization of all-atom force-field parameters (Messerly et al. 2018) and coarse-grained model parameters (Shinobu et al. 2019).

One of the practical difficulties in MBAR is to solve the nonlinear simultaneous equations numerically. This requires a sufficient memory capacity on the order of the square of the number of states multiplied by the number of samples. The computational complexity in solving the equations drastically increases with the number of states, which is a bottleneck in large-scale applications with MBAR. To solve this problem, Zhang et al. (2015) and Tan et al. (2016) proposed stochastic solvers, where locally weighted histogram analysis is used to approximate the global solution of the MBAR equations. Recently, Ding et al. developed a rapid solver inspired by the fact that the MBAR equations can be derived as a Rao-Blackwell estimator (Ding et al. 2019).

Another difficulty in using the MBAR equations is how to prepare the input data using different types of MD simulation trajectories. The MBAR equations require the potential energies and thermodynamic parameters of the system as input data. However, in many practical applications, it is often not necessary to use all the potential energy terms in the MBAR equations. For example, in the case of umbrella sampling (US), the potential energies of the system excluding the restraint energies are canceled out in the MBAR equations. The restraint energies alone are sufficient as input data. Another example is the case of MD simulations at constant volume, where pV terms can be canceled out; thus, it is not necessary for solving the MBAR equations. Because it is difficult for non-experts to recognize which terms can be canceled out, users may attempt to prepare whole system’s potential energies by themselves. This leads to tedious efforts in preparing unnecessary input data and limits the uses of the MBAR by non-expert users.

In this review, we summarize the basic theory of the MBAR equations and describe representative usages for different types of MD simulation trajectories, such as enhanced conformational sampling methods like umbrella sampling (US) (Torrie and Valleau 1977), temperature replica-exchange MD (T-REMD) (Sugita and Okamoto 1999), and replica exchange with solute tempering (REST/REST2/gREST) (Liu et al. 2005) (Wang et al. 2011) (Terakawa et al. 2011) (Kamiya and Sugita 2018), and free-energy perturbation (FEP) (Zwanzig 1954) (Tembre and Mc Cammon 1984) (Mey et al. 2020). MBAR is also useful for estimating more reliable free-energy changes using MD simulations based on semi-empirical quantum mechanics/molecular mechanics (QM/MM) and ab initio QM/MM calculations (Warshel and Levitt 1976) on the MD snapshots (Yagi et al. 2021). As examples, we present several computational results using the MBAR equations for free-energy estimator for simple biological systems. Finally, we will discuss our perspectives on free-energy estimation methods.

The classifications of MBAR applications

The MBAR equations

First, we define xΓ as the configurations of the target system to be simulated. Here, Γ is the configuration space. We also define that nx is the number of molecules of each of M components of the system, and μ is the vector of chemical potentials of the corresponding components. In the MBAR formulation, state i is specified by a combination of potential energy function Ui(x), inverse temperature βi, pressure pi, and/or chemical potential(s) μi, or their conjugate variables depending on the ensemble. Here, the inverse temperature βi, the pressure pi, and/or the chemical potential(s) μi are given as external parameters in the input of MD simulation. For example, the inverse temperature βi corresponds to that of the thermostat. Suppose that we obtain Ni uncorrelated samples in state i out of K states, and for each state i, Ui(x), βi, pi, and μi are defined. Then, the reduced potential energy ui(x) of state i is then defined by Shirts and Chodera (2008):

uix=βiUix+piVx+μiTnx 1

where n(x) are the numbers of molecules corresponding to the chemical potentials.

The dimensionless free energy of state i can be defined using the integral of the Boltzmann weight:

fi=-lne-uixdx 2

Note that the above equations can use arbitrary weights other than the Boltzmann factor. The free energy difference between two states, Δfij=fi-fj, is estimated using the MBAR equations as discussed below.

The MBAR equations give us the best estimator for free energy differences between different states from MD simulation data. Let xinn=1Ni be configurations sampled in state i, then the equations are given by:

f^i=-lnj=1Kn=1Njexp-uixjnk=1KNkexpf^k-ukxjn 3

Here, f^i are the solutions to the MBAR equations. f^i are determined up to an additive constant, so only their differences Δf^ij=f^i-f^j are meaningful. Since f^i is found on the right-hand side of Eq. (3) as well as the left-hand side, the equation is solved by self-consistent iterations or the Newton–Raphson method until the convergence of f^j. On the other hand, when the samples from different states do not have any overlaps in the configuration space, f^i in Eq. 3 fail to converge, or f^i could have large uncertainties even after convergence. The uncertainties can be estimated by the analytical equation (given in (Shirts and Chodera 2008)) or by using the bootstrap method or the block averaging method. When the hidden energy barriers exist in a full dimensional space, the uncertainty in f^i in the MBAR equation cannot decrease rapidly even with extended MD simulation trajectory data. To overcome this, better conformational sampling schemes applicable to higher dimensional spaces are necessary.

Once f^i is obtained, thermodynamic averages in the unsampled state can be calculated by “extrapolating” or “interpolating” the MBAR equations from the samples obtained in simulations with K states. Let utarget(x) be the reduced potential energy in the target state where the average Atarget of the physical quantity A(x) will be estimated. Atarget can be derived as follows:

Atarget=Axe-utarget(x)dxe-utarget(x)dx=exp-ftarget,Aexp-ftarget 4

Here, ftarget,A uses a non-Boltzmann weight because of the factor Ax. The estimates of the free energies, ftarget,Aftargetf^target,A, andf^target, can be obtained by solving the above MBAR equations by regarding the ensembles as (K + 1)-th and (K + 2)-th states with NK+1=0 and NK+2=0, respectively:

f^target=-lnj=1Kn=1Njexp-utargetxjnk=1KNkexpf^k-ukxjn 5
f^target,A=-lnj=1Kn=1NjAxjnexp-utargetxjnk=1KNkexpf^k-ukxjn 6

When the delta function (or indicator function) on order parameter(s) (or collective variable(s)) is used as the physical quantity A(x), then the PMF on those coordinate(s) can be obtained.

In principle, the MBAR equations can utilize the potential energy Ui(x), volume Vx, and other thermodynamic data as input data. However, evaluating the whole system’s potential energies for all combinations at different states is a time-consuming process. Obviously, some applications can simplify or skip this process. For this purpose, we categorize four major usages of the MBAR equations: (i) perturbation, (ii) scaling, (iii) accumulation, and (iv) full potential energy as shown in Fig. 1. In the following, we describe the reduced MBAR equations and input data for each case.

Fig. 1.

Fig. 1

Classifications of four major applications for the MBAR equations and the schemes from input data to output results

Perturbation: umbrella sampling

Here, we mean that “perturbation” is to add an additional term to the original potential energy that is used in MD simulations. Umbrella sampling (Torrie and Valleau 1977) imposes a restraint force(s) along collective variable(s) z(x) and is considered as a major example of “perturbation.” The potential energy used in umbrella sampling can be decomposed to Uix=Usystemx+Urestraintiz(x). Here, Usystemx is the potential energy from the system’s force-field shared at all the umbrella windows, and Urestraintiz(x) is a restraint energy for the i-th umbrella window. The quadratic form kiz(x)-ziref2 is usually used for Urestraintiz(x). In the context of umbrella sampling, states i in the MBAR analysis are specified by Urestraintiz(x). When Uix is used in the MBAR equations, the terms of Usystemx are canceled out, so only Urestraintiz(x) is needed as input. To simplify further, only ki, ziref, and z(xjn) are needed as the input data. The resulting MBAR equations for the (dimensionless) free energies of umbrella window systems are:

f^i=-lnj=1Kn=1Njexp-βUrestraintiz(xjn)k=1KNkexpf^k-βUrestraintkz(xjn)=-lnj=1Kn=1Njexp-βkiz(xjn)-ziref2k=1KNkexpf^k-βkkz(xjn)-zkref2 7

Typically, umbrella sampling aims to obtain the PMF force along z under the ensemble of the target state as the restraint-free state. In this case, utargetx=0 is used as the reduced energy, which can be calculated without further input data.

Scaling: temperature replica exchange MD

In “scaling,” a scaling of the original potential energy by a factor is applied in MD simulations. We here consider T-REMD as an example of “scaling.” In the context of T-REMD, states i in the MBAR analysis are specified by βi. The reduced potential energy used in T-REMD is uix=βiUsystemx, just a scaling of the original potential energy Usystemx. In this case, the resulting MBAR equation is:

f^i=-lnj=1Kn=1Njexp-βiUsystemxjnk=1KNkexpf^k-βkUsystemxjn 8

Here, βiUsystemxjn can be calculated by multiplying Usystemxjn by βi. Therefore, the only inputs required for the MBAR equations are the set of Usystemxjn and βi. For the calculation of thermodynamic averages or PMF, the target ensemble, i.e., utargetx=β1Usystemxjn, at the lowest temperature, β1. Note that making use of different temperatures like Eq. (8) using the WHAM instead of the MBAR requires an advanced reformulation of the WHAM theory, such as the parallel tempering WHAM (Chodera et al. 2007). Here, we assume the NVT ensemble, but in the NPT ensemble, we must also consider pV as the inputs (Paschek and García 2004) (Peter et al. 2016).

Accumulation: free-energy perturbation

“Accumulation” is defined as calculations that are accumulating or integrating the free energy difference between states. As a typical example of “accumulation,” we here consider free-energy perturbation (FEP) (Zwanzig 1954) (Tembre and McCammon 1984) (Mey et al. 2020), which is typically used to calculate the free energy difference in alchemical transformation. In FEP, multiple intermediate states are stratified with a one-dimensional control parameter λ (0λ1). By stratifying the start (λ=0) and end (λ=1) states, the distributions of reduced energies of neighboring states over λ can overlap with each other, resulting in more accurate estimates of the free-energy differences between neighboring states, Δfi,i+1. Theoretically, the free-energy difference between the start and end states is obtained by accumulating the neighboring differences, Δfstart,end=Δfi,i+1. In FEP, the potential energy is described by Ux;λi=1-λUstartx+λUend(x). In the context of FEP, states i in the MBAR analysis are specified by Ux;λi. In the MBAR analysis of FEP data, it is ideal to prepare the reduced energies for all combinations of stratified states uixjn, and to solve the full MBAR equations. However, for practical uses, it is often sufficient for keeping accuracy of the free-energy difference to care about the reduced energies only between neighboring states. It is thus not worth the cost to calculate the reduced energies for all combinations of the states (Paliwal and Shirts 2011). Also, the difference of the reduced energies between non-neighboring states often becomes too large, leading to the instability of energy calculations. In the case of scaling Lennard–Jones (LJ) interactions of a solute in water, the solute can overlap with water molecules in the end state (λ=0, i.e., the fully decoupled state of the solute). The reduced energy of the start state (λ=1; the fully coupled state of the solute) estimated using the configuration of the end state becomes infinite even though the soft-core modification (Beutler et al. 1994) (Zacharias et al. 1994, p.) is introduced into the LJ interactions.

In our framework, only the reduced energies of the neighboring states, i.e., uixin, ui+1xin, are used as input data. The free-energy differences between the neighboring states are accumulated to obtain the difference between the start and end states. In this sense, MBAR for “perturbation” is essentially the same framework as the original BAR.

Full potential energy: REST, parameter tuning, and others

The last case, “full potential energy,” needs the whole system’s potential energies for solving the MBAR equations. In this context, state i in the MBAR analysis is specified by the whole systems’ potential energy. In replica exchange with solute tempering (REST) (Liu et al. 2005), REST2 (Wang et al. 2011) (Terakawa et al. 2011), and gREST (Kamiya and Sugita 2018), solute molecules, such as proteins or ligands (in REST/REST2), or part of solute molecules with full or partial potential energies (in gREST) are scaled as a solute region. In REST/REST2/gREST simulations, the solute region in each replica has a different temperature, while the temperatures in the solvent region in all replicas are the same, for instance, room temperature. Although only the scaled terms can be given to the MBAR equations ignoring the other canceling terms, most MD software does not write specific terms of the potential energy by default, but evaluates potential energies from updated parameters of the solute region. Thus, in terms of computational cost, there is no difference in preparing the potential energy for the entire system or the specific scaled terms. Another example is the tuning of force field parameters or model parameters (Messerly et al. 2018)(Shinobu et al. 2019). Since parameters affect the total energy in a complicated way, we need to prepare the potential energies of all the replicas in the whole system. In the case of parameter tuning, parameter sets, which have not yet been sampled, are used as the target state of the MBAR for predicting the behavior of new parameter sets.

Further complicated yet important case is a combination of umbrella sampling (perturbed case) and different potential energy functions (case of full potential energy) in hybrid quantum mechanics/molecular mechanic (QM/MM) calculations (Warshel and Levitt 1976) (Yagi et al. 2021). In the MBAR analysis using the QM/MM data, it is possible to reweight samples obtained by low-level theory (LL, e.g., classical force field or semi-empirical QM) with the energies of high-level theory (HL, e.g., ab initio QM) and obtain more accurate PMF. Because the computational cost of MD simulations with HL is far greater than with that with LL, various methods have been proposed to correct LL data with HL calculations as post-processing (Yagi et al. 2021). LL calculation is often conducted with umbrella sampling along a reaction coordinate z(x). Then, the total potential energy of the LL with umbrella window becomes Uix=UsystemLLx+Urestraintz(x). The target potential energy is the potential energy of the HL system without restraint potential, utargetx=UsystemHLx. The required input data are the potential energies of the LL UsystemLLxn and HL UsystemHLxn, and the restraint energies Urestraintiz(xn). The resulting MBAR equations are:

f^i=-lnj=1Kn=1Njexp-βiUsystemHLxjnk=1KNkexpf^k-βkUsystemLLxjn+Urestraintkxjn 9

Implementation

Based on the above classifications, we implemented a MBAR code, which we call mbar_analysis in the GENESIS software package (Jung et al. 2015) (Kobayashi et al. 2017). The implemented code preprocesses the input data for each one of the above classifications, and the input formats are thus simplified as much as possible. The code calls a common MBAR equation solver to estimate free-energy differences. The solver was implemented by combining a simple self-consistent iteration with the Newton–Raphson method. The calculation of the denominator of the MBAR equation was parallelized with multi-threads, resulting in a faster execution than the reference MBAR implementation, PyMBAR (Shirts and Chodera 2008). After obtaining the estimates, it gives us the free-energy difference, weights, and PMF according to the input parameters. The code was implemented in FORTRAN.

Demonstration of MBAR analysis using mbar_analysis

Test simulation systems

We first demonstrate the MBAR analysis in the case of “perturbation” using alanine-tripeptide in vacuum as a target molecule. Using CHARMM36m force field (Huang et al. 2017), the umbrella sampling simulation was performed with GENESIS atdyn (Jung et al. 2015), (Kobayashi et al. 2017). The ω angle values were increased by 3 degrees between the centers of neighboring windows, resulting in 61 windows to investigate ω angle values from 0 to 180. A spring constant of 200 kcal/mol/rad2 was applied. Temperature was controlled at 300 K by the stochastic velocity scaling method (Bussi et al. 2007). Long-range electrostatic interactions were treated without cutoff. Instantaneous ω angles corresponding to z(xjn) in the MBAR equations were extracted from the trajectory data with trj_convert tool in GENESIS. Extracted angle values, the spring constants, and the window centers were used as the input of the MBAR. For reference, the same calculation was performed with the WHAM implemented as wham_analysis tool in GENESIS.

To demonstrate the MBAR analysis of T-REMD data, we performed a T-REMD simulation of alanine-tripeptide in solution. The initial structures and parameters are the same as those used in GENESIS tutorials (https://www.r-ccs.riken.jp/labs/cbrt/tutorials2022/). We calculated the potential of mean force (PMF) in the ϕ and ψ dihedral angle space. Using CHARMM36 force field (Huang and MacKerell 2013) and TIP3P water molecules (Jorgensen et al. 1983), the simulation was performed with GENESIS spdyn. In MD, electrostatic interactions were treated by the smooth Particle Mesh Ewald (Essmann et al. 1995), and covalent bonds containing hydrogen atoms were constrained by the SHAKE (Ryckaert et al. 1977) or SETTLE (Miyamoto and Kollman 1992) algorithms. The temperature was controlled by the stochastic velocity scaling method (Bussi et al. 2007). These methods were kept in other applications. The system’s potential energy was extracted from the MD log file and sorted from replica-ID data to temperature-ID data by using remd_convert tool in GENESIS. Then, they were used as the input together with the temperatures of the replicas for the MBAR. Also, the dihedral angles ϕ and ψ were extracted (with trj_convert tool) from the trajectory data and used as the input to calculate PMF at 300 K. We compared PMF using the trajectory only at 300 K with that of all temperature trajectories reweighted using MBAR.

For a demonstration of the “accumulation” case, we calculated a mutation from the amino-acid side-chain analogue of Val to that of Trp in water. Twenty strata were used to divide λ into equal intervals from λ=0 to λ=1, and FEP was performed. Using CHARMM36 force field and TIP3P water model, the simulation was performed with the FEP implementation (Oshima et al. 2020) in GENESIS spdyn. To remove the instability of MD simulations near end states, the soft-core treatment is introduced to the LJ and electrostatic potentials (Zacharias et al. 1994) (Steinbrecher et al. 2011). The reduced energies of the neighboring states, i.e., ui-1xin, uixin, ui+1xin were generated with GENESIS spdyn, and they were used as the input for the MBAR analysis.

As a demonstration of a case of “full potential energy,” gREST of alanine-tripeptide in water (taken from GENESIS tutorials) was performed using four replicas of alanine-tripeptide as solute and temperature control by scaling all potential energy terms. Using CHARMM36 force field and TIP3P water model, the simulation was performed with GENESIS spdyn. The potential energies required in MBAR were generated using the optional function of GENESIS spdyn. The potential energy data of replicas were sorted from replica-ID data to temperature-ID data using remd_convert tool of GENESIS. We calculated PMF along the distance between the terminal residues (an oxygen of the ALA1 and a hydrogen of ALA3). We compared PMF using the trajectory at 300 K with that of all replicas’ trajectories reweighted by the MBAR.

Finally, as a demonstration of QM/MM with umbrella sampling MD simulation (QM/MM-US-MD), QM/MM-US-MD of malonaldehyde (MA) and p-Nitrophenyl phosphate (pNPP2−) were performed at the third-order extension Self-Consistent-Charge Density Functional Tight-Binding level (Gaus et al. 2011, p. 3). MA and pNPP2− are encapsulated in a TP3P water sphere with a radius of 20 Å. The reaction coordinate for MA is a linear combination of two distances between atoms involved in the proton transfer reaction. The reaction coordinate for pNPP2− is the P-O distance involved in hydrolysis (Fig. 3a and b).

Fig. 3.

Fig. 3

Simulation system and result of QM/MM with umbrella sampling simulations. a The malonaldehyde is located at the center of the water droplet. b The pNPP2− is located at the center of the water droplet. The collective variables used in the umbrella sampling are indicted in the figure. c The potential of mean force (PMF) of the malonaldehyde obtained by DFTB (red line), DFT (blue line), and re-weighted with the MBAR (black dotted line). d PMF of the pNPP2−

For MA, MD calculations were performed for 200 ps at 300 K using a spring constant of 40 kcal/mol/rad2 in 21 umbrella windows centered along the reaction coordinate increased from − 1.0 to 1.0 at 0.1 Å intervals. For pNPP2−, MD calculations were performed for 500 ps at 300 K using a spring constant of 300 kcal/mol/rad2 in 18 umbrella windows centered along the reaction coordinate increased from − 1.4 to 3.1 at 0.1 Å intervals. The 3ob (ophyd) parameter (Gaus et al. 2013)(Gaus et al. 2014) was used as the Slater-Koster parameter, and CHARMM36m (Huang et al. 2017) and CGenFF (Vanommeslaeghe et al. 2009) (Yu et al. 2012) were used as the classical force fields. For reweighting with MBAR, potential energies were evaluated by single-point energy calculation for 2000 and 5000 samples for MA and pNPP2- at the density functional theory (DFT) level using B3LYP/cc-pvdz (Lee et al. 1988) (Becke 1993) (Grimme et al. 2010) (Dunning 1989), respectively. DFTB and DFT calculations were performed using QSimulate (https://qsimulate.com), a fast quantum computation program package, in combination with GENESIS atdyn (Yagi et al. 2021).

Demonstrations of mbar_analysis

Figure 2A shows the inputs required for the MBAR analysis and the results of the umbrella sampling of alanine-tripeptide in vacuum. As explained above, the only inputs required for umbrella sampling are the collective variable trajectories of umbrellas, z(xjn), the window centers, and the spring constants. Restraint energies, Urestraint,ixjn, required in the MBAR equations, are calculated internally and passed to the solver. In the PMF calculation with WHAM, the density of states is calculated after making the histogram of the trajectories, whereas in the MBAR, the density of states for each z is calculated after the weight of each sample point. Therefore, theoretically, MBAR can prevent any biases due to convolutions.

Fig. 2.

Fig. 2

Results of the MBAR analysis for four cases of our classification. a Potential of mean force (PMF) along ω dihedral angle of alanine-tripeptide in vacuum. The results of MBAR and WHAM are indicated by red solid line and blue dashed lines, respectively. b PMF in ϕ and ψ dihedral angles of alanine-tripeptide in water. The PMF calculated only from the trajectory of 300 K and all trajectories reweighted by the MBAR are shown. The region of the left-handed helix is indicted by red arrow. c Free-energy differences upon the mutation from the amino-acid side-chain analogue of Val to that of Trp as a function of λ, calculated by free-energy perturbation method. The shaded region indicates the uncertainties estimated by block averaging. EXP means the exponential averaging. d PMF along the distance between the terminal residues of alanine-tripeptide in water, calculated by gREST simulation. The PMF calculated only from the trajectory of 300 K and all trajectories reweighted by the MBAR are shown

Figure 2b shows the inputs required for the subsequent MBAR analysis and the results of the T-REMD of alanine-tripeptide in water. As explained above, the only inputs required for T-REMD are the potential energies of sorted replicas and temperatures. The reduced energies βiUsystemxjn, required in the MBAR equations, are calculated internally and passed to the solver. Comparing the PMF obtained from only the lowest temperature 300 K trajectory with that weighted all replica trajectories with MBAR, the left-handed helix state is well captured in MBAR. This is because the left-handed helix sampled at high temperature is not discarded but treated as the weighted samples by the MBAR.

Figure 2c shows the inputs required in the subsequent MBAR analysis and the results of the alchemical FEP from Val to Trp in water. As explained above, the only input required for FEP is the potential energies of the neighboring states. Our MBAR tool integrates the free-energy difference between the neighboring states to obtain the total difference between the start and end states. Inside the program, the MBAR equation for two states is called repeatedly. The free energy difference between Val and Trp shown in Fig. 2c is comparable with the exponential averaging, and matched with the result obtained with NAMD (Liu et al. 2012), indicating that the potential energy difference from the distant state is not contributing. This is also consistent with the result of the exhaustive FEP benchmarks by Paliwal and Shirts (2011), where they showed that MBAR and BAR have comparative accuracies for many FEP data analyses.

Figure 2d shows the results of gREST for alanine-tripeptide in water and the inputs required in the MBAR analysis. The reduced energies required for MBAR were generated with GENESIS spdyn during the simulations. As shown in the figure, the potential energies with all scaling values are required as input for the MBAR analysis. Figure 2d compares the PMF at the lowest temperature (i.e., scaling factor) trajectory with that using MBAR. The figure shows that the PMF using MBAR well captures the stable conformations indicated at the lower PMF values compared to the PMF values using a single trajectory at 300 K.

Figure 3c and d shows the PMF obtained in DFTB, DFT, and reweighted PMF with MBAR. A total of 10 ps (10,000 MD steps) equilibration followed by 20 ps (20,000 MD steps) US-MD calculations were performed in MA and pNPP2− to obtain PMF at the DFT level. In both systems, the PMF obtained from the DFT-level calculation and the PMF obtained from the reweighting are in good agreement. The computational cost for reweighting was 6.7% for MA (16.7% for pNPP2−) of the 30,000 MD steps of the brute-force DFT-US-MD calculation (only 2000 samples were reweighted for MA, and 5000 samples were reweighted for pNPP2−). Furthermore, as only the potential energy is required for reweighting, the gradient calculation can be omitted, further reducing the actual computational cost.

Discussion

MBAR is a very flexible method, which can handle various states, ranging from different temperature/pressure conditions to different force field parameters. On the other hand, this flexibility sometimes requires complicated inputs, even for straightforward analyses such as umbrella sampling. In this review, we classified typical applications of MBAR and simplifying input data for practical usages. Our classification would help non-expert users to apply the MBAR analysis to obtain unbiased thermodynamic data from biased MD simulation trajectories.

One important future application of MBAR would be feedback to simulation models, as shown by Messerly et al. (2018) and Shinobu et al. (2019). Since MBAR extrapolates and estimates statistics on parameter sets that have not yet been sampled, it helps us to optimize the parameters of the simulation model. When the number of parameters to be optimized is large, grid search becomes difficult even with the help of the MBAR equations. In this case, as recently shown by Wieder et al. (2021), by making the outputs of the MBAR equations differentiable with respect to potential energies and their force field parameters, efficient gradient search can be performed. It is actually similar to the training of neural network model parameters. On the other hand, the limitation of MBAR in terms of feedback to the simulation model is that the MBAR is just an estimator; thus, it can only estimate free-energy differences or the averaged data. Recent deep learning technologies are also flexible, and they can directly use modeling of the conformational density of molecules as well as statistical averages. For example, Wang et al. recently succeeded in modeling conformational density from various temperature trajectories obtained by T-REMD using a diffusion model in which temperature is incorporated as one of the random variables (Wang et al. 2022). If it becomes possible to model the density and the uncertainty of parameters and conformations with these technologies, more efficient optimization will be possible in combination with MBAR.

Acknowledgements

We thank Chigusa Kobayashi for her helpful comments on this work. We also thank the authors of GENESIS tutorials. Some simulation systems in this work were taken from the tutorials.

Author contribution

Yasuhiro Matsunaga and Yuji Sugita contributed to the study conception and design. Software was developed by Yasuhiro Matsunaga, Motoshi Kamiya, and Jaewoon Jung. Data collection and analysis were performed by Yasuhiro Matsunaga, Motoshi Kamiya, Hiraku Oshima, and Shingo Ito. The first draft of the manuscript was written by Yasuhiro Matsunaga and Yuji Sugita, and all authors commented on previous versions of the manuscript. All authors read and approved the final manuscript.

Funding

This work was supported by MEXT as “Program for Promoting Researches on the Supercomputer Fugaku” (biomolecular dynamics in a living cell, grant number: JPMXP1020200101 to Y.S. and Y.M.), JSPS KAKENHI (grant numbers: 20K21380 (to Y.M.), 19H05645, 21H05249 (to Y.S.), 21H05282 (to J.J.).), and the Cooperative Research Program of “Network Joint Research Center for Materials and Devices” (to Y.M.). We used the computational resources provided by the HPCI system research project (Project ID: hp200135, hp210177, and hp220170) and those in RIKEN Hokusai “BigWaterFall.”

Data availability

The developed code has been released to the public as one of the analysis tools (called mbar_analysis) of MD simulation software GENESIS (Jung et al. 2015) (Kobayashi et al. 2017). This software is freely available from https://www.r-ccs.riken.jp/labs/cbrt/. The inputs used in the calculations in this review are available at https://github.com/matsunagalab/paper_mbar, except for the inputs for the QM/MM simulations, which are available from the authors upon reasonable request.

Declarations

Ethics approval

This work does not contain any human or animal subjects.

Consent to participate

This work does not contain any human or animal subjects.

Consent for publication

This work does not contain any individual person’s data in any form.

Competing interests.

The authors declare no competing interests.

Footnotes

Publisher's note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

References

  1. Becke AD. Density-functional thermochemistry. III. The role of exact exchange. J Chem Phys. 1993;98:5648–5652. doi: 10.1063/1.464913. [DOI] [Google Scholar]
  2. Bennett CH. Efficient estimation of free energy differences from Monte Carlo data. J Comput Phys. 1976;22:245–268. doi: 10.1016/0021-9991(76)90078-4. [DOI] [Google Scholar]
  3. Beutler TC, Mark AE, van Schaik RC, et al. Avoiding singularities and numerical instabilities in free energy calculations based on molecular simulations. Chem Phys Lett. 1994;222:529–539. doi: 10.1016/0009-2614(94)00397-1. [DOI] [Google Scholar]
  4. Bussi G, Donadio D, Parrinello M. Canonical sampling through velocity rescaling. J Chem Phys. 2007;126:014101. doi: 10.1063/1.2408420. [DOI] [PubMed] [Google Scholar]
  5. Chodera JD, Swope WC, Pitera JW, et al. Use of the weighted histogram analysis method for the analysis of simulated and parallel tempering simulations. J Chem Theory Comput. 2007;3:26–41. doi: 10.1021/ct0502864. [DOI] [PubMed] [Google Scholar]
  6. Chodera JD, Mobley DL, Shirts MR, et al. Alchemical free energy methods for drug discovery: progress and challenges. Curr Opin Struct Biol. 2011;21:150–160. doi: 10.1016/j.sbi.2011.01.011. [DOI] [PMC free article] [PubMed] [Google Scholar]
  7. Ding X, Vilseck JZ, Brooks CL. Fast solver for large scale multistate Bennett acceptance ratio equations. J Chem Theory Comput. 2019;15:799–802. doi: 10.1021/acs.jctc.8b01010. [DOI] [PMC free article] [PubMed] [Google Scholar]
  8. Dunning TH. Gaussian basis sets for use in correlated molecular calculations. I. The atoms boron through neon and hydrogen. J Chem Phys. 1989;90:1007–1023. doi: 10.1063/1.456153. [DOI] [Google Scholar]
  9. Essmann U, Perera L, Berkowitz ML, et al. A smooth particle mesh Ewald method. J Chem Phys. 1995;103:8577–8593. doi: 10.1063/1.470117. [DOI] [Google Scholar]
  10. Gaus M, Cui Q, Elstner M. DFTB3: extension of the self-consistent-charge density-functional tight-binding method (SCC-DFTB) J Chem Theory Comput. 2011;7:931–948. doi: 10.1021/ct100684s. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Gaus M, Goez A, Elstner M. Parametrization and benchmark of DFTB3 for organic molecules. J Chem Theory Comput. 2013;9:338–354. doi: 10.1021/ct300849w. [DOI] [PubMed] [Google Scholar]
  12. Gaus M, Lu X, Elstner M, Cui Q. Parameterization of DFTB3/3OB for sulfur and phosphorus for chemical and biological applications. J Chem Theory Comput. 2014;10:1518–1537. doi: 10.1021/ct401002w. [DOI] [PMC free article] [PubMed] [Google Scholar]
  13. Grimme S, Antony J, Ehrlich S, Krieg H. A consistent and accurate ab initio parametrization of density functional dispersion correction (DFT-D) for the 94 elements H-Pu. J Chem Phys. 2010;132:154104. doi: 10.1063/1.3382344. [DOI] [PubMed] [Google Scholar]
  14. Huang J, MacKerell AD. CHARMM36 all-atom additive protein force field: validation based on comparison to NMR data. J Comput Chem. 2013;34:2135–2145. doi: 10.1002/jcc.23354. [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Huang J, Rauscher S, Nawrocki G, et al. CHARMM36m: an improved force field for folded and intrinsically disordered proteins. Nat Methods. 2017;14:71–73. doi: 10.1038/nmeth.4067. [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Jorgensen WL, Chandrasekhar J, Madura JD, et al. Comparison of simple potential functions for simulating liquid water. J Chem Phys. 1983;79:926–935. doi: 10.1063/1.445869. [DOI] [Google Scholar]
  17. Jung J, Mori T, Kobayashi C, et al. GENESIS: a hybrid-parallel and multi-scale molecular dynamics simulator with enhanced sampling algorithms for biomolecular and cellular simulations: GENESIS. Wiley Interdiscip Rev Comput Mol Sci. 2015;5:310–323. doi: 10.1002/wcms.1220. [DOI] [PMC free article] [PubMed] [Google Scholar]
  18. Kamiya M, Sugita Y. Flexible selection of the solute region in replica exchange with solute tempering: application to protein-folding simulations. J Chem Phys. 2018;149:072304. doi: 10.1063/1.5016222. [DOI] [PubMed] [Google Scholar]
  19. Kobayashi C, Jung J, Matsunaga Y, et al. GENESIS 1.1: A hybrid-parallel molecular dynamics simulator with enhanced sampling algorithms on multiple computational platforms. J Comput Chem. 2017;38:2193–2206. doi: 10.1002/jcc.24874. [DOI] [PubMed] [Google Scholar]
  20. Kumar S, Rosenberg JM, Bouzida D, et al. The weighted histogram analysis method for free-energy calculations on biomolecules. I the Method J Comput Chem. 1992;13:1011–1021. doi: 10.1002/jcc.540130812. [DOI] [Google Scholar]
  21. Lee C, Yang W, Parr RG. Development of the Colle-Salvetti correlation-energy formula into a functional of the electron density. Phys Rev B. 1988;37:785–789. doi: 10.1103/PhysRevB.37.785. [DOI] [PubMed] [Google Scholar]
  22. Liu P, Kim B, Friesner RA, Berne BJ. Replica exchange with solute tempering: a method for sampling biological systems in explicit water. Proc Natl Acad Sci. 2005;102:13749–13754. doi: 10.1073/pnas.0506346102. [DOI] [PMC free article] [PubMed] [Google Scholar]
  23. Liu P, Dehez F, Cai W, Chipot C. A toolkit for the analysis of free-energy perturbation calculations. J Chem Theory Comput. 2012;8:2606–2616. doi: 10.1021/ct300242f. [DOI] [PubMed] [Google Scholar]
  24. Messerly RA, Razavi SM, Shirts MR. Configuration-sampling-based surrogate models for rapid parameterization of non-bonded interactions. J Chem Theory Comput. 2018;14:3144–3162. doi: 10.1021/acs.jctc.8b00223. [DOI] [PubMed] [Google Scholar]
  25. Mey ASJS, Allen BK, Bruce Macdonald HE, et al (2020) Best practices for alchemical free energy calculations [Article v1.0]. Living J Comput Mol Sci 2:. 10.33011/livecoms.2.1.18378 [DOI] [PMC free article] [PubMed]
  26. Miyamoto S, Kollman PA. Settle: an analytical version of the SHAKE and RATTLE algorithm for rigid water models. J Comput Chem. 1992;13:952–962. doi: 10.1002/jcc.540130805. [DOI] [Google Scholar]
  27. Oshima H, Re S, Sugita Y. Prediction of protein–ligand binding pose and affinity using the gREST+FEP method. J Chem Inf Model. 2020;60:5382–5394. doi: 10.1021/acs.jcim.0c00338. [DOI] [PubMed] [Google Scholar]
  28. Paliwal H, Shirts MR. A benchmark test set for alchemical free energy transformations and its use to quantify error in common free energy methods. J Chem Theory Comput. 2011;7:4115–4134. doi: 10.1021/ct2003995. [DOI] [PubMed] [Google Scholar]
  29. Paschek D, García AE. Reversible temperature and pressure denaturation of a protein fragment: a replica exchange molecular dynamics simulation study. Phys Rev Lett. 2004;93:238105. doi: 10.1103/PhysRevLett.93.238105. [DOI] [PubMed] [Google Scholar]
  30. Peter EK, Pivkin IV, Shea J-E. A canonical replica exchange molecular dynamics implementation with normal pressure in each replica. J Chem Phys. 2016;145:044903. doi: 10.1063/1.4958325. [DOI] [PubMed] [Google Scholar]
  31. Ryckaert J-P, Ciccotti G, Berendsen HJC. Numerical integration of the cartesian equations of motion of a system with constraints: molecular dynamics of n-alkanes. J Comput Phys. 1977;23:327–341. doi: 10.1016/0021-9991(77)90098-5. [DOI] [Google Scholar]
  32. Shinobu A, Kobayashi C, Matsunaga Y, Sugita Y. Building a macro-mixing dual-basin Gō model using the Multistate Bennett Acceptance Ratio. Biophys Physicobiology. 2019;16:310–321. doi: 10.2142/biophysico.16.0_310. [DOI] [PMC free article] [PubMed] [Google Scholar]
  33. Shirts MR, Chodera JD. Statistically optimal analysis of samples from multiple equilibrium states. J Chem Phys. 2008;129:124105. doi: 10.1063/1.2978177. [DOI] [PMC free article] [PubMed] [Google Scholar]
  34. Souaille M, Roux B. Extension to the weighted histogram analysis method: combining umbrella sampling with free energy calculations. Comput Phys Commun. 2001;135:40–57. doi: 10.1016/S0010-4655(00)00215-0. [DOI] [Google Scholar]
  35. Steinbrecher T, Joung I, Case DA. Soft-core potentials in thermodynamic integration: comparing one- and two-step transformations. J Comput Chem. 2011;32:3253–3263. doi: 10.1002/jcc.21909. [DOI] [PMC free article] [PubMed] [Google Scholar]
  36. Sugita Y, Okamoto Y. Replica-exchange molecular dynamics method for protein folding. Chem Phys Lett. 1999;314:141–151. doi: 10.1016/S0009-2614(99)01123-9. [DOI] [Google Scholar]
  37. Tan Z, Gallicchio E, Lapelosa M, Levy RM. Theory of binless multi-state free energy estimation with applications to protein-ligand binding. J Chem Phys. 2012;136:144102. doi: 10.1063/1.3701175. [DOI] [PMC free article] [PubMed] [Google Scholar]
  38. Tan Z, Xia J, Zhang BW, Levy RM. Locally weighted histogram analysis and stochastic solution for large-scale multi-state free energy estimation. J Chem Phys. 2016;144:034107. doi: 10.1063/1.4939768. [DOI] [PMC free article] [PubMed] [Google Scholar]
  39. Tembre BL, Mc Cammon JA. Ligand-receptor interactions. Comput Chem. 1984;8:281–283. doi: 10.1016/0097-8485(84)85020-2. [DOI] [Google Scholar]
  40. Terakawa T, Kameda T, Takada S. On easy implementation of a variant of the replica exchange with solute tempering in GROMACS. J Comput Chem. 2011;32:1228–1234. doi: 10.1002/jcc.21703. [DOI] [PubMed] [Google Scholar]
  41. Torrie GM, Valleau JP. Nonphysical sampling distributions in Monte Carlo free-energy estimation: umbrella sampling. J Comput Phys. 1977;23:187–199. doi: 10.1016/0021-9991(77)90121-8. [DOI] [Google Scholar]
  42. Vanommeslaeghe K, Hatcher E, Acharya C, et al. CHARMM general force field: a force field for drug-like molecules compatible with the CHARMM all-atom additive biological force fields. J Comput Chem NA-NA. 2009 doi: 10.1002/jcc.21367. [DOI] [PMC free article] [PubMed] [Google Scholar]
  43. Wang L, Friesner RA, Berne BJ. Replica exchange with solute scaling: a more efficient version of replica exchange with solute tempering (REST2) J Phys Chem B. 2011;115:9431–9438. doi: 10.1021/jp204407d. [DOI] [PMC free article] [PubMed] [Google Scholar]
  44. Wang Y, Herron L, Tiwary P. From data to noise to data for mixing physics across temperatures with generative artificial intelligence. Proc Natl Acad Sci. 2022;119:e2203656119. doi: 10.1073/pnas.2203656119. [DOI] [PMC free article] [PubMed] [Google Scholar]
  45. Warshel A, Levitt M. Theoretical studies of enzymic reactions: dielectric, electrostatic and steric stabilization of the carbonium ion in the reaction of lysozyme. J Mol Biol. 1976;103:227–249. doi: 10.1016/0022-2836(76)90311-9. [DOI] [PubMed] [Google Scholar]
  46. Wieder M, Fass J, Chodera JD (2021) Teaching free energy calculations to learn from experimental data. Biophysics
  47. Yagi K, Ito S, Sugita Y. Exploring the minimum-energy pathways and free-energy profiles of enzymatic reactions with QM/MM calculations. J Phys Chem B. 2021;125:4701–4713. doi: 10.1021/acs.jpcb.1c01862. [DOI] [PMC free article] [PubMed] [Google Scholar]
  48. Yu W, He X, Vanommeslaeghe K, MacKerell AD. Extension of the CHARMM general force field to sulfonyl-containing compounds and its utility in biomolecular simulations. J Comput Chem. 2012;33:2451–2468. doi: 10.1002/jcc.23067. [DOI] [PMC free article] [PubMed] [Google Scholar]
  49. Zacharias M, Straatsma TP, McCammon JA. Separation-shifted scaling, a new scaling method for Lennard-Jones interactions in thermodynamic integration. J Chem Phys. 1994;100:9025–9031. doi: 10.1063/1.466707. [DOI] [Google Scholar]
  50. Zhang BW, Xia J, Tan Z, Levy RM (2015) A stochastic solution to the unbinned WHAM equations. J Phys Chem Lett 7 [DOI] [PMC free article] [PubMed]
  51. Zwanzig RW. High-temperature equation of state by a perturbation method. I Nonpolar Gases J Chem Phys. 1954;22:1420–1426. doi: 10.1063/1.1740409. [DOI] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

The developed code has been released to the public as one of the analysis tools (called mbar_analysis) of MD simulation software GENESIS (Jung et al. 2015) (Kobayashi et al. 2017). This software is freely available from https://www.r-ccs.riken.jp/labs/cbrt/. The inputs used in the calculations in this review are available at https://github.com/matsunagalab/paper_mbar, except for the inputs for the QM/MM simulations, which are available from the authors upon reasonable request.


Articles from Biophysical Reviews are provided here courtesy of Springer

RESOURCES