Skip to content
Open
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
5 changes: 5 additions & 0 deletions R/annotate_sce.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
#' @param max_features the maximum number of features per cell or "adaptive"
#' @param max_mito the maximum proportion of counts mapping to
#' mitochondrial genes (0 - 1) or "adaptive"
#' @param type_mito see [scater::isOutlier()]. By default, both ends of the
#' distribution of mitochondrial content will be tested for outliers. If using
#' single-nucleus RNA-sequencing data, consider setting this to "higher".
#' @param min_ribo the minimum proportion of counts mapping to
#' ribosomal genes (0 - 1)
#' @param max_ribo the maximum proportion of counts mapping to
Expand Down Expand Up @@ -79,6 +82,7 @@ annotate_sce <- function(sce,
min_features = 100,
max_features = "adaptive",
max_mito = "adaptive",
type_mito = "both",
min_ribo = 0.00,
max_ribo = 1.00,
min_counts = 2,
Expand Down Expand Up @@ -135,6 +139,7 @@ annotate_sce <- function(sce,
min_features = min_features,
max_features = max_features,
max_mito = max_mito,
type_mito = type_mito,
min_ribo = min_ribo,
max_ribo = max_ribo,
min_counts = min_counts,
Expand Down
4 changes: 3 additions & 1 deletion R/annotate_sce_cells.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#' number of genes with >0 counts)
#' max_mito the maximum proportion of counts mapping to
#' mitochondrial genes (0 - 1)
#' type_mito choice indicating whether outliers in pc_mito should be looked for
#' at both tails, or only at the lower/higher end
#' min_ribo
#' max_ribo the maximum proportion of counts mapping to
#' ribosomal genes (0 - 1)
Expand Down Expand Up @@ -86,7 +88,7 @@ annotate_sce_cells <- function(sce, ...) {
sce$pc_mito,
nmads = args$nmads,
subset = sce$qc_metric_passed,
type = "both",
type = args$type_mito,
log = FALSE)
higher <-
as.numeric(attributes(outliers)$thresholds["higher"]) #not int for pcmito
Expand Down
5 changes: 5 additions & 0 deletions man/annotate_sce.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/annotate_sce_cells.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.