Learn R Programming

minval (version 0.4)

is.validsyntax: Evaluates if a stoichiometric reaction has a valid syntax

Description

This function evaluates if a stoichiometric reaction has a valid syntax. It assumes that reaction have the following format L-Glutamate[c] <=> CO2[c] + 4-Aminobutanoate[c]

Usage

is.validsyntax(reaction)

Arguments

reaction
A stoichiometric reaction with the following format L-Glutamate[c] <=> CO2[c] + 4-Aminobutanoate[c]

Examples

Run this code
## For a specific reaction
is.validsyntax("ATP[m_n] + beta-D-Glucose[m_n] => ADP[m_n] + beta-D-Glucose 6-phosphate[m_n]")
# [1] TRUE

## For a set of metabolites
# Loading a set of stoichiometric reactions from the glutamate/glutamine cycle
data("glugln")

# Validating syntaxis
sapply(glugln[1:10],is.validsyntax)
# [1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE

Run the code above in your browser using DataLab