R/create.sub.pathway.R

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
  
}

Try the ARTP2 package in your browser

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

ARTP2 documentation built on May 2, 2019, 3:38 p.m.