methylseg.get_biological_state_colors
- methylseg.get_biological_state_colors(cmap_name='viridis', state_colors=None)[source]
Return a fixed biological-state palette keyed by the canonical enum values.
- Parameters:
cmap_name (str) – Backward-compatible placeholder colormap name. The returned biological palette is fixed regardless of this value.
state_colors (dict | None) – Optional mapping of biological state names or values to override colors.
- Returns:
(cmap, norm, state_colors_rgba, state_colors_hex)for consistent matplotlib and Plotly coloring of the canonical states.- Return type:
tuple