harreman.plots.average_local_correlation_plot

harreman.plots.average_local_correlation_plot#

harreman.plots.average_local_correlation_plot(adata, mod_cmap='tab10', vmin=-10, vmax=10, cor_cmap='RdBu_r', yticklabels=False, row_cluster=True, col_cluster=True, use_super_modules=False, super_module_dict=None, show=True)[source]#

Plot the average pairwise correlation Z-scores between modules.

Parameters:
  • adata (AnnData) – AnnData object containing: - uns['lc_zs']: DataFrame of pairwise correlation Z-scores - uns['modules'] or uns['super_modules'] - uns['mod_reordered']: ordering from local_correlation_plot

  • mod_cmap (str, default "tab10") – Colormap for module annotations.

  • vmin (float, default -10 and 10, respectively) – Color scale limits for Z-scores.

  • vmax (float, default -10 and 10, respectively) – Color scale limits for Z-scores.

  • cor_cmap (str, default "RdBu_r") – Colormap for the averaged correlation matrix.

  • yticklabels (bool, default False) – Whether to display module labels on the heatmap.

  • row_cluster (bool, default True) – Whether to apply clustering along rows/columns.

  • col_cluster (bool, default True) – Whether to apply clustering along rows/columns.

  • use_super_modules (bool, default False) – Whether to use super-modules.

  • super_module_dict (dict, optional) – Map of super-module → list of modules, used to color modules by their parent super-module.

  • show (bool, default True) – Whether to display the plot.