# Use a dictionnary with heatmaps

**URL:** <https://discourse.scverse.org/t/use-a-dictionnary-with-heatmaps/3359>\
**Category:** scanpy\
**Created:** [November 25, 2024, 1:08pm UTC](https://discourse.scverse.org/t/use-a-dictionnary-with-heatmaps/3359 "2024-11-25T13:08:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LioLnr](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/liolnr/32/1108_2.png) [@LioLnr](https://discourse.scverse.org/u/LioLnr)\
**Post date:** [November 25, 2024, 1:08pm UTC](https://discourse.scverse.org/t/use-a-dictionnary-with-heatmaps/3359/1 "2024-11-25T13:08:35Z")

</div>

Hello, I would like to use a dictonnary to specify the genes for a heatmap.

The dictionnary contains the 50 genes with the higher logfoldchange per cluster.

I do not know if I should use `scanpy.pl.rank_genes_groups_heatmap` or `scanpy.pl.heatmap` in order to highlight the difference in expression per cluster

Thanks for your help
