doubletThresholding: doubletThresholding

Description Usage Arguments Value Examples

View source: R/doubletThresholding.R

Description

Sets the doublet scores threshold; typically called by scDblFinder.

Usage

1
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

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

scDblFinder documentation built on Nov. 8, 2020, 5:48 p.m.