Get cluster counts sorted descending
Usage
get_cluster_counts(seurat_obj, cluster_col)
Arguments
- seurat_obj
A Seurat object.
- cluster_col
String. Name of the metadata column containing cluster labels.
Value
A data.frame with columns cluster and count, sorted by count descending.
Examples
# Suppose your Seurat object is `all` and cluster column is "harmony_clusters"
# get_cluster_counts(all, "harmony_clusters")