harreman.plots.module_score_correlation_plot

harreman.plots.module_score_correlation_plot#

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

Plot correlations between module scores across cells.

Parameters:
  • adata (AnnData) – Must contain: - obsm['module_scores'] or obsm['super_module_scores'] - uns['modules'] or uns['super_modules'] - uns['mod_reordered']

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

  • vmin (float, default -1 and 1, respectively) – Color scale limits for the correlation heatmap.

  • vmax (float, default -1 and 1, respectively) – Color scale limits for the correlation heatmap.

  • cor_cmap (str, default "RdBu_r") – Colormap for correlation values.

  • yticklabels (bool, default False) – Whether to show y-axis labels.

  • method ({"pearson", "spearman"}, default "pearson") – Correlation method.

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

  • super_module_dict (dict, optional) – Coloring scheme based on parent super-modules.

  • row_cluster (bool, default True) – Whether to cluster rows/columns before plotting.

  • col_cluster (bool, default True) – Whether to cluster rows/columns before plotting.

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