Skip to content

Commit

Permalink
try to solve the add_qc_metrics() bug again
Browse files Browse the repository at this point in the history
  • Loading branch information
lcolladotor committed Dec 16, 2024
1 parent d12e632 commit cc78e20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/add_qc_metrics.R
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ add_qc_metrics <- function(spe, overwrite = FALSE) {
)

qcfilter <- data.frame(
low_lib_size = scater::isOutlier(qc_df$sum_umi, type = "lower", log = TRUE, batch = qc_df$sample_id),
low_n_features = scater::isOutlier(qc_df$sum_gene, type = "lower", log = TRUE, batch = qc_df$sample_id),
low_lib_size = scater::isOutlier(qc_df$log2sum, type = "lower", log = FALSE, batch = qc_df$sample_id),
low_n_features = scater::isOutlier(qc_df$log2detected, type = "lower", log = FALSE, batch = qc_df$sample_id),
high_subsets_Mito_percent = scater::isOutlier(qc_df$subsets_Mito_percent, type = "higher", batch = qc_df$sample_id)
) |>
dplyr::mutate(discard = (low_lib_size | low_n_features) | high_subsets_Mito_percent)
Expand Down

0 comments on commit cc78e20

Please sign in to comment.