stereo.plots.PlotCoOccurrence.co_occurrence_heatmap#

PlotCoOccurrence.co_occurrence_heatmap(cluster_res_key, dist_min=0, dist_max=10000, width=None, height=None, res_key='co_occurrence')[source]#

Visualize the co-occurence by heatmap; each subplot represent a certain distance, each heatmap in subplot represent the co-occurence value of the pairwise celltype.

Parameters:
  • cluster_res_key – The key of the cluster or annotation result of cells stored in data.tl.result which ought to be equal to cells in length.

  • dist_min – Minimum distance interested, threshold between (dist_min,dist_max) will be plot

  • dist_max – Maximum distance interested, threshold between (dist_min,dist_max) will be plot

  • width – the figure width.

  • height – the figure height.

  • res_key – The key to store co-occurence result in data.tl.result