#' A function for calculating proliferative index from variance stabalized RNA-seq data in the ProliferativeIndex package
#' This function allows the user to read in data for subsequent proliferative index calculation and analysis
#' @param userObject Output from ProliferativeIndex readDataForPI function
#' @export
#' @examples
#' calculatePI(exReadDataObj)

  dataframePIvst<-subset(userObject$vstData, rownames(userObject$vstData) %in% metaPCNA2)
  vstPI<-apply(dataframePIvst, 2, stats::median)
  print(paste("vstData contained ", nrow(dataframePIvst), "/131 of the PI-associated genes", sep=""))

Try the ProliferativeIndex package in your browser

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

ProliferativeIndex documentation built on May 2, 2019, 8:18 a.m.