COSIE.downstream_analysis.relabel_clusters_sequentially
- relabel_clusters_sequentially(cluster_label_dict)[source]
Relabel all cluster IDs across sections to contiguous integers starting from 0.
Parameters
- cluster_label_dictdict
Dictionary of {section: np.ndarray of cluster labels}.
Returns
- relabeled_dictdict
Dictionary with same keys, but cluster labels relabeled to 0, 1, 2, …