doubletPairwiseEnrichment {scDblFinder} | R Documentation |
Calculates enrichment in any type of doublet (i.e. specific combination of clusters) over random expectation. Note that when applied to an multisample object, this functions assumes that the cluster labels match across samples.
doubletPairwiseEnrichment( x, lower.tail = FALSE, sampleWise = FALSE, type = c("poisson", "binomial", "chisq", "nbinom1") )
x |
A table of double statistics, or a SingleCellExperiment on which scDblFinder was run. |
lower.tail |
Logical; defaults to FALSE to test enrichment (instead of depletion). |
sampleWise |
Logical; whether to perform tests sample-wise in multi-sample datasets. If FALSE (default), will aggregate counts before testing. |
type |
Type of test to use. |
A table of significances for each combination.
sce <- mockDoubletSCE() sce <- scDblFinder(sce, artificialDoublets=500) doubletPairwiseEnrichment(sce)