Skip to content

Commit

Permalink
update tests after limma's breaking changed calculation of degrees of…
Browse files Browse the repository at this point in the history
  • Loading branch information
mbstadler committed Aug 7, 2024
1 parent 550297f commit 5b447f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: eisaR
Title: Exon-Intron Split Analysis (EISA) in R
Version: 1.17.0
Version: 1.17.1
Authors@R: c(person("Michael", "Stadler", email = "[email protected]", role = c("aut", "cre")),
person("Dimos", "Gaidatzis", email = "[email protected]", role = "aut"),
person("Lukas", "Burger", email = "[email protected]", role = "aut"),
Expand Down
5 changes: 3 additions & 2 deletions tests/testthat/test_runEISA.R
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,10 @@ test_that("runEISA() gives expected results", {
test.sig = res2$tab.ExIn$FDR < 0.01) # close to 1/nsig -> one false positive

# no false positives or false negatives (except for selsig2 genes in t1)
nmissed1 <- t1["TRUE", "TRUE", "FALSE"] # expect to miss some genes with sample-specific effects
nmissed1 <- t1["FALSE", "TRUE", "FALSE"] # these are now missed after updated df calculation in limma (https://code.bioconductor.org/browse/limma/commit/e8ff47777e7c25d6dcb9582d9fcb8f9c4fed9da1)
nmissed2 <- t1["TRUE", "TRUE", "FALSE"] # expect to miss some genes with sample-specific effects
expect_identical(as.vector(t1),
c(ngenes - nsig, 0L, 0L, nmissed1, 0L, 0L, nsig - nsig2, nsig2 - nmissed1))
c(ngenes - nsig, 0L, nmissed1, nmissed2, 0L, 0L, nsig - nsig2 - nmissed1, nsig2 - nmissed2))
expect_identical(as.vector(t2),
c(ngenes - nsig, 0L, 0L, 0L, 0L, 0L, nsig - nsig2, nsig2))
})

0 comments on commit 5b447f2

Please sign in to comment.