add_standard_reaction: Add a standard single fractionation reaction

Description Usage Arguments See Also

View source: R/reaction.R

Description

This adds a standard 1 to 1 (one reactant, one product) reaction with standard fractionation factors to the isopath (for all isotopes that are part of both reactant AND product). Supports reversibility for easy implementation of bi- directional fluxes. This is really intended as a convenience function to make it easy to set up Hayes-type reaction systems. Reaction systems that only have this kind of reaction also have the added benefit of having an analytical solution for steady state. See calculate_steady_state() to make use of this functionalty.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
add_standard_reaction(
  ip,
  equation,
  name = default_rxn_name(ip),
  flux = NULL,
  reversibility,
  ...,
  permil = TRUE,
  eq_ratio = c("P/S", "S/P"),
  abscissa = NULL
)

Arguments

ip

An isopath object to which this reaction should be added.

name

Name of the reaction. Must be unique (i.e. will overwrite an existing reaction of the same name). If omitted (the default), will name the reaction based on the existing number of reactions in the isopath, e.g. "rxn4".

flux

The net flux through the reaction - can be a number or expression (referencing variables and parameters in the system)

reversibility

The reversibility of the reaction. If this is omitted, the reaction is treated as being completely irreversible if a kinetic fractionation factor (alpha.<isotope> or eps.<isotope>) is provided or as in full equilibrium if an equilibrium fractionation factor (alpha.<isotope>.eq or eps.<isotope>.eq) is provided. If anything else is provided (can be a number or expression; evaluation to 0 implies no reversibility, evaluation to 1 implies full reversibility), requires either a fractionation factor for the reverse reaction or an equilibrium fractionation factor to be defined in the dots (...) in addition to the forward kinetic effect for each isotope system involved in the reaction.

...

Fractionation factors for the reaction - can be numbers or expressions (referencing other variables and parameters in the system), naming convention: alpha.<isotope> = ..., or eps.<isotope> = ... for the kinetic isotope effect of the reaction in alpha or epsilon (permil) notation (with definition alpha = k_light / k_heavy and eps = (alpha - 1) * 1000, i.e. normal isotope effects are alpha > 1 and eps > 0, inverse isotope effects are alpha < 1 and eps < 0), and alpha.<isotope>eq ... or eps.<isotope> = ... for equilibrium isotope effects. If only kinetic fractionation factors are provided the reaction is created as an irreversible reaction, if only equilibrium fractionation factors are provided, it's created as an equilibrium reaction. For anything in between, use the reversibility parameter, If reversibility is set, a fractionation factor for the reverse reaction must be provided either directly (alpha.<isotope>.rev = or eps.<isotope>.rev = ...) or in the form of the equilibrium fractionation factor (alpha.<isotope>.eq = ... or eps.<isotope>.eq = ...). All equilibrium fractionatino factors are interpreted as product/substrate or substrate/product depending on the eq_ratio parameter..

permil

Whether the delta and epsilon values are in permil notation (i.e. all multiplied by 1000) or not. All must be in the same notation.

eq_ratio

eq_ratio Whether equilibrium fractionation factors are provided as product / substrate ratios (the default) or substrate / product ratios.

abscissa

The reaction loaction. This is used purely for graphical representation (see generate_reaction_diagram). By default, a decent value will be guessed from the existing reactions in the isopath. This works fairly well as long as all reactions after the first one are added to the isopath in an order such that at least one reactant or product is already part of a different reaction in the pathway.

See Also

Other reaction functions: add_custom_reaction()


sebkopf/isocyclr documentation built on Nov. 9, 2020, 4:18 p.m.