This example is a purely artificial biochemical network that illustrates
different pathway modeling objects and how they are transformed into
mathematical expressions. The model can be launched in PathwayLab
Research Edition from the Start menu, but its pathway diagram is also
shown as plain graphics in the figure below. The file BioCircuit.nb* used below was generated by
Export to > Mathematica in the PathwayLab menu.
The BioCircuit pathway
Load the package.
Load the model and store it in a variable.
State variables in a pathway model correspond to concentrations of entities described by a set of ordinary differential equations—the rate equations. The full names of these variables are given by their location; see the figure above.
This lists the state variables of the pathway.
A rate variable of a pathway model corresponds to the rate of a
transformation (reaction or translocation) between two entities. The units
of a rate variable are either given in amount per time or in concentration
per time depending on the settings in the Formula Settings dialog window
for the transformation object in PathwayLab Research Edition. In addition to the state and rate variables, there are variables describing compartment volumes and auxiliary entities (described by explicit functions of time). The model variables are defined by expressions containing parameters and states.
This lists the rate variables of the pathway.
This lists all non-state variables of the pathway model.
This lists the model variables that are not rates.
The expressions defining the model variables can be can be extracted as a list of rules.
This gives the rate expression for rate r1.
Here are the parameters of the model.
The values of the parameters are given by a list of rules.
This provides the list of parameter rules, using TableForm
for nice formatting.
This provides the rate expression for rate r1 when the parameters have been replaced by their default numerical values.
The rate equations (or reaction rate equations) of a pathway model are a set of differential equations describing the time evolution of the entity concentrations.
This gives the rate equations for the pathway model.
Here are the rate equations when the parameters have been replaced by their numerical values.
Rate equations can also be presented in mass balance format, relating rate of change of entity concentrations with the transformation rates. Because entity concentrations are used as state variables there is also a term in each differential equation corresponding to dilution for time-varying volumes. Rates defined as absolute (in terms of amount per time) will be divided by the volume of the compartment or location containing the entity to obtain the corresponding concentration flow rate.
Here are the rate equations in mass balance format.
This provides the rate equations in mass balance format assuming constant volume and area of the locations.
The rate equations in symbolic form (given by the default usage of RateEquations) are obtained by substituting the expressions for the model variables intlo the rate equations in mass balance format.
Given the rate equations and a set of initial conditions, the model can
be simulated using NDSolve.
Store the rate equations, states, and initial conditions in variables.
Simulate the system for 40 seconds.
This plots state variables x4 and NucleusVolume`x4.
This changes the parameter r5`Vm to 2.
Here is a new plot of x4 and NucleusVolume`x4.
This compares x4 and NucleusVolume`x4 for the default and new value of r5`Vm.
Because simulation of the rate equations with default parameter values
and initial conditions is a common operation, the PathwayLab
implements an extension of NDSolve for this particular task.
Simulate the rate equations for the model using default parameter values and initial conditions.
This plots rate variables NucleusVolume`Membrane`r6[t] and
r7[t]. Additional options defined by the Graphics`Legend`
standard package are used to add a legend to the plot. Observe the usage
of ModelVariableRules and ParameterRules to obtain the
symbolic expressions for the rates. Note the use below of ReplaceRepeated
(//.) instead of ReplaceAll
(/.), which is required in general but not for this particular model.
One way to understand how sensitive a pathway model is with respect to changes in a particular parameter is to make a number of simulations for different values of the parameter.
Replace the parameter r5`Vm with a dummy variable Vm and replace the remaining parameters with their default values.
Solve the rate equations for Vm between 0.5 and 1.5 in steps of 0.1.
Plot the solutions for x4.
* Note: If you do not own a copy of
Mathematica, you will need to download a
version in order to
view the notebook document.