pwStochasticSimulation
[Ts, Ns] = pwStochasticSimulation(x0,n0,k,c,D,L,tf)
Stochastic Gillespie simulation for the highest selected model.
This function is a PottersWheel wrapper for the published Matlab
script of Ullah et al. available at
http://www.sbi.uni-rostock.de/publications/matlab-paper/stoch.m
It can be applied in conjunction with
pwGetStoichiometricMatrix
Description
[Ts,Ns] = pwStochasticSimulation(x0,n0,k,c,D,L,tf)
performs a stochastic simulation of a biochemical network composed of
M elementary reactions, using the Gillespie algorithm.
[Ts,Ns] = pwStochasticSimulation(x0,n0,k,c,D,L,tf,R)
performs R runs of stochastic simulation. The outputs Ts and Ns are cell
arrays where each cell corresponds to one run.
[Ts,Ns,TT,NBAR] = pwStochasticSimulation(x0,n0,k,c,D,L,tf,R)
where R>1, also returns the ensemble of times in the row vector TT and
the mean of Ns over R runs in matrix NBAR of the size of Ns.
pwStochasticSimulation(x0,n0,k,c,D,L,tf,1)
is the same as
pwStochasticSimulation(x0,n0,k,c,D,L,tf).
Reference
Ullah et al, IEE Proc.-Syst. Biol., Vol. 153, No. 2, March 2006
Deterministic modelling and stochastic simulation of
biochemical pathways using MATLAB