Learn R Programming

dMod (version 0.1)

addObservable: Add observables to ODEs

Description

Add observables to ODEs

Usage

addObservable(observable, f)

Arguments

observable
named character vector. Names correspond to observable names, the chars correspond to the observation function
f
equation list

Value

  • An object of class eqnList, a named vector with the equations. Contains attributes "SMatrix" (the stoichiometric matrix), "species" (the state names), "rates" (the rate expressions) and "description".

Details

Observables are translated into an ODE and added to the list of equations

Examples

Run this code
reactions <- data.frame(Description = c("Activation", "Deactivation"),
                        Rate = c("act*A", "deact*pA"), A=c(-1,1), pA=c(1, -1))
f <- generateEquations(reactions)
myobs <- c(tA = "s1*(pA + A)", dA = "s2*(pA-A)")
f <- addObservable(myobs, f)

Run the code above in your browser using DataLab