Cluster super-cell data
supercell_cluster(
D,
k = 5,
supercell_size = NULL,
algorithm = c("hclust", "PAM"),
method = NULL,
return.hcl = TRUE
)a list with components
clustering - vector of clustering assignment of super-cells
algo - the algorithm used
method - method used with an algorithm
hlc - hclust result (only for "hclust" algorithm when return.hcl is TRUE)
a dissimilarity matrix or a dist object
number of clusters
a vector with supercell size (ordered the same way as in D)
which algorithm to use to compute clustering: "hclust" (default) or "PAM" (see wcKMedoids)
which method of algorithm to use:
for "hclust": "ward.D", "ward.D2" (default), "single", "complete", "average", "mcquitty", "median" or "centroid", (see hclust)
for "PAM": "KMedoids", "PAM" or "PAMonce" (default), (see wcKMedoids)
whether to return a result of "hclust" (only for "hclust" algorithm)