doubletThresholding {scDblFinder} | R Documentation |
Sets the doublet scores threshold; typically called by
scDblFinder
.
doubletThresholding(d, dbr = 0.025, dbr.sd = 0.015, local = FALSE)
d |
A data.frame of properties of real and artificial cells, as produced by 'scDblFinder(returnType="table")'. |
dbr |
The expected (mean) doublet rate. |
dbr.sd |
The standard deviation of the doublet rate, representing the uncertainty in the estimate. |
local |
Logical; whether to use local calibration (experimental feature!) |
A scaler indicating the decided threshold.
sce <- mockDoubletSCE() d <- scDblFinder(sce, verbose=FALSE, returnType="table") th <- doubletThresholding(d, dbr=0.05) th$th