Skip to content

Commit

Permalink
Add test for low cell warming
Browse files Browse the repository at this point in the history
  • Loading branch information
lahuuki committed Aug 5, 2024
1 parent a5069c7 commit 31e5999
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testthat/test-get_mean_ratio.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ mrt_ab <- suppressMessages(get_mean_ratio(sce_ab, cellType_col = "cellType"))
test_that("Means all zero", {
expect_equal(sum(mrt_ab$mean.2nd), 0)
})

if (!exists("sce_DLPFC_example")) sce_DLPFC_example <- fetch_deconvo_data("sce_DLPFC_example")

test_that("Warn for <10 cells",{
expect_warning(get_mean_ratio(sce_DLPFC_example, cellType_col = "cellType_hc"))
})

0 comments on commit 31e5999

Please sign in to comment.