timecourse: Simulates the time course for a given model.

Description Usage Arguments Value Examples

View source: R/ode.R

Description

Simulates the time course for a given model.

Usage

1
timecourse(x0, t, k, S)

Arguments

x0

Initial concentrations of metabolites.

t

A vector of monotonously increasing times where the simulation is evaluated.

k

The vector of kinetic constants used for simulation.

S

The stochiometric matrix of the model.

Value

A matrix containing the time in the first column and temporal concentrations of the metabolites in the following columns.

Examples

1
2
3
4
5
6
7
data(eryth)
S <- stoichiometry(eryth)
x0 <- runif(nrow(S))
names(x0) <- rownames(S)
k <- runif(ncol(S))
t <- seq(0, 100, by=5)
timecourse(x0, t, k, S)

cdiener/dycone documentation built on Sept. 9, 2018, 1:20 p.m.