popari.pl.multireplicate_heatmap

popari.pl.multireplicate_heatmap#

popari.pl.multireplicate_heatmap(datasets, title_font_size=None, axes=None, obsm=None, obsp=None, uns=None, label_values=False, label_font_size=None, nested=True, mask=None, **heatmap_kwargs)#

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. :param datasets: list of datasets to process :param axes: A predefined set of matplotlib axes to plot on. :param obsm: the key in the .obsm dataframe to plot. :param obsp: the key in the .obsp dataframe to plot. :param uns: the key in the .uns dataframe to plot. Unstructured data must be 2D in shape. :param **heatmap_kwargs: arguments to pass to the ax.imshow call for each dataset

Parameters:
  • datasets (Sequence[PopariDataset])

  • title_font_size (int | None)

  • axes (Sequence[Axes] | None)

  • obsm (str | None)

  • obsp (str | None)

  • uns (str | None)

  • label_values (bool)

  • label_font_size (int)

  • nested (bool)

  • mask (ndarray | None)