enrichmap.pl.gene_contributions_heatmap#
- enrichmap.pl.gene_contributions_heatmap(adata: AnnData, score_key: str, top_n_genes: int = 5, bottom_n_genes: int = 5, cluster_genes: bool = True, order_spots: Literal['spatial', 'cluster', 'coherence'] | None = 'coherence', groupby: str | None = None, spatial_key: str = 'spatial', cmap: str = 'RdBu_r', fontsize: int = 8, center: float = 0.0, batch_key: str | None = None, library_id: str | list | None = None, ncols: int = 2, figsize: tuple = (12, 6), save: str | None = None, n_neighbors: int = 6, group_palette: dict | None = None) None#
Spatial gene contribution heatmap with expression scaling and spatial ordering.