You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ODE/SDE/jump solver](@ref ref), and can be used within `EnsembleProblem`s for carrying
34
33
out [parallelized parameter sweeps and statistical sampling](@ref ref). Plot recipes
@@ -54,8 +53,7 @@ etc).
54
53
deterministic and stochastic terms within resulting ODE, SDE or jump models.
55
54
-[Steady states](@ref ref) (and their [stabilities](@ref ref)) can be computed for model ODE representations.
56
55
57
-
58
-
#### [Features of Catalyst composing with other packages](@id doc_home_features_composed)
56
+
#### Features of Catalyst composing with other packages
59
57
-[OrdinaryDiffEq.jl](https://github.com/SciML/OrdinaryDiffEq.jl) Can be used to [perform model ODE
60
58
simulations](@ref ref).
61
59
-[StochasticDiffEq.jl](https://github.com/SciML/StochasticDiffEq.jl) Can be used to [perform model
@@ -85,7 +83,7 @@ etc).
85
83
-[GlobalSensitivity.jl](https://github.com/SciML/GlobalSensitivity.jl) can be used to perform
86
84
[global sensitivity analysis](@ref ref) of model behaviours.
87
85
88
-
#### [Features of packages built upon Catalyst](@id doc_home_features_other_packages)
86
+
#### Features of packages built upon Catalyst
89
87
- Catalyst [`ReactionSystem`](@ref)s can be [imported from SBML files](@ref ref) via
90
88
[SBMLImporter.jl](https://github.com/SciML/SBMLImporter.jl) and [SBMLToolkit.jl](https://github.com/SciML/SBMLToolkit.jl),
91
89
and [from BioNetGen .net files](@ref ref) and various stoichiometric matrix network representations
@@ -104,7 +102,6 @@ etc).
104
102
-[PEtab.jl](https://github.com/sebapersson/PEtab.jl) a package that implements the PEtab format for
105
103
fitting reaction network ODEs to data. Input can be provided either as SBML files or as Catalyst
106
104
`ReactionSystem`s.
107
-
108
105
109
106
## [How to read this documentation](@id doc_home_documentation)
110
107
The Catalyst documentation is separated into sections describing Catalyst's various features. Where appropriate, some sections will also give advice on best practices for various modelling workflows, and provide links with further reading. Each section also contains a set of relevant example workflows. Finally, the [API](@ref api) section contains a list of all functions exported by Catalyst (as well as descriptions of them and their inputs and outputs).
@@ -120,7 +117,7 @@ For most code blocks in this documentation, the output of the last line of code
120
117
and
121
118
```@example home1
122
119
@reaction_network begin
123
-
(p,d), 0 <--> X
120
+
(p,d), 0 <--> X
124
121
end
125
122
```
126
123
However, in some situations (e.g. when output is extensive, or irrelevant to what is currently being described) we have disabled this, e.g. like here:
@@ -131,7 +128,7 @@ nothing # hide
131
128
and
132
129
```@example home1
133
130
@reaction_network begin
134
-
(p,d), 0 <--> X
131
+
(p,d), 0 <--> X
135
132
end
136
133
nothing # hide
137
134
```
@@ -152,21 +149,21 @@ is also needed.
152
149
153
150
A more throughout guide for setting up Catalyst and installing Julia packages can be found [here](@ref ref).
In the above example, we used basic Catalyst-based workflows to simulate a simple model. Here we instead show how various Catalyst features can compose to create a much more advanced model. Our model describes how the volume of a cell ($V$) is affected by a growth factor ($G$). Typically the growth factor is inactive ($Gi$), but it is activated ($Ga$) by the presence of sunlight (modeled as the cyclic sinusoid $kA*(sin(t)+1)$). When the cell reaches a critical volume ($V$) it goes through cell division. First, we declare our model:
200
-
```@example home3
201
-
using Catalyst, Plots, StochasticDiffEq # hide
193
+
## Elaborate example
194
+
In the above example, we used basic Catalyst-based workflows to simulate a simple model. Here we instead show how various Catalyst features can compose to create a much more advanced model. Our model describes how the volume of a cell ($V$) is affected by a growth factor ($G$). The growth factor only promotes growth while in its phosphorylated form ($Gᴾ$). The phosphorylation of $G$ ($G \to Gᴾ$) is promoted by sunlight (modelled as the cyclic sinusoid $kₐ*(sin(t)+1)$) phosphorylates the growth factor (producing $Gᴾ$). When the cell reaches a critical volume ($V$) it goes through cell division. First, we declare our model:
195
+
```@example home_elaborate_example
196
+
using Catalyst
202
197
cell_model = @reaction_network begin
203
-
@parameters V_thres g
204
-
@equations begin
205
-
D(V) ~ g*Ga
206
-
end
207
-
@continuous_events begin
208
-
[V ~ V_thres] => [V ~ V/2]
209
-
end
210
-
(kA*(sin(t)+1), kI), Gi <--> Ga
198
+
@parameters Vₘₐₓ g Ω
199
+
@default_noise_scaling Ω
200
+
@equations begin
201
+
D(V) ~ g*Gᴾ
202
+
end
203
+
@continuous_events begin
204
+
[V ~ Vₘₐₓ] => [V ~ V/2]
205
+
end
206
+
kₚ*(sin(t)+1)/V, G --> Gᴾ
207
+
kᵢ/V, Gᴾ --> G
211
208
end
212
209
```
213
210
Next, we can use [Latexify.jl](https://korsbo.github.io/Latexify.jl/stable/) to show the ordinary differential equations associated with this model:
214
-
```@examplehome3
211
+
```@examplehome_elaborate_example
215
212
using Latexify
216
213
latexify(cell_model; form = :ode)
217
214
```
218
-
In this case we would like to perform stochastic simulations, so we transform our model to an SDE:
0 commit comments