kaleidocell.plot_heatmap#

kaleidocell.plot_heatmap(data, save=False, save_path='')[source]#

Plot a cosine-similarity heatmap with optional cluster boundaries.

Parameters:
  • data (dict or pd.DataFrame) – Either a dict with keys "similarity_matrix_sorted" and optionally "cluster_dict" (as returned by derive_nmf_metaprograms()), or a plain similarity DataFrame.

  • save (bool, default False) – Save the figure as a PDF.

  • save_path (str, default "") – Directory for the saved file (cwd when empty).

Return type:

None