R/create.pathway.cutpoint.R

create.pathway.cutpoint <- function(pathway, options){
  
  ngene <- length(unique(pathway$Gene))
  inspect.gene.n <- options$inspect.gene.n
  inspect.gene.percent <- options$inspect.gene.percent
  
  step <- floor(ngene * inspect.gene.percent)
  step <- max(1, step)
  up.limit <- min(ngene, inspect.gene.n * step)
  up.limit <- max(up.limit, step)
  seq(step, up.limit, by = step)
  
}

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.