inst/unitTests/test_QR.R

test_QR <- function() {
  set.seed(1)
  dds <- makeExampleDESeqDataSet(n=100,betaSD=1)
  dds <- DESeq(dds)
  ddsNoQR <- nbinomWaldTest(dds,useQR=FALSE)
  res <- results(dds)
  resNoQR <- results(ddsNoQR)
  checkEqualsNumeric(res$log2FoldChange, resNoQR$log2FoldChange, tolerance=1e-6)
}
aghozlane/DESeq2shaman documentation built on Nov. 1, 2019, 9:01 p.m.