doubletThresholding {scDblFinder}R Documentation

doubletThresholding

Description

Sets the doublet scores threshold; typically called by scDblFinder.

Usage

doubletThresholding(d, dbr = 0.025, dbr.sd = 0.015, local = FALSE)

Arguments

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!)

Value

A scaler indicating the decided threshold.

Examples

sce <- mockDoubletSCE()
d <- scDblFinder(sce, verbose=FALSE, returnType="table")
th <- doubletThresholding(d, dbr=0.05)
th$th


[Package scDblFinder version 1.4.0 Index]