tests/testthat/test_QR.R

context("QR")
test_that("not using QR works as expected", {
  set.seed(1)
  dds <- makeExampleDESeqDataSet(n=100,betaSD=1)
  dds <- DESeq(dds, quiet=TRUE)
  ddsNoQR <- nbinomWaldTest(dds, useQR=FALSE)
  res <- results(dds)
  resNoQR <- results(ddsNoQR)
  expect_equal(res$log2FoldChange, resNoQR$log2FoldChange, tolerance=1e-6)
})
mikelove/DESeq2 documentation built on July 25, 2024, 11:11 p.m.