R/extractPathways.R

Defines functions extractPathways

Documented in extractPathways

##extract pathay information from database
extractPathways <- function(database){
lapply(database@model@reactions, function(r){
pathway <- NA
if (length(r@notes)>0){
  pathway <- gsub(".*SUBSYSTEM: (.*?)</.*>.*$", "\\1", r@notes)
  pathway <- ifelse(pathway==r@notes, NA, pathway)
}
pathway
})
}
hettling/BiGGR documentation built on April 17, 2020, 5:19 a.m.