Skip to content

Commit

Permalink
v1.19.5 -- fixed a math bug on add_qc_metrics()
Browse files Browse the repository at this point in the history
  • Loading branch information
lcolladotor committed Dec 16, 2024
1 parent f69263f commit d12e632
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: spatialLIBD
Title: spatialLIBD: an R/Bioconductor package to visualize spatially-resolved
transcriptomics data
Version: 1.19.4
Date: 2024-12-13
Version: 1.19.5
Date: 2024-12-16
Authors@R:
c(
person("Leonardo", "Collado-Torres", role = c("aut", "cre"),
Expand Down
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# spatialLIBD 1.19.5

BUG FIXES

* Fixed internal errors in `add_qc_metrics()` on the `scuttle::isOutlier()`
function calls.

# spatialLIBD 1.19.4

NEW FEATURES
Expand Down
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$log2sum, type = "lower", log = TRUE, batch = qc_df$sample_id),
low_n_features = scater::isOutlier(qc_df$log2detected, type = "lower", log = TRUE, batch = qc_df$sample_id),
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),
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 d12e632

Please sign in to comment.