maxfuse.utils.summarize_clustering

maxfuse.utils.summarize_clustering(clustering, true_labels)[source]

Compute the majority cell type for each cluster.

Parameters:
  • clustering (np.array of shape (n_samples,)) – Clustering labels, coded from 0, 1, …, n_clusters.

  • true_labels (np.array of shape (n_samples,)) – Groundtruth labels.

Returns:

np.array of shape (n_clusters,) – The majority voting results.