sampling the free energy surfaces of collective variables · free energy estimators for eabf ak is...

36
Sampling the free energy surfaces Sampling the free energy surfaces of collective variables of collective variables Enhanced Sampling and Free-Energy Calculations Urbana, 12 September 2018 Jérôme Hénin

Upload: others

Post on 20-Jul-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Sampling the free energy surfacesSampling the free energy surfaces

of collective variablesof collective variables

Enhanced Samplingand Free-Energy Calculations Urbana, 12 September 2018

Jérôme Hénin

Page 2: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Please interrupt!

Page 3: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

structure

model systems

struct biol

struct bioinform

interactions(force fields)

phys chem theoretical chem

physics

algorithms

CS

maths

structure(refinement)

molecularinteractions

dynamics

thermodynamics

struct biol

biophysics

pharmacology

biomolecularsimulation

Page 4: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Biology and the curse of dimensionality

φ

ψ

A(φ,ψ)

we need reduced representations

made of few selected coordinates● for human intuition● for importance sampling

Page 5: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Outline

● Free energy

● Collective variables

● Free energy landscapes

● Methods to compute (estimate) FE landscapes

– from probability distribution (histograms)

– from forces (thermodynamic integration)

– from adapted biasing potential (metadynamics)

● Methods to sample FE landscapes

– umbrella sampling

– metadynamics : adaptive biasing potential

– adaptive biasing force

Page 6: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Tetramethylammonium – acetone binding

Page 7: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Free energy

● free energy differences ↔ probability ratios

● macrostates (A, B) are collections of microstates (atom coordinates x)

● →probabilities of macrostates are sums (integrals) over microstates

● probabilities of microstates follow Boltzmann distribution

Page 8: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Collective variables

● geometric variables that depend on the positions of several atoms(hence “collective”)

● mathematically: functions of atomic coordinates

● example: distance between two atoms

● distance between the centers of mass of groups of atoms G1, G2

Page 9: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Probability distribution of a collective variable

● we know the 3N-dimensional probability distribution of atom coordinates x:

● what is the probability distribution of

● theory: sum (integral) over all the values of x corresponding to a value of z

● in simulations: sample and calculate a histogram of coordinate z

Page 10: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Probability distribution of a collective variable

(1) from unbiased simulation

5 10

distance (Å)

50000

1e+05

1.5e+05

2e+05

prob

abili

ty d

ensi

ty ρ

(lo

g sc

ale)

Probability distributionTMA-acetone pair in vacuum, 1 ns unbiased MD

ρ = 0

5 10

distance (Å)

1

10

100

1000

10000

1e+05

prob

abili

ty d

ensi

ty ρ

(lo

g sc

ale)

Probability distributionTMA-acetone pair in vacuum, 1 ns unbiased MD

ρ = 0

Page 11: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Probability distribution of a collective variable

(2) with enhanced sampling

4 6 8 10 12

distance (Å)

0

5e+07

1e+08

1.5e+08

2e+08

2.5e+08

3e+08

pro

ba

bili

ty d

en

sity

ρ

Probability distributionTMA-acetone pair in vacuum

ρ = 1

5 10

distance (Å)

1

10

100

1000

10000

1e+05

1e+06

1e+07

1e+08

1e+09

prob

abili

ty d

ensi

ty ρ

(lo

g sc

ale)

enhanced sampling (ABF)

unbiased

Probability distributionTMA-acetone pair in vacuum

ρ = 1

Page 12: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

From probability to free energy

4 6 8 10 12

distance (Å)

1

10

100

1000

10000

1e+05

1e+06

1e+07

1e+08

prob

abili

ty d

ensi

ty ρ

(lo

g sc

ale)

Probability distributionTMA-acetone pair in vacuum

ρ = 1

4 6 8 10 12

distance (Å)

0

5

10

15

20

fre

e e

ne

rgy

(kca

l/mo

l)

Free energy profile for TMA - acetone pair

Page 13: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Ways to calculate the free energy

● from unbiased histogram

● from biased histogram (importance sampling) with bias Vbias(z)

– in Umbrella Sampling, need to find values of C!

● estimate and integrate free energy derivative (gradient):Thermodynamic Integration

Page 14: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Umbrella sampling

4 6 8 10 12

distance (Å)

0

500

1000

1500

2000

2500

3000

num

ber

of s

ampl

es

Histograms from Umbrella Sampling

● distribute (stratify) sampling using multiple confinement restraints

● combine partial information of each histogram by computing relative free energies

– WHAM (weighted histogram analysis method)

– MBAR (multistate Bennett’s acceptance ratio)

● requires overlap between sampling in adjacent windows

Page 15: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Multi-channel free energy landscape

hiddenbarrier

Page 16: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Multi-channel free energy landscape

hiddenbarrier

Page 17: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Umbrella Sampling: stratification

Page 18: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Umbrella Sampling or Not Sampling?

benefit of adaptive sampling methods: no stratification needed

Page 19: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Orthogonal relaxation in ABF

Hénin, Tajkhorshid, Schulten & Chipot, Biophys J. 2008

Page 20: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Adaptive sampling 1: adaptive biasing potential

where At converges to A

Free energy profile A(z) is linked to distribution of transition coordinate:

ABP: time-dependent biased potential

Long-time biased distribution:

that is, a uniform distribution.

Page 21: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Adaptive Biasing Potential : Metadynamics

● adaptive bias is sum of Gaussian functions created at current position

● pushes coordinate away from visited regions

● convergence requires careful tuning of time dependence of the bias(“well-tempered” metadynamics)

Illustration: Parrinello group, ETH Zürich

Page 22: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Adaptive sampling 2: Adaptive Biasing Force (ABF)

where A’t converges to A’

● ABF: time-dependent biasing force

● long-time biased distribution is uniform, as in ABP

● how do we estimate A’?

Page 23: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Free energy derivative is a mean force

is a projected force (defined by coordinate transform)

is a geometric (entropic) term

den Otter J. Chem. Phys. 2000

Page 24: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Simpler estimator of free energy gradient

● for each variable ξi, force is measured along arbitrary vector field(Ciccotti et al. 2005)

● orthogonality condition:

● free energy gradient:

● there are other estimators:

– from constraint force (original ABF, Darve & Pohorille 2001)

– from time derivatives of coordinate (Darve & Pohorille 2008)

Page 25: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

1. Stretching deca-alanine

Hénin & Chipot JCP 2004

Page 26: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

2. Sampling deca-alanine?

Chipot & Hénin JCP 2005

Page 27: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

3. Sampling in higher dimension

Hénin et al. JCTC 2010

Page 28: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

4. More robust sampling for poor coordinates:

Multiple-Walker ABF

● good performance with hidden barriers (Minoukadeh, Chipot, Lelièvre 2010)

● can sample systems using incomplete set of collective variables?

ABF, 1 x 100 ns MW-ABF, 32 x 3 ns

Page 29: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

ABF: a tale of annoying geometry

Estimator of free energy gradient:

● for each variable ξi, force is “measured” along arbitrary vector field vi(Ciccotti et al. 2005)

● orthogonality conditions:

● free energy gradient:

● geometric calculations are sometimes intractable(e.g. second derivatives of elaborate coordinates)

● orthogonality conditions are additional constraints

● in practice, many cases where ABF is unavailable

Page 30: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

extended-system Adaptive Biasing Force (eABF)

● idea: Lelièvre, Rousset & Stoltz 2007

● implementation: Fiorin, Klein & Hénin 2013

Get rid of geometry by watching an unphysical variable λ ,harmonically coupled to our geometric coordinate:

λ undergoes Langevin dynamics with mass m.Mass and force constant based on desired fluctuation and period:

Page 31: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

eABF trajectories

Page 32: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Tight vs. loose coupling

λ

z z

λ

Page 33: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Free energy estimators for eABF

● Ak is an estimator of free energy A, asymptotically accurate for high k

● other estimators lift this “stiff spring” requirement:

– umbrella integration (Kästner & Thiel 2005, Zheng & Yang 2012,Fu, Shao, Chipot & Cai 2016)

– CZAR (Lesage, Lelièvre, Stoltz & Hénin 2017)

● using these estimators, eABF is a hybrid adaptive method(free energy estimate is separate from bias)

Page 34: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Hybrid methods

● adaptive sampling combines free energy estimation and enhanced sampling

● hybrid methods: bias based on one estimator, use another estimator to compute final free energy

● examples:

– unbiased sampling with thermodynamic integration

– metadynamics with thermodynamic integration

– eABF dynamics with UI or CZAR estimator

Page 35: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Different estimates at very short sampling times

4 6 8 10 12

distance (Å)

0

10

20

30

fre

e e

ne

rgy

(kca

l/mo

l)ABF

metadynamics

mtd-TI

SMD (single non-eq work)

SMD-TI

Free energy profile for TMA - acetone pairfrom 100 ps simulations

● same long-time results, but different short-time convergence!● caution: may be system-dependent● efficiency of sampling vs. biases in short-time estimates

→ benefit of hybrid methods

Page 36: Sampling the free energy surfaces of collective variables · Free energy estimators for eABF Ak is an estimator of free energy A, asymptotically accurate for high k other estimators

Thank you!

Questions?