Skip to content

Commit

Permalink
tiny fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mikelove committed Sep 10, 2018
1 parent 5c31ec0 commit 61af32b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/testthat/test_outlier.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ test_that("outlier filtering doesn't flag small counts", {
dds <- makeExampleDESeqDataSet(n=100, m=8, dispMeanRel=function(x) 0.01)
counts(dds)[1,] <- c(0L, 0L, 0L, 100L, 2100L, 2200L, 2300L, 2400L)
counts(dds)[2:3,1] <- 100000L
counts(dds)[4,] <- rep(0L, 8)
dds <- DESeq(dds, fitType="mean")
expect_true(!is.na(results(dds)$pvalue[1]))
expect_true(all(is.na(results(dds)$pvalue[2:3])))
res <- results(dds)
expect_true(!is.na(res$pvalue[1]))
expect_true(all(is.na(res$pvalue[2:3])))
})

0 comments on commit 61af32b

Please sign in to comment.