Ammm:Umbrella sampling and WHAM: Difference between revisions
| Line 21: | Line 21: | ||
*This method demands post-processing to remove the effects of bias potential. | *This method demands post-processing to remove the effects of bias potential. | ||
==<span style="background-color: rgb(192, 192, 192);"> </span> Weighted ensemble == | ==<span style="background-color: rgb(192, 192, 192);"> </span> Weighted ensemble == | ||
The original ensemble | The original ensemble can be modified by using a weight function. The weight function should be positive here. | ||
:<math><exp(-\beta \Delta U)>_{0}= \frac{\int\, exp(-\beta \Delta U) exp(-\beta \Delta U_{0}) dx} {\int\, exp(-\beta \Delta U_{0}) dx} </math> | :<math><exp(-\beta \Delta U)>_{0}= \frac{\int\, exp(-\beta \Delta U) exp(-\beta \Delta U_{0}) dx} {\int\, exp(-\beta \Delta U_{0}) dx} </math> | ||
:<math><exp(-\beta \Delta U)>_{0}= \frac{\int\, exp(-\beta \Delta U) w w^{-1} exp(-\beta \Delta U_{0}) dx} {\int\, exp(-\beta \Delta U_{0}) w w^{-1} dx}=\frac{<w^{-1} exp(-\beta \Delta U)>_{w}} {<w^{-1}>_{w}}</math> | :<math><exp(-\beta \Delta U)>_{0}= \frac{\int\, exp(-\beta \Delta U) w w^{-1} exp(-\beta \Delta U_{0}) dx} {\int\, exp(-\beta \Delta U_{0}) w w^{-1} dx}=\frac{<w^{-1} exp(-\beta \Delta U)>_{w}} {<w^{-1}>_{w}}</math> | ||
| Line 28: | Line 28: | ||
To reflect the connection between bias potential and the weight function, we can represent the weight function as an exponential form: <math>w=exp(-\beta V)</math>, where <math>V</math> means the bias potential. | To reflect the connection between bias potential and the weight function, we can represent the weight function as an exponential form: <math>w=exp(-\beta V)</math>, where <math>V</math> means the bias potential. | ||
:<math><exp(-\beta \Delta U)>_{0}=\frac{<exp(\beta V) exp(-\beta \Delta U)>_{w}} {<exp(\beta V)>_{w}}</math> | :<math><exp(-\beta \Delta U)>_{0}=\frac{<exp(\beta V) exp(-\beta \Delta U)>_{w}} {<exp(\beta V)>_{w}}</math> | ||
== <span style="background-color: rgb(192, 192, 192);"> </span>Free energy calculation == | == <span style="background-color: rgb(192, 192, 192);"> </span>Free energy calculation == | ||
After defining a collective variable (CV) <math>\xi</math>, we can calculate the free energy at any point along the direction of CV by using the probability distribution function. | After defining a collective variable (CV) <math>\xi</math>, we can calculate the free energy at any point along the direction of CV by using the probability distribution function. | ||
Revision as of 17:12, 3 August 2022
Reaction Coordinate
- A reaction coordinate is an abstract one-dimensional coordinate which represents progress along a reaction pathway.
- Real coordinate system: bond length, bond angle, torsion
- Non geometric parameters: bond order, Hydrogen bonds, RMSD
- Reaction coordinates are often plotted against free energy to demonstrate in some schematic form the potential energy profile associated to the reaction.
Umbrella Sampling (US)
Umbrella sampling is a method in computational physics and chemistry, which can enhance the sampling of different systems when it is hard to realize ergodicity due to the energy landscape. It involves the importance sampling in statistical mechanics and was first recommended by Torrie and Valleau in 1977[1].In many cases, the configuration space may have multiple high-energy barriers which are hard to conquer in the limited simulation time with common molecular dynamics (MD). Therefore, it is of high probability that the trajectory is trapped in the local minimum (local state) and leaves other inaccessible important states unsampled. In order to remove the impact of the energy barriers (activation case), the researchers can chosose the umbrella sampling (US) to bridge the gap between different configuration states by adding an extra bias potential. This bias potential should cancel out the influence of these energy barriers so that the energy landscape will become more smooth, making it easier to reach other states.
Why do we need biased potential?
Features of method
- Pre-determined collective variables are required to describe the configuration space related to reaction.
- The target of this method is to handle activation problems in sampling, where high energy barriers can be smoothened by adding extra bias potential. (Convert activation into diffusion)
- The extra bias potential causes the loss of temporal properties.
- This method supports parallel MD simulations with different bias potentials at the same time so that computational cost is reduced.
- This method demands post-processing to remove the effects of bias potential.
Weighted ensemble
The original ensemble can be modified by using a weight function. The weight function should be positive here.
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle <exp(-\beta \Delta U)>_{0}= \frac{\int\, exp(-\beta \Delta U) exp(-\beta \Delta U_{0}) dx} {\int\, exp(-\beta \Delta U_{0}) dx} }
In the equation above, the denotes the weighted ensemble average and the probability distribution function can be shown as:
To reflect the connection between bias potential and the weight function, we can represent the weight function as an exponential form: , where means the bias potential.
Free energy calculation
After defining a collective variable (CV) , we can calculate the free energy at any point along the direction of CV by using the probability distribution function. (The reference point is chosen at )
When the bias potential is added, the free energy change under the weighted ensemble can be given by:
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \Delta A_{w}(\xi)=-k_{B} T ln \frac {\rho_{w}(\xi)} {\rho_{w}(\xi_{0})}}
In this case, the original free energy change should be recovered by combining these two equations above: (the denominators have been offset in the ratio)
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \Delta A(\xi)=-k_{B} T ln \frac {\rho_{w}(\xi) w(\xi_{0})} {\rho_{w}(\xi_{0}) w(\xi)}}
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \Delta A(\xi)=\Delta A_{w}(\xi)+k_{B} T (ln w(\xi)-ln w(\xi_{0}))=\Delta A_{w}(\xi)-[V(\xi)-V(\xi_{0})]}
The best bias potential can help remove all the possible barriers on the energy landscape, which means the free energy change under this bias potential should be 0 everywhere. So, it is obvious to know that the best bias potential must counterbalance the true free energy.
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle V(\xi)-V(\xi_{0})=-\Delta A(\xi)}
Challenges of Umbrella Sampling
- Pick up the best bias potential along the CVs to realize the sufficiently flat energy landscape
- Ensure complete scanning of all the configuration space along the CVs under bias potential
- Perform discretization of the probability distribution along CVs
Umbrella Sampling [2]
Overview
- As in the quasi-static method, the aim of the umbrella sampling simulation is to predict the macroscopic properties of a material from its microscopic state and energy barriers by determining the energy landscape. The method uses molecular dynamic simulations to determine the probability for the system to be in a given conformation. Then the energy landscape is determined by inverting the Boltzmann distribution.
- Umbrella sampling attempts to overcome the sampling problem by modifying the Hamiltonian so that the unfavorable states are sampled sufficiently. The modification can be written as a perturbation.
Derivation
- Add a biasing potential to the total potential energy:
U(R,q) → U(R,q) + V(q)
V(q) = V(k)(q) = k(q-q(k))2
where: R : a vector of all coordinates
q : reaction coordinate
- The unbiased probability distribution P(q0)
Both sides are clearly equal since we have done nothing more than adding and subtracting V(q) from the exponent and multiplying and dividing by the same integral.
- left ratio
Here we replaced an average done with a weight of exp[-U/T] by an average with our new weight which is exp[-(U+V)/T] that can be tuned to get optimal sampling.
- right ratio
The average in the denominator is (again) performed with the adjusted potential.
- In sum, we have
The denominator is not straightforward to calculate. This is since we sample configuration with a weight of exp[−(U+V)/T]=exp[−U/T]exp[−V/T] while the entity we attempt to average is exp[V/T] . The weight is exponentially small in V while the function we attempt to average is exponentially large in the same variable. This guarantees that most of the sampled points will be a miss, most of the times either the function or the weight will be essentially zero. It is therefore highly desirable to find a way to avoid the calculation of the denominator.
Recover Unbiased Properties
- we can compute the average <δ(q−q0)>u in more than one way using two different biasing potentials.
Note that the right hand side of the equation includes only terms that are independent of q0. So miraculously all the q0 dependence on the left hand side must cancel out to yield a constant. If we use now the same potentials to consider free energy difference of set of points that are still sampled adequately. We can write as an example the same equation for another point say q1 in which the right hand side of the equation will remain the same constant.
- Free Energy
ßF(q0)=-ßV(q0)-ln(<δ(q−q0)>)U+V
Since we only care about the free energy difference for different values of q, we can simply shift the values we got from one of the windows to make the F continuous.
- How to stitch the pieces from different windows to obtain the free energy along the reaction coordinate?
WHAM
Historty
- Initially developed in 1989 by Ferrenberg and Swenden: Ferrenberg-Swenden reweighting [3]
- Generalized by Kumar et al.: Weighted Histogram Analysis Method [4]
Basic Idea
- The contribution of each run to a reweighting estimate should be weighed based on the magnitude of errors in their histograms. That is, runs that have greater overlap with the reweighting conditions should contribute more to the estimation of property averages.
Derivation[5]
- Theory
- Derivation of the WHAM expressions
- Back to the WHAM expression...
Applications
- US combined with FEP
- Potential of Mean Force
Examples
Butane[6]

- Protocol
- 18 independent simulations
- 500ps
- Restraint spring constant = 0.02 kcal/mol-deg
- WHAM
- 90 bins (40/bin)
- Enforced periodcity
- 18 independent simulations
- Histograms from Individual Trajectories
- Histograms of Combined Trajectories
- Butane PMF
Ion Channel [7]
References
- ↑ Torrie, G. M.; Valleau, J. P. (1977). "Nonphysical sampling distributions in Monte Carlo free-energy estimation: Umbrella sampling". Journal of Computational Physics. 23 (2): 187–199. doi:10.1016/0021-9991(77)90121-8
- ↑ Torrie, G.M., Valleau, J.P., Nonphysical sampling distributions in Monte Carlo free energy estimation: umbrella sampling, J.Comput.Phys.1977,23,187-199
- ↑ Ferrenberg; Swenden, Optimized Monte Carlo data Analysis, Phys.Rev.Lett. 1989, 63, 1195-1198
- ↑ Kumar S, Bouzida D, Swendsen RH, Kollmann PA, Rosenberg JM: The weighted histogramfckLRanalysis method for free-energy calculations on biomolecules. I. The method. J Comp ChemfckLR1992, 13: 1011-1021.
- ↑ Roux B: Extension to the weighted histogram analysis method: combining umbrella sampling with free energy calculations. Comp Phys Commu 2001, 135: 40-57.
- ↑ membrane.urmc.rochester.edu/wham/wham_talk.pdf
- ↑ Berneche,S and Roux,B: Energetics of ion conduction through the K+ channel, nature,vol414,1 November,2001