Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/testthat/test-celltypist.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ test_that("celltypist runs", {
expect_equal(4, length(unique(seuratObj$RIRA.majority_voting)), info = 'using RIRA model', tolerance = 1)
expect_equal(346, unname(table(seuratObj$RIRA.majority_voting)['Bcell']), tolerance = 1)
expect_equal(1653, unname(table(seuratObj$RIRA.majority_voting)['T_NK']), tolerance = 1)
expect_equal(684, unname(table(seuratObj$RIRA.majority_voting)['Myeloid']))
expect_equal(686, unname(table(seuratObj$RIRA.majority_voting)['Myeloid']))

# NOTE: this is very slow, so skip in automated testing for now
modelFile <- 'myModel.pkl'
Expand Down Expand Up @@ -137,8 +137,8 @@ test_that("FilterDisallowedClasses works as expected", {

expect_equal('RIRA_Immune_v2', seuratObj@misc$RIRA_Immune_Model)
expect_equal(256, sum(seuratObj$RIRA_Immune_v2.cellclass == 'Bcell', na.rm = T), tolerance = 1)
expect_equal(576, sum(seuratObj$RIRA_Immune_v2.cellclass == 'Myeloid', na.rm = T))
expect_equal(1331, sum(seuratObj$RIRA_Immune_v2.cellclass == 'T_NK', na.rm = T))
expect_equal(577, sum(seuratObj$RIRA_Immune_v2.cellclass == 'Myeloid', na.rm = T))
expect_equal(1340, sum(seuratObj$RIRA_Immune_v2.cellclass == 'T_NK', na.rm = T))

print('DisallowedUCellCombinations:')
print(table(seuratObj$DisallowedUCellCombinations))
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-geo.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ test_that("GEO Files Exist", {
"GSE277821_RIRA.All.MergedClonotypes.txt.gz",
"GSE277821_RIRA.All.Metadata.rds",
"GSE277821_RIRA.All.RNA.counts.rds",
"GSE277821_RIRA.All.ADT.counts.int.rds",
"GSE277821_RIRA.All.seurat.rds",
"GSE277821_RIRA.Bcell.seurat.rds",
"GSE277821_RIRA.Myeloid.seurat.rds",
Expand Down
Loading