clusterStickiness {scDblFinder} | R Documentation |
Tests for enrichment of doublets created from each cluster (i.e. cluster's stickiness). Only applicable with >=4 clusters. Note that when applied to an multisample object, this functions assumes that the cluster labels match across samples.
clusterStickiness( x, type = c("quasibinomial", "nbinom1", "binomial", "poisson"), inclDiff = FALSE )
x |
A table of double statistics, or a SingleCellExperiment on which scDblFinder was run. |
type |
The type of test to use (quasibinomial recommended). |
inclDiff |
Logical; whether to include the difficulty in the model. If NULL, will be used only if there is a significant trend with the enrichment. |
A table of test results for each cluster.
sce <- mockDoubletSCE(rep(200,5)) sce <- scDblFinder(sce, artificialDoublets=500) clusterStickiness(sce)