@@ -4,7 +4,7 @@ author: Samuel Isaacson
44---
55
66The [DiffEqBiological
7- API](http://docs.juliadiffeq.org/latest /apis/diffeqbio.html) provides a
7+ API](http://docs.juliadiffeq.org/dev /apis/diffeqbio.html) provides a
88collection of functions for easily accessing network properties, and for
99incrementally building and extending a network. In this tutorial we'll go
1010through the API, and then illustrate how to programmatically construct a
@@ -45,7 +45,7 @@ display("text/latex", "$x");
4545---
4646## Network Properties
4747[Basic
48- properties](http://docs.juliadiffeq.org/latest /apis/diffeqbio.html#Basic-properties-1)
48+ properties](http://docs.juliadiffeq.org/dev /apis/diffeqbio.html#Basic-properties-1)
4949of the generated network include the `speciesmap` and `paramsmap` functions we
5050examined in the last tutorial, along with the corresponding `species` and
5151`params` functions:
@@ -61,7 +61,7 @@ The numbers of species, parameters and reactions can be accessed using
6161`numspecies(rn)`, `numparams(rn)` and `numreactions(rn)`.
6262
6363A number of functions are available to access [properties of
64- reactions](http://docs.juliadiffeq.org/latest /apis/diffeqbio.html#Reaction-Properties-1)
64+ reactions](http://docs.juliadiffeq.org/dev /apis/diffeqbio.html#Reaction-Properties-1)
6565within the generated network, including `substrates`, `products`, `dependents`,
6666`ismassaction`, `substratestoich`, `substratesymstoich`, `productstoich`,
6767`productsymstoich`, and `netstoich`. Each of these functions takes two
@@ -93,7 +93,7 @@ and `productstoich` are defined similarly.
9393
9494Several functions are also provided that calculate different types of
9595[dependency
96- graphs](http://docs.juliadiffeq.org/latest /apis/diffeqbio.html#Dependency-Graphs-1).
96+ graphs](http://docs.juliadiffeq.org/dev /apis/diffeqbio.html#Dependency-Graphs-1).
9797These include `rxtospecies_depgraph`, which provides a mapping from reaction
9898index to the indices of species whose population changes when the reaction
9999occurs:
@@ -136,7 +136,7 @@ returning information that is already stored within the generated
136136`reaction_network`. For these functions, modifying the returned data structures
137137may lead to inconsistent internal state within the network. As such, they should
138138be used for accessing, but not modifying, network properties. The [API
139- documentation](http://docs.juliadiffeq.org/latest /apis/diffeqbio.html)
139+ documentation](http://docs.juliadiffeq.org/dev /apis/diffeqbio.html)
140140indicates which functions return newly allocated data structures and which
141141return data stored within the `reaction_network`.
142142
@@ -158,7 +158,7 @@ extended through a programmatic interface: `@min_reaction_network` and
158158`@empty_reaction_network`. We now give an introduction to constructing these
159159more minimal network representations, and how they can be programmatically
160160extended. See also the relevant [API
161- section](http://docs.juliadiffeq.org/latest /apis/diffeqbio.html#Reaction-Network-Generation-Macros-1).
161+ section](http://docs.juliadiffeq.org/dev /apis/diffeqbio.html#Reaction-Network-Generation-Macros-1).
162162
163163The `@min_reaction_network` macro works identically to the `@reaction_network`
164164macro, but the generated network will only be complete with respect to its
@@ -187,7 +187,7 @@ the missing reactions. Note, it is required that species and parameters be
187187defined before any reactions using them are added. The necessary network
188188extension functions are given by `addspecies!`, `addparam!` and `addreaction!`,
189189and described in the
190- [API](http://docs.juliadiffeq.org/latest /apis/diffeqbio.html#Functions-to-Add-Species,-Parameters-and-Reactions-to-a-Network-1). To complete `rnmin` we first add the relevant
190+ [API](http://docs.juliadiffeq.org/dev /apis/diffeqbio.html#Functions-to-Add-Species,-Parameters-and-Reactions-to-a-Network-1). To complete `rnmin` we first add the relevant
191191species:
192192
193193```julia
@@ -271,7 +271,7 @@ evaluating Jacobians. For large networks this can give a significant speed-up in
271271the time required for constructing an ODE model. Each function and its
272272associated keyword arguments are described in the API section, [Functions to add
273273ODEs, SDEs or Jumps to a
274- Network](http://docs.juliadiffeq.org/latest /apis/diffeqbio.html#Functions-to-Add-ODEs,-SDEs-or-Jumps-to-a-Network-1).
274+ Network](http://docs.juliadiffeq.org/dev /apis/diffeqbio.html#Functions-to-Add-ODEs,-SDEs-or-Jumps-to-a-Network-1).
275275
276276Let's extend `rnmin` to include the needed functions for use in ODE
277277solvers:
@@ -281,13 +281,13 @@ addodes!(rnmin)
281281```
282282
283283The [Generated Functions for
284- Models](http://docs.juliadiffeq.org/latest /apis/diffeqbio.html#Generated-Functions-for-Models-1)
284+ Models](http://docs.juliadiffeq.org/dev /apis/diffeqbio.html#Generated-Functions-for-Models-1)
285285section of the API shows what functions have been generated. For ODEs these
286286include `oderhsfun(rnmin)`, which returns a function of the form `f(du,u,p,t)`
287287which evaluates the ODEs (i.e. the time derivatives of `u`) within `du`. For
288288each generated function, the corresponding expressions from which it was
289289generated can be retrieved using accessors from the [Generated
290- Expressions](http://docs.juliadiffeq.org/latest /apis/diffeqbio.html#Generated-Expressions-1)
290+ Expressions](http://docs.juliadiffeq.org/dev /apis/diffeqbio.html#Generated-Expressions-1)
291291section of the API. The equations within `du` can be retrieved using the
292292`odeexprs(rnmin)` function. For example:
293293
@@ -324,7 +324,7 @@ derivative functions with respect to the parameters. `paramjacfun(rnmin)` then
324324returns the generated function. It has the form `fpjac(dPJ,u,p,t)`, which
325325given the current solution `u` evaluates the Jacobian matrix with respect to
326326parameters `p` within `dPJ`. For use in DifferentialEquations.jl solvers, an
327- [`ODEFunction`](http://docs.juliadiffeq.org/latest /features/performance_overloads.html)
327+ [`ODEFunction`](http://docs.juliadiffeq.org/dev /features/performance_overloads.html)
328328representation of the ODEs is available from `odefun(rnmin)`.
329329
330330`addsdes!` and `addjumps!` work similarly to complete the network for use in
0 commit comments