R/updateKEGGPathway.R

Defines functions updateKEGGPathway

Documented in updateKEGGPathway

updateKEGGPathway <- function(path = Sys.getenv("HOME")) {
    ko.list <- keggList("pathway/ko")
    deleteGlobal.info <- regexpr("ko01|ko00", names(ko.list), perl = TRUE)
    ko.list <- ko.list[deleteGlobal.info > 0]
    ko.path <- regexpr("ko\\d+", names(ko.list), perl = TRUE)
    ko.pathway <- substring(names(ko.list), ko.path, ko.path + attr(ko.path, "match.length") - 
        1)
    RefDbcache <- lapply(ko.pathway, getKOPathwayInfo)
    names(RefDbcache) <- ko.pathway
    RefDbcache <- as.list(preprocessKOMetabolites(RefDbcache))
    saveMetabolicData(RefDbcache, path)
} 

Try the mmnet package in your browser

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

mmnet documentation built on May 31, 2017, 3:25 p.m.