Hi Tolomè,
> Hi, I'm working with Artur. What we are interested in are the net number
> a reactions occurred along a randomly generated trajectory, and I agree
> that the easy hack that was proposed above should make this number
> accessible without affecting the reaction kinetics.
OK, good to hear that this hack is actually exactly what you need.
> That's what we refer to as the reaction flux, and its definition does
> not invoke any underlying deterministic model. So, I made the following
> hypothesis. Consider reaction X + Y -> Z with mass-action law. What
> COPASI might be calculating is the product of the number of particles
> X*Y (which are random variables) multiplied by the rate constant of the
> reaction, which is a noninteger number. This is very different from
> actually counting the number of times reaction X + Y -> Z has happened.
>
> Is that it?
If you do a stochastic simulation in Copasi it uses a Gillespie-type
algorithm internally that simulates each and every single, discrete
reactive event (with exponentially distributed time steps and reaction
probabilities proportional to their propensities etc.)
However, if you request the output of a "reaction event flux", e.g. if
you define a corresponding plot or have it in one of your reports, what
Copasi will calculate is exactly what you described. It is the -possibly
fractional- number of reaction events per time unit in a deterministic
interpretation of the model, which for the type of reaction you used in
your example is exactly the same as the average number of reaction
events per time unit in a stochastic interpretation.
Please keep in mind though:
- Copasi calculates these values only at the points in time where an
output is needed.
- These calculations don't really affect the stochastic simulation, e.g.
they are only for outputting purposes.
- Copasi actually only uses discrete particle numbers during stochastic
simulations. If you let Copasi output the reaction event fluxes during a
deterministic simulation then it will internally use fractional particle
numbers/concentrations for the calculation of reaction event fluxes.
Hope that helps!
Juergen