adding System bio simulation capability #41
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The code changes involve adding a new file called
systembio.jl
and updating theProject.toml
file to include additional dependencies.The
systembio.jl
file introduces a heterogeneous cell system example using a Petri Net and DifferentialEquations.jl. The file defines multiple types of cells (NormalCellA, NormalCellB, CancerCellA, CancerCellB) and a CellAgent struct that contains a DiffEqAgent for representing the dynamical state of a cell. It also defines helper functions for creating DiffEqAgents and CellAgents, simulating the dynamical state of cells, and performing transitions in the Petri Net.These changes address the need for a system biology example to model and simulate the behavior of different types of cells with different dynamic states. Using DifferentialEquations.jl and Petri nets, the code provides a framework for studying the cell interactions and their dynamic behavior. The added dependencies enable the code to achieve this functionality by providing the necessary packages for simulation, data manipulation, and visualization.