methylseg.get_cluster_colors
- methylseg.get_cluster_colors(n_states, cmap_name='viridis')[source]
Return a discrete colormap and color lookup for integer cluster labels.
- Parameters:
n_states (int) – Number of integer cluster labels to color.
cmap_name (str) – Matplotlib colormap name used to draw the discrete palette.
- Returns:
(cmap, norm, state_colors_rgba, state_colors_hex)indexed in cluster-label order.- Return type:
tuple