getReactionsList: extract reactions from a sybil model as a list of strings

Description Usage Arguments Author(s) See Also Examples

View source: R/getReactionsList.R

Description

This function is based in printReaction function from sybil, it extracts all reactions from a sybil model as a list of strings with the fromat: "H2O[c] + Urea-1-carboxylate[c] <=> 2 CO2[c] + 2 NH3[c]"

Where arrows and plus signs are surrounded by a "space character". It is also expected that stoichiometry coefficients are surrounded by spaces, (nothe the "2" before the CO2[c] or the NH3[c]). It also expects arrows to be in the form "=>" or "<=>". Meaning that arrows like "==>", "<==>", "-->" or "->" will not be parsed and will lead to errors.

Usage

1

Arguments

model

A metabolic model in the form of "modelorg" class from sybil package

Author(s)

Nicolas Mendoza Mejia <nimendozam@unal.edu.co>

See Also

additionCost function documentation.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# Get the sybil model
library("sybil")
data("Ec_core")

# Extract reactions
react <- getReactionsList(Ec_core)

## End(Not run)

kellybotero/G2F documentation built on Dec. 5, 2020, 12:34 p.m.