R/create.sub.pathway.R

Defines functions create.sub.pathway

create.sub.pathway <- function(super.pathway){
  
  sub.pathway <- list()
  grp <- sort(unique(super.pathway$Chr))
  ngrp <- length(grp)
  for(i in 1:ngrp){
    sub.pathway[[i]] <- super.pathway[super.pathway$Chr == grp[i], ]
    rownames(sub.pathway[[i]]) <- NULL
  }
  
  sub.pathway
  
}
zhangh12/ARTP3 documentation built on Aug. 16, 2019, 7:39 p.m.