File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed
modules/local/doublet_detection/scdblfinder/templates Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -23,21 +23,19 @@ dbr <- suppressWarnings(as.numeric(dbr_raw))
2323# Run scDblFinder on the counts matrix (first assay)
2424# scDblFinder creates artificial doublets internally and returns a new SCE
2525set.seed(123 )
26- if (! is.na(dbr )) {
27- message(paste0(" Using provided doublet_rate (dbr): " , dbr ))
28- sce <- scDblFinder(
29- assays(sce )[[1 ]],
30- BPPARAM = bp ,
31- dbr = dbr
32- )
33- } else {
26+ if (is.na(dbr )) {
3427 message(" No valid doublet_rate provided; using scDblFinder internal dbr estimation" )
35- sce <- scDblFinder(
36- assays(sce )[[1 ]],
37- BPPARAM = bp
38- )
28+ dbr <- NULL
29+ } else {
30+ message(paste0(" Using provided doublet_rate (dbr): " , dbr ))
3931}
4032
33+ sce <- scDblFinder(
34+ assays(sce )[[1 ]],
35+ BPPARAM = bp ,
36+ dbr = dbr
37+ )
38+
4139# Generate a summary table
4240message(" scDblFinder results summary:" )
4341print(table(sce \$ scDblFinder.class ))
You can’t perform that action at this time.
0 commit comments