| checkBalance | R Documentation |
For a given set of stoichiometric reactions, this function evaluates the mass or charge balance using a reference data. The checkBalance function returns a boolean value 'TRUE' if the reaction is balanced. One of 'mFormula', 'mWeight' or 'mCharge' arguments must be given.
checkBalance( reactionList, referenceData, ids, mFormula = NULL, mWeight = NULL, mCharge = NULL, woCompartment = TRUE )
reactionList |
A set of stoichiometric reaction with the following characteristics:
Some examples of valid stoichiometric reactions are:
|
referenceData |
A chemical table containing data to evaluate the balance |
ids |
A mandatory ID of metabolite names column in the referenceData |
mFormula |
An optional ID of molecular formula column in the referenceData |
mWeight |
An optional ID of molecular weight column in the referenceData |
mCharge |
An optional ID of net charge column in the referenceData |
woCompartment |
A boolean value |
This function returns a boolean value 'TRUE' if reaction is balanced.
Daniel Camilo Osorio <dcosorioh@tamu.edu>
# Loading a set of stoichiometric reactions
glycolysis <- read.csv(system.file("extdata/glycolysisModel.csv",package = "minval"), sep='\t')
# Loading extrernal chemical information
chemicalData <- read.csv2(system.file("extdata", "chemData.csv", package = "minval"))
head(chemicalData)
# Evaluating mass balance
checkBalance(
reactionList = glycolysis$REACTION,
referenceData = chemicalData,
ids = "NAME",
mFormula = "FORMULA"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.