Stochastic Simulation of Biological Systems. Chemical Reactions Reactants  Products m 1 R 1 + m 2 R 2 + ··· + m r R r – ! n 1 P 1 + n 2 P 2 + ··· + n.

Slides:



Advertisements
Similar presentations
Time averages and ensemble averages
Advertisements

Chemical Kinetics Reaction rate - the change in concentration of reactant or product per unit time.
Theory. Modeling of Biochemical Reaction Systems 2 Assumptions: The reaction systems are spatially homogeneous at every moment of time evolution. The.
Cycle and Event Leaping State Space AnalysisThe Goddess Durga Marc Riedel, EE5393, Univ. of Minnesota.
KINETICS.
Reactants products. Kinetics Branch of chemistry that studies the speed or rate with which chemical reactions occur. Some reactions do not occur in one.
Random Number Generation. Random Number Generators Without random numbers, we cannot do Stochastic Simulation Most computer languages have a subroutine,
Modeling & Simulation. System Models and Simulation Framework for Modeling and Simulation The framework defines the entities and their Relationships that.
Chemical Kinetics. Chemical kinetics - speed or rate at which a reaction occurs How are rates of reactions affected by Reactant concentration? Temperature?
Some foundations of Cellular Simulation Nathan Addy Scientific Programmer The Molecular Sciences Institute November 19, 2007.
Variants of Stochastic Simulation Algorithm Henry Ato Ogoe Department of Computer Science Åbo Akademi University.
Åbo Akademi University & TUCS, Turku, Finland Ion PETRE Andrzej MIZERA COPASI Complex Pathway Simulator.
Multiscale Stochastic Simulation Algorithm with Stochastic Partial Equilibrium Assumption for Chemically Reacting Systems Linda Petzold and Yang Cao University.
Dynamics of Learning VQ and Neural Gas Aree Witoelar, Michael Biehl Mathematics and Computing Science University of Groningen, Netherlands in collaboration.
Statistical NLP: Lecture 11
Reliable System Design 2011 by: Amir M. Rahmani
FIN 685: Risk Management Topic 5: Simulation Larry Schrenk, Instructor.
Stochastic description of gene regulatory mechanisms Georg Fritz Statistical and Biological Physics Group LMU München Albert-Ludwigs Universität.
Stochasticity in molecular systems biology
Simulation of Biological Systems using Dynetica. Dynetica is a simulation tool It can be downloaded for free from the web (
Simulation with Arena, 3 rd ed.Chapter 11 – Continuous & Combined Discrete/Continuous ModelsSlide 1 of 11 Continuous and Combined Discrete/ Continuous.
Simulation with Arena, 4 th ed.Chapter 11 – Continuous & Combined Discrete/Continuous ModelsSlide 1 of 11 Continuous and Combined Discrete/ Continuous.
XYZ 6/18/2015 MIT Brain and Cognitive Sciences Convergence Analysis of Reinforcement Learning Agents Srinivas Turaga th March, 2004.
Chapter 4: Stochastic Processes Poisson Processes and Markov Chains
Simulation.
Evaluating Hypotheses
CSCE Monte Carlo Methods When you can’t do the math, simulate the process with random numbers Numerical integration to get areas/volumes Particle.
Methods for Simulating Discrete Stochastic Chemical Reactions
Bioinformatics 3 V17 – Dynamic Modelling: Rate Equations + Stochastic Propagation Fri, Jan 9, 2015.
Simulation of Biochemical Reactions for Modeling of Cell DNA Repair Systems Dr. Moustafa Mohamed Salama Laboratory of Radiation Biology, JINR Supervisor.
Simulation of Random Walk How do we investigate this numerically? Choose the step length to be a=1 Use a computer to generate random numbers r i uniformly.
1 Performance Evaluation of Computer Networks: Part II Objectives r Simulation Modeling r Classification of Simulation Modeling r Discrete-Event Simulation.
Generalized Semi-Markov Processes (GSMP)
Converting Macromolecular Regulatory Models from Deterministic to Stochastic Formulation Pengyuan Wang, Ranjit Randhawa, Clifford A. Shaffer, Yang Cao,
KINETICS How Fast Does A Reaction Occur? Energy Diagrams l Reactants always start a reaction so they are on the left side of the diagram. Reactants l.
Chemical Kinetics Chapter 17 Chemical Kinetics Aka Reaction Rates.
Chapter 14: Rates of Reaction Chemistry 1062: Principles of Chemistry II Andy Aspaas, Instructor.
Chemistry. Chemical Kinetics - 2 Session Objectives 1.Methods of determining order of a reaction 2.Theories of chemical kinetics 3.Collision theory 4.Transition.
Lecture 4: Metabolism Reaction system as ordinary differential equations Reaction system as stochastic process.
Computational Biology, Part 15 Biochemical Kinetics I Robert F. Murphy Copyright  1996, 1999, 2000, All rights reserved.
Workshop on Stochastic Differential Equations and Statistical Inference for Markov Processes Day 3: Numerical Methods for Stochastic Differential.
Introduction 1. Similarity 1.1. Mechanism and mathematical description 1.2. Generalized variables 1.3. Qualitative analysis 1.4. Generalized individual.
Today we will deal with two important Problems: 1.Law of Mass Action 2. Michaelis Menten problem. Creating Biomodel in Vcell we will solve these two problems.
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 30.
Synthesizing Stochasticity in Biochemical Systems In partial fulfillment of the requirements for a master of electrical engineering degree Brian Fett Marc.
SIMULINK-Tutorial 1 Class ECES-304 Presented by : Shubham Bhat.
Systems Biology Markup Language Ranjit Randhawa Department of Computer Science Virginia Tech.
The generalization of Bayes for continuous densities is that we have some density f(y|  ) where y and  are vectors of data and parameters with  being.
MA354 An Introduction to Math Models (more or less corresponding to 1.0 in your book)
Biochemical Reactions: how types of molecules combine. Playing by the Rules + + 2a2a b c.
The Rate of Chemical Reactions – The Rate Law.
SS r SS r This model characterizes how S(t) is changing.
MA354 Math Modeling Introduction. Outline A. Three Course Objectives 1. Model literacy: understanding a typical model description 2. Model Analysis 3.
ChE 452 Lecture 09 Mechanisms & Rate Equations 1.
Chemical Kinetics Chemical Kinetics or Rates of reaction.
Kinetics. Definition Kinetics is the study of reaction rates Reaction Rate is the speed of reaction Reaction rate is measured as the change in concentration.
WARM UP “Let us move on and step out boldly, though it be into the night, and we can scarcely see the way.” - Charles B. Newcomb 1)What does this mean.
AME 513 Principles of Combustion Lecture 5 Chemical kinetics II – Multistep mechanisms.
Event-Leaping in the Stochastic Simulation of Biochemistry State Space AnalysisThe Goddess Durga Marc Riedel, EE5393, Univ. of Minnesota.
Modelling Complex Systems Video 4: A simple example in a complex way.
Notes 14-1 Obj 14.1, Factors That Affect Reaction Rates A.) Studies the rate at which a chemical process occurs. B.) Besides information about.
Chapter 13 Chemical Kinetics. Kinetics In kinetics we study the rate at which a chemical process occurs. Besides information about the speed at which.
Reaction Process. A reaction mechanism is a step by step sequence of reactions that show an overall chemical change The same reaction can occur by different.
Traffic Simulation L2 – Introduction to simulation Ing. Ondřej Přibyl, Ph.D.
ChE 402: Chemical Reaction Engineering
Reaction Process.
Factors that Affect Reaction Rate Constant
Stochastic compartmental modeling with IDM-CMS
Computational Biology
Chapter 12: Chemical Kinetics
Presentation transcript:

Stochastic Simulation of Biological Systems

Chemical Reactions Reactants  Products m 1 R 1 + m 2 R 2 + ··· + m r R r – ! n 1 P 1 + n 2 P 2 + ··· + n p P p

Example 3 reactions, 2 species: Y 1 ! 2Y 1 (1) Y 1 + Y 2 ! 2Y 2 (2) Y 2 !  (3) Lotka-Volterra

Representations (I) Y1Y2 110= A A = Net Effect Matrix

Example x(t 0 ) = (105) Reaction (2) fires at time t 1 > t 0 Then x(t 1 ) = x(t 0 ) + r.A = x(t 0 ) + (0 1 0).A = (105) + (-11) = (96)

Representations (II) SBML Electronic XML-based system Represent models in a standard format Sharing models Transferring models between different software systems

Simulating the LV model ODEs Use 2 assumptions (i) Continuous quantities (not integers) (ii) System behaves deterministically Assumptions are often appropriate….. ….but not always.

Y 1 ! 2Y 1 (1) Y 1 + Y 2 ! 2Y 2 (2) Y 2 !  (3) c 1, c 2, and c 3 are the rate constants for reactions 1, 2, and 3 respectively.

Start at time t 0 and state x 0 Simulate time of first reaction event ‘Hazards’ of the three reactions are: h 1 =c 1 y 1 h 2 =c 2 y 1 y 2 h 3 =c 3 y 2 Total hazard function is h 0 =h 1 +h 2 +h 3 h 0 is constant during inter-event time periods T ~ Exponential(h 0 )

Now select which of the 3 reactions has occurred. Probability of choosing reaction i is given by: h i / h 0

Update system time: t := t 0 + T Update state vector: x := x 0 + r i.A

Continue moving forwards in time Gillespie’s Stochastic Simulation Algorithm (the SSA) A single run generates a time vector (tvec) and a state matrix (xmat) Algorithm must be run many times Calculate statistical quantities E.g. mean and standard deviation of Y 1 species over the first 50 seconds

SSA is an exact algorithm Each reaction event simulated individually Algorithm must run thousands of times Very time consuming for large, complex systems How to speed things up?

Time Discretization Divide time interval into discrete chunks of width Δt. Go from t to t+Δt in one “leap” More than one reaction may occur in the interval [t, t+Δt) Simulate which reactions have occurred in this interval.

Time interval [0, t] Let X be the number of times reaction 1 fires in [0, t] Divide interval into N discrete chunks of width δt N large, δt small Prob(Reaction 1 fires once in time δt)  h 1.δt Prob(Reaction 1 fires more than once in time δt) is negligible (relative to δt) Then X ~ Bin(N, h 1.δt) = Bin(N, h 1.(t/N)) E(X) = h 1.t As N  , δt  0, X~Poisson(h 1.t)

“Tau-Leap” Algorithm Start at time t 0, state x 0 Select discrete step size,  Move forwards to time t 0 +  Simulate the number of firings of reaction i during the interval as a Poisson(h i.  ) (i=1,…n) Update the system state according to the reactions which have occurred. Now advance to t , t , ……

Tau-Leap is faster than the SSA But some accuracy is sacrificed Relies on a sensible choice of 

Hybrid Algorithms Divide the system species and reactions into discrete and continuous regimes The discrete regime contains species with low concentrations and reactions which fire infrequently The continuous regime contains species with high concentrations and reactions which fire frequently

Use different methods for simulating the two regimes. Simulate the continuous regime using deterministic or stochastic differential equations Simulate the discrete regime using the SSA The two regimes must be syncronized Some species will be involved in both regimes

Measuring Accuracy The accuracy of an approximate algorithm (leaping or hybrid) can be assessed by comparing results with SSA Run SSA and approximate algorithm 1,000 times for the same system, using the same rate constants and initial concentrations Do the results from the approximate algorithm closely resemble the results from the SSA?

The Test Suite for Stochastic Simulators Available at Contains stochastic simulation results for some simple biological systems Results generated using analytic expressions for species means and standard deviations. Can be used to measure the correctness of a stochastic simulator

Testing stochastic simulators is not straightforward. Even if a simulator is working perfectly, it will not produce exactly the results contained in the test suite. Need statistical method to compare the simulator results with the test suite results. E.g. if the concentration of species X after 10 seconds varies by 1% from the test suite value, is this evidence of a problem with the simulator?