crested.pl.heatmap.correlations_self

crested.pl.heatmap.correlations_self#

crested.pl.heatmap.correlations_self(adata, log_transform=False, vmin=None, vmax=None, **kwargs)#

Plot self correlation heatmaps of ground truth for different cell types.

Parameters:
  • adata (AnnData) – AnnData object containing the data in X and predictions in layers.

  • model_names – List of model names to plot for predictions heatmap. Default is to plot all models in adata.layers.

  • log_transform (bool (default: False)) – Whether to log-transform the data before plotting.

  • vmin (Optional[float] (default: None)) – Minimum value for heatmap color scale.

  • vmax (Optional[float] (default: None)) – Maximum value for heatmap color scale.

  • kwargs – Additional arguments passed to render_plot() to control the final plot output. Please see render_plot() for details.

Examples

>>> crested.pl.heatmap.correlations_self(
...     adata, log_transform=True, title="Self correlations heatmap"
... )
../../../_images/heatmap_self_correlations.png