scviva.pl.vision.plot_vision_autocorrelation#

scviva.pl.vision.plot_vision_autocorrelation(adata, type=None, center=0.5, figsize=(1, 10), cmap='coolwarm', cbar=True)[source]#

Plot vision autocorrelation results.

Shows the consistency score (c_prime) of each observation column or signature as a heatmap, sorted in decreasing order; entries with FDR >= 0.05 are masked.

Parameters:
adata AnnData

AnnData object containing uns['vision_obs_df_scores'] (for type="observations") or uns['vision_signature_scores'] (for type="signatures"), each a DataFrame with c_prime and fdr columns.

type Union[Literal['observations'], Literal['signatures'], None]

Which autocorrelation results to plot. Must be set; None raises a ValueError.

center float | None

Value at which to center the colormap.

figsize tuple | None

Figure size.

cmap str | None

Colormap for the heatmap.

cbar bool | None

Whether to draw a colorbar.