## 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