ma_terms: Calculates all mass action terms prod_{i \in N^-} S_i^|N_i|

Description Usage Arguments Value See Also Examples

∏_{i \in N^-} S_i^|N_i|

Description

Calculates all mass action terms

∏_{i \in N^-} S_i^|N_i|

Usage

1
ma_terms(s_matrix, concs)

Arguments

s_matrix

The stochiometric matrix.

concs

The concentrations of the substrates. Can be one of two

  • A named vector containing the concentratiions for all substrates, where its names come from the same set as the rownames of S.

  • A data frame with one column names 'name' containing the names and all other columns containing multiple concentration entries.

Value

Either vector of length n_r containing the mass-action terms, if concs was a vector, or a matrix with n_r rows containing the mass-action in its columns.

See Also

stoichiometry to calculate the stochiometric matrix.

Examples

1
2
3
4
5
data(eryth)
S <- stoichiometry(eryth)
concs <- runif(nrow(S))
names(concs) <- rownames(S)
mats <- ma_terms(S, concs)

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