advanced sampling techniques when molecular dynamics is just not enough

43
Advanced Sampling Techniques When molecular dynamics is just not enough.

Upload: darlene-sanders

Post on 29-Jan-2016

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Advanced Sampling Techniques When molecular dynamics is just not enough

Advanced Sampling Techniques

When molecular dynamics is just not enough.

Page 2: Advanced Sampling Techniques When molecular dynamics is just not enough

Why do we need enhanced sampling?

Page 3: Advanced Sampling Techniques When molecular dynamics is just not enough

MDNN

Trying to fold a peptide from two different initial conditions, gives two different free energy surfaces !

Page 4: Advanced Sampling Techniques When molecular dynamics is just not enough

Rates depend on barriers and T

Page 5: Advanced Sampling Techniques When molecular dynamics is just not enough

What can we do to speed things up?

• It’s basically a problem of rates, or kinetics– Rates are exponentially dependent on temperature – higher T = higher KE = ability to cross higher barriers

• Can we just simulate at a higher T?

• Yes! Folding is faster at higher T.

Page 6: Advanced Sampling Techniques When molecular dynamics is just not enough

Why is convergence so slow?• We want the average of observable properties- so we

need to include in that weighted average all of the important values that it might have

• Structural averages can be slow to converge- you need to wait for the structure to change, and do it many, many times.

• Sampling an event one time doesn’t tell you the correct probability (or weight) for that event

– What is the proper weight? Boltzmann’s equation

Page 7: Advanced Sampling Techniques When molecular dynamics is just not enough

What can we do to speed things up?

• It’s basically a problem of rates, or kinetics– Rates are exponentially dependent on temperature – higher T = higher KE = ability to cross higher barriers

• Can we just simulate at a higher T?

• Yes! Folding is faster at higher T.

but…we mess up the thermodynamics. – Equilibrium constants (weights) also depend on T

Page 8: Advanced Sampling Techniques When molecular dynamics is just not enough

Populations depend on ΔE and T

Page 9: Advanced Sampling Techniques When molecular dynamics is just not enough

Free energies along a defined reaction coordinate via Umbrella Sampling

Page 10: Advanced Sampling Techniques When molecular dynamics is just not enough

Umbrella SamplingHow to force barrier crossings without compromising thermodynamic properties?

Very slow transitions

Page 11: Advanced Sampling Techniques When molecular dynamics is just not enough

Umbrella Sampling

trapped, bad ΔG

good for ΔG

Page 12: Advanced Sampling Techniques When molecular dynamics is just not enough

One could just run dynamics and wait until all space has been sampled.

Then, if one extracts P(xk) from the trajectory, the PMF can be written as:

However, it takes forever to properly sample all conformations, and to jump over the barrier. The solution is to bias the system towards whatever value of the coordinate we want.

This is called unbiased sampling

Page 13: Advanced Sampling Techniques When molecular dynamics is just not enough

AMBER WS 2012CECAM Lausanne

Umbrella Sampling

True PMF

Ideal BiasingPotential

No barrier,perfect sampling

We could BIAS the simulation, but we do not really know how to do it exactly.

Page 14: Advanced Sampling Techniques When molecular dynamics is just not enough

AMBER WS 2012CECAM Lausanne

Umbrella Sampling

True PMF

Windows: 1 2 3 4 5 choose i, k and xi system-dependent

Introduce biasing potentials along the reaction coordinate

Page 15: Advanced Sampling Techniques When molecular dynamics is just not enough

AMBER WS 2012CECAM Lausanne

Adding a quadratic biasing potential

Page 16: Advanced Sampling Techniques When molecular dynamics is just not enough

Check for sufficient overlap

Histograms from neighboring windows should overlap strongly, all points on the RC must be sampled suffciently.

Page 17: Advanced Sampling Techniques When molecular dynamics is just not enough

AMBER WS 2012CECAM Lausanne

Umbrella Sampling

Simulation Window Histogram Part of PMF

Final computed PMF from many windows

Solved iteratively using e.g. the WHAM program by Alan Grossfield

Constructing the PMF

Page 18: Advanced Sampling Techniques When molecular dynamics is just not enough

AMBER WS 2012CECAM Lausanne

Umbrella Sampling

Histograms from neighboring windows should overlap strongly,

all points on the RC must be sampled suffciently.

Solved iteratively using e.g. the WHAM program by Alan Grossfield (http://membrane.urmc.rochester.edu/content/wham)

Check for sufficient overlap between sampled regions

Page 19: Advanced Sampling Techniques When molecular dynamics is just not enough

Histograms & free energy profiles

• Umbrella run needs many simulations

• Do NOT need to sample full range in 1 simulation

G= -RTlnP/P0

Page 20: Advanced Sampling Techniques When molecular dynamics is just not enough

Comparing 2 conformations

Song, Hornak, de los Santos, Grollman and Simmerling, Biochemistry 2006

It will take much too long to get precise populations for these 2 minima just by running MD.

Page 21: Advanced Sampling Techniques When molecular dynamics is just not enough

8OG binding mode in complex: dihedral umbrella sampling

synanti

Song, Hornak, de los Santos, Grollman and Simmerling, Biochemistry 2006

Page 22: Advanced Sampling Techniques When molecular dynamics is just not enough

Simulations reveal how the energy profile changes if a mutation is made

syn

anti

Song, Hornak, de los Santos, Grollman and Simmerling, Biochemistry 2006

Effect of mutations

Page 23: Advanced Sampling Techniques When molecular dynamics is just not enough

4 Conformational space has many local minima 4 Barriers hinder rapid escape from high-energy minima

4 How can we search and score all conformations?

Replica Exchange

Coordinate

Ene

rgy

Page 24: Advanced Sampling Techniques When molecular dynamics is just not enough

Early tries:

Run MD at Tlow, once in a while heat up to Thigh, run some more.Change to Tlow

Repeat…

The problem is that the statistical weights of the first and second Tlow are unknown and unknowable.

Page 25: Advanced Sampling Techniques When molecular dynamics is just not enough

Metropolis Monte Carlo, one of the most important algorithms of the 20th century.

Page 26: Advanced Sampling Techniques When molecular dynamics is just not enough

MANIAC computer.Los Alamos national Lab1943-1944

80 Kbytes memory11Khz Clock

Page 27: Advanced Sampling Techniques When molecular dynamics is just not enough

When Bugs were real (Mark II computer, 1945)

Page 28: Advanced Sampling Techniques When molecular dynamics is just not enough

Coordinate

Ene

rgy

We want to sample all conformations in a way that when we are done, the probability of finding a particular conformation is

Page 29: Advanced Sampling Techniques When molecular dynamics is just not enough

Moreover, in equilibrium, we require that the rates from minimum A to B be exactly equal to the rate from minimum B to A. This is called Microscopic Reversibility.

Coordinate

Ene

rgy

Page 30: Advanced Sampling Techniques When molecular dynamics is just not enough

Temperature Replica Exchange(Parallel tempering)

375K

350K

325K

300K

REMD

Hansmann, U., CPL 1997

Sugita & Okamoto, CPL 1999

Page 31: Advanced Sampling Techniques When molecular dynamics is just not enough

[ ] [ ]min(1,exp{( )( ( ) ( )})i jm n E q E q

vnew vold

Tnew

Told

4 Impose desired weighting (limiting distributionon exchange calculation

375K

350K

325K

300K

4 Impose reversibility/detailed balance

Rewrite using only potential energies, by rescaling kinetic energy for both replicas.

Exchange?

Page 32: Advanced Sampling Techniques When molecular dynamics is just not enough

Temperature Replica Exchange4 MD runs over range of T

4 Periodically swap structures

4 Faster convergence than regular MD

4 Populations as a function of T

4 Drawback: ΔE must be small small ΔT for large systems

[ ] [ ]min(1,exp{( )( ( ) ( )})i jm n E q E q

Number of replicas ~ N1/2

Page 33: Advanced Sampling Techniques When molecular dynamics is just not enough

Does it really converge faster than regular MD?

Yes !

But not really as much as one would think (or hope, or dream)

5kBT / bG k Tk e Δ

For a barrier of ~5kBTlow, and a Thigh=2Tlow , the barrier crossing rate is x12

Better methods use replicas in Hamiltonian space. Different biasing for each replica

Page 34: Advanced Sampling Techniques When molecular dynamics is just not enough

Do you have an MD code? Build yourself a REMD code in minutes ! Just write a wrapper !

START REMD

Spawn replicas and run MD at different temperatures

Stop MDsDecide to exchange or not

Page 35: Advanced Sampling Techniques When molecular dynamics is just not enough

Advanced methods can help

MD

Replica exchange

NN

Roe, Hornak and Simmerling, J. Mol. Biol. 2006

Page 36: Advanced Sampling Techniques When molecular dynamics is just not enough

What if you don’t know the pathway for the change?

Page 37: Advanced Sampling Techniques When molecular dynamics is just not enough

in silico structure interconversions

?

“endpoint method”: • link many simulations • timescale independent

Bergonzo, Campbell, Walker & Simmerling, Intl J Quantum Chem 2009

Page 38: Advanced Sampling Techniques When molecular dynamics is just not enough

NEB: use many simulations to study slow dynamics

R

P

Co

ord

inat

e 2

F||

F┴

Coordinate 1

Final path

Standard forces

Spring forces

Page 39: Advanced Sampling Techniques When molecular dynamics is just not enough

Reaction Path Calculations: NEB

kcal/mol

•NEB requires coupling of multiple simulations using “springs”

A B

How can we get from A to B?

Page 40: Advanced Sampling Techniques When molecular dynamics is just not enough

Other techniques

Accelerated MD

Hamiltonian Replica Exchange

Multi Dimensional Replica Exchange

Constant pH ( + REMD)

Steered Molecular Dynamics

Page 41: Advanced Sampling Techniques When molecular dynamics is just not enough

Accelerated Molecular Dynamics

de Oliveira C.A.F., Hamelberg, D., McCammon, J.A., On the Application of Accelerated Molecular Dynamics to Liquid Water Simulations. J. Phys. Chem. B 2006.Hamelberg, D., de Oliveira C.A.F., McCammon J.A. , Sampling of slow diffusive conformational transitions with accelerated molecular dynamics. The Journal of chemical physics, 2007. Grant, B.J., Gorfe, A.A., and McCammon, J.A. , Ras conformational switching: simulating nucleotide-dependent conformational transitions with accelerated molecular dynamics. PLoS computational biology, 2009. de Oliveira, C.A.F., et al., Large-Scale Conformational Changes of Trypanosoma cruzi Proline Racemase Predicted by Accelerated Molecular Dynamics Simulation. PLoS computational biology, 2011.

Page 42: Advanced Sampling Techniques When molecular dynamics is just not enough

AMD effect on the Potential

Page 43: Advanced Sampling Techniques When molecular dynamics is just not enough

Principal Component Analysis• Build PC space based on the 500ns aMD simulation• Project X-ray, Shaw structures, 500ns cMD, and 1ms cMD

Cost: several million dollars Energy consumption ~116.5KW Code mostly hardwired to the hardware

Cost: $2000 Energy consumption ~0.9KW AMBER 12

Routine Access to Millisecond Time Scale Events with Accelerated Molecular Dynamics. Levi Pierce, Romelia Salomon-Ferrer, Cesar Augusto de Oliveira, J. Andrew McCammon and Ross C. Walker. J. Chem. Theory Comput., 2012, 8 (9), pp 2997–3002 DOI: 10.1021/ct300284c