mass_action: Calculates a mass-action reaction rate

Description Usage Arguments Value See Also Examples

Description

mass_action is mostly used inetrnally to get mass action rates for a single column of the stochiometric matrix. It does not check whether the ordering of substrates in the stoichiometry and concs is corrects, so please make sure that the indices in substrates and concs coincide.

Usage

1
mass_action(substrates, concs)

Arguments

substrates

stoichiometry of the substrates. Must have the same length as concs.

concs

The concentrations used for the substrates

Value

The mass action term

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

See Also

stoichiometry to generate the stochiometric matrix from a reaction list. ma_terms for a wrapper that calculates all mass-action terms for a stochiometric matrix and also checks for correct ordering of the substrates. ma_terms to calculate all mass-action terms at once.

Examples

1
2
3
data(eryth)
S <- stoichiometry(eryth)
ma1 <- mass_action(S[,1], runif(nrow(S)))

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