decoupler.plot_associations

decoupler.plot_associations(data, uns_key, associations=None, cols=None, obs_annotation_cols=None, obsm_key=None, use_X=False, layer=None, stat_col='p_adj', titles=['Scores', 'Stats'], sign_thr=0.05, n_factors=10, cmap_stats='Purples', cmap_scores='BrBG', cmap_cats='Set2', figsize=(5, 5), dpi=100, return_fig=False, save=None)

Create a composite plot displaying association results between scores (bottom) and summary statistics (top) using a clustermap.

Requires PyComplexHeatmap to be installed.

Returns:
figFigure, None

If return_fig, returns Figure object.