Skip to content

Refactoring network analysis docs #1142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 32 commits into from
Apr 14, 2025
Merged

Refactoring network analysis docs #1142

merged 32 commits into from
Apr 14, 2025

Conversation

vyudu
Copy link
Member

@vyudu vyudu commented Dec 2, 2024

Probably worth discussing more but my thought here is to make Network Analysis its own section of the Catalyst docs, with subsections for the ODE decompositions, structural properties and chemical reaction network theory, and a third section for advanced stuff that links to CatalystNetworkAnalysis.

Added sections for the new API functions in #1134 and building symbolic functions from the ODEs to the ODE docs. Added a section on complex/detailed balance to the CRNT docs.

Need to: add a section on the deficiency one theorem, bring in the CatalystNetworkAnalysis docs, add code examples to the complex/detailed balance section (including stuff about the precision limitations of isdetailedbalanced)

@isaacsas
Copy link
Member

Having network analysis be its own section is fine. LMK when you feel this is ready to review.

@vyudu vyudu marked this pull request as ready for review February 5, 2025 02:43
@isaacsas
Copy link
Member

isaacsas commented Apr 2, 2025

Can you remove the full repo format? We haven’t been using formatter due to the bugs it introduced in one release last year. While I’m fine with re-enabling it that should really be in a separate PR so we can check nothing is getting broken. (Feel free to run it on the files you are actually editing here though.)

@isaacsas
Copy link
Member

isaacsas commented Apr 8, 2025

@vyudu do you think you'll be able to clean this up with regards to the formatter changes soon so we can review? We are basically done now with the stuff that was holding back V15.

@vyudu
Copy link
Member Author

vyudu commented Apr 8, 2025 via email

@isaacsas
Copy link
Member

isaacsas commented Apr 8, 2025

Great, thanks!

@vyudu
Copy link
Member Author

vyudu commented Apr 13, 2025

@isaacsas Have gone through and made fixes

@TorkelE
Copy link
Member

TorkelE commented Apr 13, 2025

Haven't read the updated version (going to bed now), bit one thought. Noe that network analysis is its own section, wouldn't it make sense to put the network analysis section after the model simulation one? Simulation ls is arguably the primary aspect of Catalyst, so it would make sense to that it comes directly after the model creation section.

@vyudu
Copy link
Member Author

vyudu commented Apr 13, 2025 via email

@isaacsas
Copy link
Member

@vyudu, yes make that update when you chance, along with fixing the doc build error. I'd make that update myself but you seem to have your Catalyst fork setup so others don't have permission to push to it.

@vyudu
Copy link
Member Author

vyudu commented Apr 14, 2025

Hmm not sure why that is, it seems like I have allow edits by maintainers on. But I think I've fixed it, let me know when I should re-run this when the doc build is working again

@isaacsas
Copy link
Member

Doc builds were working yesterday outside this PR. Are you sure that error isn’t from an update you made?

@TorkelE
Copy link
Member

TorkelE commented Apr 14, 2025

I think it because the Catalyst version on master have been updated to v15

version = "15.0.0"

however, in e.g. this PR the docs are marked as for Catlayst v14, which is incompatible with the Catalyst version.

@TorkelE
Copy link
Member

TorkelE commented Apr 14, 2025

I have updated the doc version here: #1233 Once merged this one should be able to run the docs again.

@TorkelE TorkelE closed this Apr 14, 2025
@TorkelE TorkelE reopened this Apr 14, 2025
@TorkelE
Copy link
Member

TorkelE commented Apr 14, 2025

Tests and docs passes now

@@ -23,7 +23,7 @@ etc).
- The [Catalyst.jl API](@ref api) provides functionality for building networks programmatically and for composing multiple networks together.
- 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).
- 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.
- A [network analysis suite](@ref network_analysis) permits the computation of linkage classes, deficiencies, reversibility, and other network properties.
- A [network analysis suite](@ref network_analysis_structural_aspects) permits the computation of linkage classes, deficiencies, reversibility, and other network properties.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A similar update will be needed on the GitHub main readme page. However, that links to the actual website, so if you want we can update after the docs have been pushed and are avaiable.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, sounds good

@@ -0,0 +1,35 @@
# [Caching of Network Properties in `ReactionSystems`](@id network_analysis_caching_properties)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd probably call this file "network_properties_caching" (since that is what it is about).

(k1,k2),A <--> B
(k3,k4),A + C <--> D
(k5,k6),D <--> B+E
(k7,k8),B+E <--> A+C
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here and in some places there is no space between the rate and the reaction itself (but in other places there is). If this is not intentional you might want to update (but if it is, no worries!).

@TorkelE TorkelE mentioned this pull request Apr 14, 2025
@vyudu vyudu merged commit 4da11bd into SciML:master Apr 14, 2025
18 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants