An Alternative to Gillespies Algorithm for Maggiolo-Schettini - - PowerPoint PPT Presentation

an alternative to gillespie s algorithm for
SMART_READER_LITE
LIVE PREVIEW

An Alternative to Gillespies Algorithm for Maggiolo-Schettini - - PowerPoint PPT Presentation

An Alternative to Gillespies Algorithm for Simulating Chemical Reactions Barbuti An Alternative to Gillespies Algorithm for Maggiolo-Schettini Milazzo Troina Simulating Chemical Reactions Outline Introduction Roberto Barbuti


slide-1
SLIDE 1

An Alternative to Gillespie’s Algorithm for Simulating Chemical Reactions Barbuti Maggiolo-Schettini Milazzo Troina Outline Introduction Simulating chemical reactions

Gillespie’s algorithm Our algorithm A comparison

Examples and applications

Probabilistic MultiSet Rewriting Simulation results

Conclusions

An Alternative to Gillespie’s Algorithm for Simulating Chemical Reactions

Roberto Barbuti Andrea Maggiolo–Schettini Paolo Milazzo Angelo Troina

Dipartimento di Informatica, Universit` a di Pisa, Italy

Edinburgh – April 4, 2005

1/19

slide-2
SLIDE 2

An Alternative to Gillespie’s Algorithm for Simulating Chemical Reactions Barbuti Maggiolo-Schettini Milazzo Troina Outline Introduction Simulating chemical reactions

Gillespie’s algorithm Our algorithm A comparison

Examples and applications

Probabilistic MultiSet Rewriting Simulation results

Conclusions

Introduction Simulating chemical reactions Gillespie’s algorithm Our algorithm A comparison Examples and applications Probabilistic MultiSet Rewriting Simulation results Conclusions

2/19

slide-3
SLIDE 3

An Alternative to Gillespie’s Algorithm for Simulating Chemical Reactions Barbuti Maggiolo-Schettini Milazzo Troina Outline Introduction Simulating chemical reactions

Gillespie’s algorithm Our algorithm A comparison

Examples and applications

Probabilistic MultiSet Rewriting Simulation results

Conclusions

Introduction

Chemical reactions are described by the law of mass action

◮ the speed of a reaction is proportional to the

concentrations of the individual reactants involved

◮ differential equations

Gillespie’s simulation algorithm

◮ stochastic method based on the theory of collisions ◮ each reaction takes a (continuous) random time which

is exponentially distributed The simulation algorithm we propose

◮ performs discrete time steps of (fixed) lenght ∆t; ◮ assume that at each step at most one reaction may

  • ccur (randomly chosen).

3/19

slide-4
SLIDE 4

An Alternative to Gillespie’s Algorithm for Simulating Chemical Reactions Barbuti Maggiolo-Schettini Milazzo Troina Outline Introduction Simulating chemical reactions

Gillespie’s algorithm Our algorithm A comparison

Examples and applications

Probabilistic MultiSet Rewriting Simulation results

Conclusions

Background

Usual notation for chemical reactions: ℓ1S1 + . . . + ℓρSρ

k

k−1 ℓ′ 1P1 + . . . + ℓ′ γPγ

where:

◮ Si, Pi are molecules ◮ ℓi, ℓ′ i are stoichiometric coefficients ◮ k, k−1 are the kinetic constants

For the law of mass action, the forward rate of a reaction is: dP dt = k[S1]ℓ1 · · · [Sρ]ℓρ and the backward rate is: dS dt = k−1[P1]ℓ′

1 · · · [Pγ]ℓ′ γ 4/19

slide-5
SLIDE 5

An Alternative to Gillespie’s Algorithm for Simulating Chemical Reactions Barbuti Maggiolo-Schettini Milazzo Troina Outline Introduction Simulating chemical reactions

Gillespie’s algorithm Our algorithm A comparison

Examples and applications

Probabilistic MultiSet Rewriting Simulation results

Conclusions

Gillespie’s stochastic approach (1)

◮ assumes a stochastic reaction constant cµ for each

chemical reaction Rµ

◮ cµdt is the probability that a particular combination of

reactant molecules of Rµ react in an infinitesimal time interval dt The total probability (denoted aµdt) of Rµ to occur in the infinitesimal time interval dt is aµdt = hµcµdt where hµ is the number of distinct molecular reactant combinations.

5/19

slide-6
SLIDE 6

An Alternative to Gillespie’s Algorithm for Simulating Chemical Reactions Barbuti Maggiolo-Schettini Milazzo Troina Outline Introduction Simulating chemical reactions

Gillespie’s algorithm Our algorithm A comparison

Examples and applications

Probabilistic MultiSet Rewriting Simulation results

Conclusions

Gillespie’s stochastic approach (2)

Example: solution with X1 molecules S1 and X2 molecules S2 reaction R1 : S1 + S2 → 2S1

◮ h1 = X1X2 ◮ a1 = X1X2c1 ◮ a1dt = X1X2c1dt

reaction R2 : 2S1 → S1 + S2

◮ h2 = X1(X1−1) 2 ◮ a2 = X1(X1−1) 2

c2

◮ a2dt = X1(X1−1) 2

c2dt

6/19

slide-7
SLIDE 7

An Alternative to Gillespie’s Algorithm for Simulating Chemical Reactions Barbuti Maggiolo-Schettini Milazzo Troina Outline Introduction Simulating chemical reactions

Gillespie’s algorithm Our algorithm A comparison

Examples and applications

Probabilistic MultiSet Rewriting Simulation results

Conclusions

Gillespie’s algorithm

Given a set of reactions {R1, . . . RM} and a current time t

  • 1. The time t + τ at which the next reaction will occur is

randomly chosen with τ exponentially distributed with parameter M

ν=1 aν;

  • 2. The reaction Rµ that has to occur at time t + τ is

randomly chosen with probability aµdt. At each step t is incremented by τ and the chemical solution is updated. At each step the probability density function Pg(τ, µ) = exp

M

  • ν=1

aντ

  • · aµdt

gives the probability that the next reaction will occur in the time interval (t + τ, t + τ + dt) and will be Rµ.

7/19

slide-8
SLIDE 8

An Alternative to Gillespie’s Algorithm for Simulating Chemical Reactions Barbuti Maggiolo-Schettini Milazzo Troina Outline Introduction Simulating chemical reactions

Gillespie’s algorithm Our algorithm A comparison

Examples and applications

Probabilistic MultiSet Rewriting Simulation results

Conclusions

Our algorithm (1)

◮ assumes that in a very small (fixed) time interval ∆t at

most one reaction may occur

◮ ∆t depends on the number and on the rates of the

chemical reactions Basic idea:

◮ divide the rate of each reaction (given by the law of

mass action) by an arbitrarily great integer value N

◮ use the result as the probability of each reaction to

  • ccur in ∆t

8/19

slide-9
SLIDE 9

An Alternative to Gillespie’s Algorithm for Simulating Chemical Reactions Barbuti Maggiolo-Schettini Milazzo Troina Outline Introduction Simulating chemical reactions

Gillespie’s algorithm Our algorithm A comparison

Examples and applications

Probabilistic MultiSet Rewriting Simulation results

Conclusions

Our algorithm (2)

Given a set of reactions {R1, . . . , RM}, and assuming a volume of 1 litre

◮ ∆t has to be fixed to 1 MN ◮ N is such that

0 < kµ[Sµ1]ℓµ1 · · · [Sµρ]ℓµρ N ≤ 1 for 1 ≤ µ ≤ M and for all the possible concentrations (assumed to be finite) of Sµ1, . . . , Sµρ The probability of Rµ is P(Rµ) =

  • kµ[Sµ1]ℓµ1···[Sµρ]ℓµρ

N

if Rµ can occur

  • therwise

9/19

slide-10
SLIDE 10

An Alternative to Gillespie’s Algorithm for Simulating Chemical Reactions Barbuti Maggiolo-Schettini Milazzo Troina Outline Introduction Simulating chemical reactions

Gillespie’s algorithm Our algorithm A comparison

Examples and applications

Probabilistic MultiSet Rewriting Simulation results

Conclusions

Our algorithm (3)

The algorithm iterates the following steps:

  • 1. A reaction Rµ is randomly chosen (all the reactions are

equiprobable);

  • 2. The chosen Rµ is performed with probability P(Rµ).

The probability of choosing and performing Rµ in ∆t is P(µ) = 1 M P(Rµ) and the probability of performing no reactions in ∆t is P0 = 1 −

M

  • ν=1

P(ν)

10/19

slide-11
SLIDE 11

An Alternative to Gillespie’s Algorithm for Simulating Chemical Reactions Barbuti Maggiolo-Schettini Milazzo Troina Outline Introduction Simulating chemical reactions

Gillespie’s algorithm Our algorithm A comparison

Examples and applications

Probabilistic MultiSet Rewriting Simulation results

Conclusions

Comparing the two algorithms (1)

Assume ∆t infinitesimal. Results:

◮ The probability of performing Rµ in Gillespie’s algorithm

is equivalent (with an approximation) to the probability

  • f choosing and performing Rµ in our algorithm, that is

aµdt ≈ P(µ)

◮ A step in Gillespie’s algorithm can be simulated by a

sequence of steps in our algorithm having (approximatively) the same probability Approximations are introduced by deriving cµ from kµ

11/19

slide-12
SLIDE 12

An Alternative to Gillespie’s Algorithm for Simulating Chemical Reactions Barbuti Maggiolo-Schettini Milazzo Troina Outline Introduction Simulating chemical reactions

Gillespie’s algorithm Our algorithm A comparison

Examples and applications

Probabilistic MultiSet Rewriting Simulation results

Conclusions

Comparing the two algorithms (2)

Gillespie’s algorithm Our Algorithm – Assumes cµ + Uses kµ

in general unknown usually well–known derived by kµ (approx)

– Considers reactions + Is based on the law individually

  • f mass action

does not depend on the measure units (scalability)

+ Precise reaction times – Assumes at most one reaction in ∆t

12/19

slide-13
SLIDE 13

An Alternative to Gillespie’s Algorithm for Simulating Chemical Reactions Barbuti Maggiolo-Schettini Milazzo Troina Outline Introduction Simulating chemical reactions

Gillespie’s algorithm Our algorithm A comparison

Examples and applications

Probabilistic MultiSet Rewriting Simulation results

Conclusions

Probabilistic MultiSet Rewriting (1)

The Probabilistic MultiSet Rewriting formalism (PMSR)

◮ is a simple example of formalism using our algorithm ◮ describes the behaviour of a chemical solution as a

probabilistic transition system Definition (PMSR Rule). A Probabilistic MultiSet Rewriting rule is a triple (M1, p, M2) where:

◮ M1, M2 are two different multisets; ◮ p ∈]0, 1] is the probabilistic constant of the rule.

A probabilistic rewriting rule (M1, p, M2) can be denoted also with the more usual notation M1 →p M2.

13/19

slide-14
SLIDE 14

An Alternative to Gillespie’s Algorithm for Simulating Chemical Reactions Barbuti Maggiolo-Schettini Milazzo Troina Outline Introduction Simulating chemical reactions

Gillespie’s algorithm Our algorithm A comparison

Examples and applications

Probabilistic MultiSet Rewriting Simulation results

Conclusions

Probabilistic MultiSet Rewriting (2)

Definition (PMSR System). A Probabilistic MultiSet Rewriting system is a pair (M, R), where M is a multiset and R is a finite set of rewriting rules. Definition (Semantics). The semantics of PMSR is the probabilistic transition system in which states are PMSR systems and transitions are described by the following inference rules: Rµ ∈ R Rµ = Mµ →pµ M′

µ

Mµ ⊆ M (M, R)

P(µ)

− − − → ((M \ Mµ) ∪ M′

µ, R)

(M, R)

P0

− → (M, R)

14/19

slide-15
SLIDE 15

An Alternative to Gillespie’s Algorithm for Simulating Chemical Reactions Barbuti Maggiolo-Schettini Milazzo Troina Outline Introduction Simulating chemical reactions

Gillespie’s algorithm Our algorithm A comparison

Examples and applications

Probabilistic MultiSet Rewriting Simulation results

Conclusions

Lotka and Brusselator reactions

400 600 800 1000 1200 1400 1600 1800 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000 number of molecules milliseconds y1 y2 1000 2000 3000 4000 5000 6000 7000 8000 2000 4000 6000 8000 10000 number of molecules milliseconds y1 y2

Lotka reactions Y1

k1

→ 2Y1 Y1 + Y2

k2

→ 2Y2 Y2

k3

→ Z Brusselator reactions X

k1

→ X + Y1 Y1

k2

→ Y2 2Y1 + Y2

k3

→ 3Y1 Y1

k4

→ Z

15/19

slide-16
SLIDE 16

An Alternative to Gillespie’s Algorithm for Simulating Chemical Reactions Barbuti Maggiolo-Schettini Milazzo Troina Outline Introduction Simulating chemical reactions

Gillespie’s algorithm Our algorithm A comparison

Examples and applications

Probabilistic MultiSet Rewriting Simulation results

Conclusions

Sorbitol Dehydrogenase

Real enzymatic activity involving Fructose and Sorbitol. E + NADH

k1

k2 ENADH

E

k7

→ Ei ENADH + F

k3

k4 ENAD+ + S

ENAD+ k5 ⇋

k6 E + NAD+

k1 = 6.2 × 10−6 s−1pM−1 k2 = 33 s−1 k3 = 2.2 × 10−9 s−1pM−1 k4 = 7.9 × 10−9 s−1pM−1 k5 = 227 s−1 k6 = 6.1 × 10−7 s−1pM−1 k7 = 1.9 × 10−3 s−1

16/19

slide-17
SLIDE 17

An Alternative to Gillespie’s Algorithm for Simulating Chemical Reactions Barbuti Maggiolo-Schettini Milazzo Troina Outline Introduction Simulating chemical reactions

Gillespie’s algorithm Our algorithm A comparison

Examples and applications

Probabilistic MultiSet Rewriting Simulation results

Conclusions

Sorbitol Dehydrogenase – simulation 1

2e+07 4e+07 6e+07 8e+07 1e+08 1.2e+08 1.4e+08 1.6e+08 10 20 30 40 50 60 pM minutes simulation real data

concentration of NADH over time simulation (solid line) vs experiments (dashed line) Initial (picomolar) concentrations [E] = 210 [F] = 4 × 1011 [NADH] = 1.6 × 108 [S] = [NAD+] = [ENADH] = [ENAD+] = 0

17/19

slide-18
SLIDE 18

An Alternative to Gillespie’s Algorithm for Simulating Chemical Reactions Barbuti Maggiolo-Schettini Milazzo Troina Outline Introduction Simulating chemical reactions

Gillespie’s algorithm Our algorithm A comparison

Examples and applications

Probabilistic MultiSet Rewriting Simulation results

Conclusions

Sorbitol Dehydrogenase – simulation 2

2e+07 4e+07 6e+07 8e+07 1e+08 1.2e+08 1.4e+08 1.6e+08 10 20 30 40 50 60 pM minutes simulation real data

concentration of NADH over time simulation (solid line) vs experiments (dashed line) Initial (picomolar) concentrations [E] = 430 [F] = 4 × 1011 [NADH] = 1.6 × 108 [S] = [NAD+] = [ENADH] = [ENAD+] = 0

18/19

slide-19
SLIDE 19

An Alternative to Gillespie’s Algorithm for Simulating Chemical Reactions Barbuti Maggiolo-Schettini Milazzo Troina Outline Introduction Simulating chemical reactions

Gillespie’s algorithm Our algorithm A comparison

Examples and applications

Probabilistic MultiSet Rewriting Simulation results

Conclusions

Conclusions

We have:

◮ introduced a probabilistic algorithm for simulating

chemical reactions

◮ compared our algorithm with Gillespie’s one ◮ shown simulation results

Advantages of our algorithm:

◮ based on the law of mass action ◮ scalable (on the measure unit of concentrations)

Prototype implementation: http://www.di.unipi.it/∼ milazzo/biosims/

19/19