propHomotypic {scDblFinder} | R Documentation |
Computes the proportion of pairs expected to be made of elements from the same cluster.
propHomotypic(clusters)
clusters |
A vector of cluster labels |
A numeric value between 0 and 1.
clusters <- sample(LETTERS[1:5], 100, replace=TRUE) propHomotypic(clusters)