getExpectedDoublets {scDblFinder} | R 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)

[Package scDblFinder version 1.8.0 Index]