You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/registration_pseudobulk.R
+51-22Lines changed: 51 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,12 @@
21
21
#' number of cells (for scRNA-seq) or spots (for spatial) that are combined
22
22
#' when pseudo-bulking. Pseudo-bulked samples with less than `min_ncells` on
23
23
#' `sce_pseudo$ncells` will be dropped.
24
+
#' @param filter_expr A `logical(1)` specifying whether to filter pseudobulked
25
+
#' counts with `edgeR::filterByExpr`. Defaults to `TRUE`, filtering is recommended for
26
+
#' spatail registratrion workflow.
27
+
#' @param mito_gene An optional `logical()` vector indicating which genes are
28
+
#' mitochondrial, used to calculate pseudo bulked mitochondrial expression rate
29
+
#' `expr_chrM` and `pseudo_expr_chrM` .
24
30
#'
25
31
#' @return A pseudo-bulked [SingleCellExperiment-class][SingleCellExperiment::SingleCellExperiment-class] object. The `logcounts()` assay are `log2-CPM`
26
32
#' values calculated with `edgeR::cpm(log = TRUE)`. See
0 commit comments