partipy.heatmap_meta_enrichment

partipy.heatmap_meta_enrichment#

partipy.heatmap_meta_enrichment(meta_enrich, meta='Meta')#

Generate a heatmap showing metadata enrichment across archetypes.

Parameters:
  • meta_enrich (pd.DataFrame) – Output of meta_enrichment(), a DataFrame where rows are archetypes and columns are metadata categories, with values representing normalized enrichment scores.

  • meta (str, default "Meta") – Label to use for the metadata category legend in the plot. Default is “Meta”.

Returns:

pn.ggplot.ggplot A heatmap of normalized enrichment scores per archetype and metadata category.