popari.pl.multigroup_heatmap

popari.pl.multigroup_heatmap#

popari.pl.multigroup_heatmap(trained_model, title_font_size=None, group_type='metagene', axes=None, key=None, level=0, **heatmap_kwargs)[source]#

Plot 2D heatmap data across all datasets.

Wrapper function to enable plotting of continuous 2D data across multiple replicates. Only one of obsm, obsp or uns should be used.

Parameters:
  • trained_model (Popari) – the trained Popari model.

  • axes (Sequence[Axes] | None) – A predefined set of matplotlib axes to plot on.

  • obsm – the key in the .obsm dataframe to plot.

  • obsp – the key in the .obsp dataframe to plot.

  • uns – the key in the .uns dataframe to plot. Unstructured data must be 2D in shape.

  • **heatmap_kwargs – arguments to pass to the ax.imshow call for each dataset

  • title_font_size (int | None)

  • group_type (str)

  • key (str | None)