R/buildSBMLFromReactionIDs.R

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)  
}
hettling/BiGGR documentation built on April 17, 2020, 5:19 a.m.