getExpectedDoublets {scDblFinder} | R Documentation |
getExpectedDoublets
getExpectedDoublets(x, dbr = NULL, only.heterotypic = TRUE)
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 |
The expected number of doublets of each combination of clusters
# random cluster labels cl <- sample(head(LETTERS,4), size=2000, prob=c(.4,.2,.2,.2), replace=TRUE) getExpectedDoublets(cl)