getExpectedDoublets: getExpectedDoublets

View source: R/misc.R

getExpectedDoubletsR Documentation

getExpectedDoublets

Description

getExpectedDoublets

Usage

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

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

plger/scDblFinder documentation built on March 20, 2024, 9:46 p.m.