kcone: Get the k-cone from a given flux cone.

Description Usage Arguments Value See Also Examples

Description

kcone() builds the k-cone from a given flux cone basis V and a set of metabolic terms M by calculating M^{-1}V.

Usage

1
kcone(V, mats, normalize = FALSE)

Arguments

V

The flux cone basis. Rows denote the dimensions and columns the individual basis vectors.

mats

The metabolic terms. A vector with as many entries as rows in V. All entries hsould be larger than 0.

normalize

Whether the basis vectors should be scaled to unit length. Not recommened for differential analysis.

Value

The obtained k-cone as a matrix.

See Also

polytope_basis for a way to calculate the flux cone, ma_terms to get mass action term.

Examples

1
2
3
4
5
data(eryth)
S <- matrix(c(1,0,0,1,-1,0, 0, -1), nrow=2)
rownames(S) <- c('A', 'B')
V <- polytope_basis(S)
K <- kcone(V, runif(ncol(S)))

cdiener/dycone documentation built on May 13, 2019, 2:41 p.m.