nichesphere.comm.plotDiffCcommStatsHM

nichesphere.comm.plotDiffCcommStatsHM#

nichesphere.comm.plotDiffCcommStatsHM(diffCommTable, min_pval, vmin=None, vmax=None)#

Plot heatmap of differential cell communication statistics

Parameters:
  • diffCommTable (pd.DataFrame) – dataframe of Wilcoxon statictics and p-values for each cell pair grouping in each LR category (obtained with diffCcommStats function)

  • min_pval (float) – scores with p-values higher than this won’t be shown

  • vmin (float (default: None)) – minimum value for the color map

  • vmax (float (default: None)) – maximum value for the color map

Returns:

  • x_hm (pd.DataFrame) – differential communication scores dataframe of cell pair groupings x LR categories

  • plot (sns.matrix.ClusterGrid) – seaborn clustermap as an object