Skip to content

Commit 4da11bd

Browse files
authored
Merge pull request #1142 from vyudu/sfr-docs
Refactoring network analysis docs
2 parents 25509c9 + 6580c26 commit 4da11bd

File tree

10 files changed

+843
-541
lines changed

10 files changed

+843
-541
lines changed

docs/pages.jl

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ pages = Any[
1717
"model_creation/model_file_loading_and_export.md",
1818
"model_creation/model_visualisation.md",
1919
"model_creation/reactionsystem_content_accessing.md",
20-
"model_creation/network_analysis.md",
2120
"model_creation/chemistry_related_functionality.md",
2221
"Examples" => Any[
2322
"model_creation/examples/basic_CRN_library.md",
@@ -40,6 +39,11 @@ pages = Any[
4039
"model_simulation/examples/interactive_brusselator_simulation.md"
4140
]
4241
],
42+
"Network Analysis" => Any[
43+
"network_analysis/odes.md",
44+
"network_analysis/crn_theory.md",
45+
"network_analysis/network_properties.md"
46+
],
4347
"Steady state analysis" => Any[
4448
"steady_state_functionality/homotopy_continuation.md",
4549
"steady_state_functionality/nonlinear_solve.md",
@@ -69,6 +73,9 @@ pages = Any[
6973
"spatial_modelling/spatial_jump_simulations.md"
7074
],
7175
"FAQs" => "faqs.md",
72-
"API" => "api.md",
76+
"API" => Any[
77+
"api/core_api.md",
78+
"api/network_analysis_api.md"
79+
],
7380
"Developer Documentation" => "devdocs/dev_guide.md"
7481
]

docs/src/api.md renamed to docs/src/api/core_api.md

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ ReactionSystem
8686
```
8787

8888
## [Options for the `@reaction_network` DSL](@id api_dsl_options)
89-
We have [previously described](@ref dsl_advanced_options) how options allow one to supply additional information to a [`ReactionSystem`](@ref) created with the DSL. Here follows a list
89+
We have [previously described](@ref dsl_advanced_options) how options permit the user to supply non-reaction information to [`ReactionSystem`](@ref) created through the DSL. Here follows a list
9090
of all options currently available.
9191
- [`parameters`](@ref dsl_advanced_options_declaring_species_and_parameters): Allows the designation of a set of symbols as system parameters.
9292
- [`species`](@ref dsl_advanced_options_declaring_species_and_parameters): Allows the designation of a set of symbols as system species.
@@ -100,7 +100,6 @@ of all options currently available.
100100
- [`continuous_events`](@ref constraint_equations_events): Allows the creation of continuous events.
101101
- [`discrete_events`](@ref constraint_equations_events): Allows the creation of discrete events.
102102
- [`combinatoric_ratelaws`](@ref faq_combinatoric_ratelaws): Takes a single option (`true` or `false`), which sets whether to use combinatorial rate laws.
103-
- [`require_declaration`](@ref dsl_advanced_options_require_dec): Turns off all inference of parameters, species, variables, the default differential, and observables (requiring these to be explicitly declared using e.g. `@species`).
104103

105104
## [ModelingToolkit and Catalyst accessor functions](@id api_accessor_functions)
106105
A [`ReactionSystem`](@ref) is an instance of a
@@ -124,8 +123,7 @@ direct access to the corresponding internal fields of the `ReactionSystem`)
124123
entries in `get_species(rn)` correspond to the first `length(get_species(rn))`
125124
components in `get_unknowns(rn)`.
126125
* `ModelingToolkit.get_ps(rn)` is a vector that collects all the parameters
127-
defined *within* reactions in `rn`. This includes initialisation parameters (which
128-
are added to the system by ModelingToolkit, and not the user).
126+
defined *within* reactions in `rn`.
129127
* `ModelingToolkit.get_eqs(rn)` is a vector that collects all the
130128
[`Reaction`](@ref)s and `Symbolics.Equation` defined within `rn`, ordering all
131129
`Reaction`s before `Equation`s.
@@ -240,32 +238,6 @@ ModelingToolkit.compose
240238
Catalyst.flatten
241239
```
242240

243-
## Network analysis and representations
244-
Note, currently API functions for network analysis and conservation law analysis
245-
do not work with constant species (currently only generated by SBMLToolkit).
246-
247-
```@docs
248-
conservationlaws
249-
conservedquantities
250-
conservedequations
251-
conservationlaw_constants
252-
ReactionComplexElement
253-
ReactionComplex
254-
reactioncomplexmap
255-
reactioncomplexes
256-
incidencemat
257-
complexstoichmat
258-
complexoutgoingmat
259-
incidencematgraph
260-
linkageclasses
261-
deficiency
262-
subnetworks
263-
linkagedeficiencies
264-
isreversible
265-
isweaklyreversible
266-
reset_networkproperties!
267-
```
268-
269241
## Network comparison
270242
```@docs
271243
==(rn1::Reaction, rn2::Reaction)

docs/src/api/network_analysis_api.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# [Network analysis and representations](@id api_network_analysis)
2+
```@meta
3+
CurrentModule = Catalyst
4+
```
5+
6+
Note, currently API functions for network analysis and conservation law analysis
7+
do not work with constant species (which are generated by SBML, and can be [declared
8+
in Catalyst as well](@ref dsl_advanced_options_constant_species).
9+
10+
For more information about these functions, please see the sections of the docs on
11+
[network ODE representation](@ref network_analysis_odes) and [chemical reaction network theory](@ref network_analysis_structural_aspects).
12+
13+
```@docs
14+
conservationlaws
15+
conservedquantities
16+
conservedequations
17+
conservationlaw_constants
18+
ReactionComplexElement
19+
ReactionComplex
20+
reactioncomplexmap
21+
reactioncomplexes
22+
incidencemat
23+
incidencematgraph
24+
complexstoichmat
25+
complexoutgoingmat
26+
fluxmat
27+
adjacencymat
28+
laplacianmat
29+
massactionvector
30+
linkageclasses
31+
deficiency
32+
linkagedeficiencies
33+
satisfiesdeficiencyone
34+
satisfiesdeficiencyzero
35+
subnetworks
36+
isreversible
37+
isweaklyreversible
38+
iscomplexbalanced
39+
isdetailedbalanced
40+
robustspecies
41+
reset_networkproperties!
42+
```

docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ etc).
2323
- The [Catalyst.jl API](@ref api) provides functionality for building networks programmatically and for composing multiple networks together.
2424
- Leveraging ModelingToolkit, generated models can be converted to symbolic reaction rate equation ODE models, symbolic Chemical Langevin Equation models, and symbolic stochastic chemical kinetics (jump process) models. These can be simulated using any [DifferentialEquations.jl](https://docs.sciml.ai/DiffEqDocs/stable/) [ODE/SDE/jump solver](@ref simulation_intro), and can be used within `EnsembleProblem`s for carrying out [parallelized parameter sweeps and statistical sampling](@ref ensemble_simulations). Plot recipes are available for [visualization of all solutions](@ref simulation_plotting).
2525
- Non-integer (e.g. `Float64`) stoichiometric coefficients [are supported](@ref dsl_description_stoichiometries_decimal) for generating ODE models, and symbolic expressions for stoichiometric coefficients [are supported](@ref parametric_stoichiometry) for all system types.
26-
- A [network analysis suite](@ref network_analysis) permits the computation of linkage classes, deficiencies, reversibility, and other network properties.
26+
- A [network analysis suite](@ref network_analysis_structural_aspects) permits the computation of linkage classes, deficiencies, reversibility, and other network properties.
2727
- [Conservation laws can be detected and utilized](@ref conservation_laws) to reduce system sizes, and to generate non-singular Jacobians (e.g. during conversion to ODEs, SDEs, and steady state equations).
2828
- Catalyst reaction network models can be [coupled with differential and algebraic equations](@ref constraint_equations_coupling_constraints) (which are then incorporated during conversion to ODEs, SDEs, and steady state equations).
2929
- Models can be [coupled with events](@ref constraint_equations_events) that affect the system and its state during simulations.

0 commit comments

Comments
 (0)