Defines functions buildSBMLFromReactionIDs

Documented in buildSBMLFromReactionIDs

##construct an SBML model from given reaction IDs
buildSBMLFromReactionIDs <- function(reaction.ids, database){
model <- database@model
notfound.ids <- reaction.ids[which(! reaction.ids %in% lapply(model@reactions, id))]
if (length(notfound.ids>0))
warning("Warning! Omitting the following reactions not found in database : ", paste(notfound.ids, collapse=","), "\n")
.buildSubModel(model, reaction.ids)  

Try the BiGGR package in your browser

Any scripts or data that you put into this service are public.

BiGGR documentation built on Nov. 8, 2020, 5:38 p.m.