Skip to content

Commit

Permalink
Merge pull request #178 from biomage-ltd/add-prefiltered-property
Browse files Browse the repository at this point in the history
[BIOMAGE-1494] - Add prefiltered flag to classifier
  • Loading branch information
aerlaut authored Oct 8, 2021
2 parents d1d1ed1 + 0728317 commit 1c02f3c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions pipeline-runner/R/gem2s-6-construct_qc_config.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ construct_qc_config <- function(scdata, any_filtered) {
# classifier
config.classifier <- list(
enabled = !any_filtered,
prefiltered = any_filtered,
auto = TRUE,
filterSettings = list(FDR = 0.01))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ test_that("cellsize filter is disabled by default and classifier if pre-filtered
scdata <- mock_scdata()

qc_config <- construct_qc_config(scdata, any_filtered = TRUE)
expect_false(qc_config$cellSizeDistribution$enabled)

expect_false(qc_config$classifier$enabled)
expect_true(qc_config$classifier$prefiltered)
expect_false(qc_config$cellSizeDistribution$enabled)
})


Expand Down
Binary file not shown.

0 comments on commit 1c02f3c

Please sign in to comment.