Skip to content

Commit 8b6a9af

Browse files
committed
Further accommodations for changes from DropletUtils::emptyDrops()
- Details of changes: MarioniLab/DropletUtils#118 - For this chunk, the new default of `alpha=Inf` gives poor results. Some quick comparisons given below - BioC 3.21 - 39,028 non-empty droplets with `emptyDrops(counts(hto.sce), by.rank=40000)` - 21,374 non-empty droplets with `emptyDrops(counts(hto.sce), by.rank=40000, alpha=NULL) - 29,673 non-empty droplets with `emptyDrops(counts(hto.sce), by.rank=30000)` - BioC 3.20 - 21780 on-empty droplets with `emptyDrops(counts(hto.sce), by.rank=40000) (i.e. former default of `alpha = NULL`) - Added some explanation/justification cribbed from that removed in 76a88c5
1 parent 76a88c5 commit 8b6a9af

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

inst/book/doublet-detection.Rmd

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,12 @@ The barcode-rank plots are quite similar to what one might expect from gene expr
255255
library(DropletUtils)
256256

257257
set.seed(101)
258-
hash.calls <- emptyDrops(counts(hto.sce), by.rank=40000)
258+
# HTO counts tend to exhibit stronger overdispersion (i.e., lower `alpha` in
259+
# the `emptyDrops()` calculations), increasing the risk of violating
260+
# `emptyDrops()`'s distributional assumptions.
261+
# Setting `alpha=NULL` estimates alpha using maximum likelihood; see
262+
# `?emptyDrops` for details.
263+
hash.calls <- emptyDrops(counts(hto.sce), by.rank=40000, alpha=NULL)
259264
is.cell <- which(hash.calls$FDR <= 0.001)
260265
length(is.cell)
261266

0 commit comments

Comments
 (0)