SciML / Catalyst.jl

Chemical reaction network and systems biology interface for scientific machine learning (SciML). High performance, GPU-parallelized, and O(1) solvers in open source software.
https://docs.sciml.ai/Catalyst/stable/
Other
453 stars 73 forks source link

Representing Spatial Reaction Networks #229

Closed isaacsas closed 8 months ago

isaacsas commented 4 years ago

Issues to consider

ludoro commented 3 years ago

Talking about epidemiological modeling, it could be also nice to take into account the possibility of having some ways to specify compartments. Say we have a simple SIR model, with I = {I_1,I_2,...,I_n}, instead of writing all the reactions "by hand" (which in this case is doable), there could be the possibility to let the user specify all the "type" of reactions that he wants, which rates etc and then call the @reaction_network macro with this information to build the network.
I am currently working on a proof of concept using catalyst for this, maybe I can provide some code in the near future to help brainstorming. As discussed with isaacsas on slack, this could be related to "spatial" information of the network.

isaacsas commented 3 years ago

Some modalities to consider:

TorkelE commented 3 years ago

Would it make sense to allow an arbitrary number of graphs to be in the input, and then reactions could use "neighbours" through any select graph?

In the case of a system where one has reactions using neighbours and neighbours neighbours, there's one graph associated with each type. That way one could avoid having to handle various weird connection schemes, and leave it to the users to come up with a way of producing the appropriate graphs for their desired type? (possibly adding a helper method for producing common graphs, like neighbours neighbours, from a given one)

Never really doing much spatial stuff and not to sure about this stuff, but just throwing it out there.

TorkelE commented 8 months ago

(Simple) spatial models are currently possible. I have also created an issue for gathering future steps for improving spatial implementations at: https://github.com/SciML/Catalyst.jl/issues/726. Would it make sense to close this and gather future spatial discussions there?

TorkelE commented 8 months ago

Stuff from here is now intergrated to https://github.com/SciML/Catalyst.jl/issues/726