getExpectedDoublets: getExpectedDoublets

Description Usage Arguments Value Examples

View source: R/misc.R

Description

getExpectedDoublets

Usage

1
getExpectedDoublets(x, dbr = NULL, only.heterotypic = TRUE)

Arguments

x

A vector of cluster labels for each cell

dbr

The expected doublet rate.

only.heterotypic

Logical; whether to return expectations only for heterotypic doublets

Value

The expected number of doublets of each combination of clusters

Examples

1
2
3
# random cluster labels
cl <- sample(head(LETTERS,4), size=2000, prob=c(.4,.2,.2,.2), replace=TRUE)
getExpectedDoublets(cl)

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