R/recreate.pathway.R

Defines functions recreate.pathway

recreate.pathway <- function(setup, pathway){
  
  setup$super.pathway <- setup$pathway
  npath <- length(pathway)
  path <- list()
  for(i in 1:npath){
    path[[i]] <- setup$super.pathway[setup$super.pathway$Gene %in% pathway[[i]][, 'Gene'], ]
  }
  setup$pathway <- path
  setup
  
}
zhangh12/ARTP2 documentation built on Aug. 16, 2019, 7:27 p.m.