Skip to content

Commit

Permalink
Increase tolerance in normalization test (for M1)
Browse files Browse the repository at this point in the history
  • Loading branch information
csoneson committed Apr 29, 2024
1 parent a843e24 commit f88bb53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-doNormalization.R
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ test_that("normalization works", {
"normalizedAssay"))) == 507)
expect_equal(apply(assay(normout, "normalizedAssay"), 2, mean,
na.rm = TRUE), rep(0L, ncol(normout)),
ignore_attr = TRUE)
ignore_attr = TRUE, tolerance = 1e-5)

## div.mean
normout <- doNormalization(sce = sce_mq_preimputation,
Expand Down Expand Up @@ -188,7 +188,7 @@ test_that("normalization works", {
"normalizedAssay"))) == 507)
expect_equal(apply(assay(normout, "normalizedAssay"), 2, mean,
na.rm = TRUE), rep(0L, ncol(normout)),
ignore_attr = TRUE)
ignore_attr = TRUE, tolerance = 1e-5)

## spike-in features, center.median
spikes <- rownames(sce_mq_preimputation)[c(8, 90, 123)]
Expand Down

0 comments on commit f88bb53

Please sign in to comment.