R/do_vst_norm_count.R

Defines functions do_vst_norm_count

do_vst_norm_count <-
function(countdata){
  library(DESeq)
  condition <- factor(rep("Class", ncol(countdata)))
  countdata <- newCountDataSet(countdata,condition )
  countdata <- estimateSizeFactors( countdata )
  cdsBlind <- DESeq::estimateDispersions( countdata, method="blind")
  vstdata <- varianceStabilizingTransformation( cdsBlind )
  return(exprs(vstdata))
}
kuppal2/xmsPANDA documentation built on May 15, 2021, 5:48 a.m.