buildSBMLFromReactionIDs {BiGGR} | R Documentation |
Creates an SBML model containing all species, reactions and compartments that are associated with a number of reaction identifiers in the database document (e.g. Recon2) passed as an argument.
buildSBMLFromReactionIDs(reaction.ids, database)
reaction.ids |
a |
database |
an object of class |
a rsbml Model
object containing all reactions, species and
compartments that are present in the database for the query
reaction(s) or NULL if none of the query reaction IDs is found in the database.
Anand Gavai, Hannes Hettling
Thiele, I. et al. Nat Biotech, 2013
##get list of reactions with Recon 2 identifiers from examples path <- system.file("extdata", "Glycolysis_TCA_recon2_reactionIDs.txt", package="BiGGR") reaction.ids <- scan(path, what=" ") data("Recon2") model <- buildSBMLFromReactionIDs(reaction.ids, Recon2)