Catalyst.jl icon indicating copy to clipboard operation
Catalyst.jl copied to clipboard

Obtaining a reaction network from the system of differential equations

Open yewalenikhil65 opened this issue 3 years ago • 7 comments

This question is out of a curiosity, As the documentation says , odesys = convert(ODESystem, repressilator) will convert a reaction network called repressilator to a system of ODEs.

Is it possible to do reverse using Catalyst ? obtain the reaction network of species from an ODEsystem ?

yewalenikhil65 avatar Sep 21 '20 14:09 yewalenikhil65

Not at the moment, but this is certainly a feature we could think about.

isaacsas avatar Sep 21 '20 14:09 isaacsas

That would be great. Thank you sir!

yewalenikhil65 avatar Sep 21 '20 14:09 yewalenikhil65

Let's keep this open so this stays on our radar.

isaacsas avatar Sep 21 '20 14:09 isaacsas

I think following mentioned model might be useful for this issue as a reference

  1. MOCCASIN: converting MATLAB ODE models to SBML https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4908318/

  2. https://www.sciencedirect.com/science/article/pii/S0304397514006197#se0020

yewalenikhil65 avatar Nov 05 '20 21:11 yewalenikhil65

Hi @isaacsas This fails if I try solving it using GIllespie SSAStepper() as I think jump/gillespie problems require only reaction functions to work ?

Linking and commenting the same issue here as I think it is related to this issue also somehow (converting ODEs to reaction network). May help in future

yewalenikhil65 avatar Jan 22 '21 13:01 yewalenikhil65

To use SSAStepper you need to describe your system as a collection of (constant rate) jumps, not as the derivative function you give the ODEs. It can't take an arbitrary function that represents the RHS of an ODE and decompose it into a collection of jumps for you. Some things that can be represented in an ODE are fundamentally not representable as a jump within a Poisson process (for example, a time-dependent forcing function that you apply to a system).

That said, can't you formulate the coagulation model as a jump process to begin with?

isaacsas avatar Jan 22 '21 16:01 isaacsas

Commenting on original issue to continue

yewalenikhil65 avatar Jan 22 '21 16:01 yewalenikhil65