spatialtis.plotting.cell_co_occurrence#

spatialtis.plotting.cell_co_occurrence(data, use='dot', groupby=None, key='cell_co_occurrence', type_order=None, order=True, **plot_options)[source]#

Visualization of cell co-occurrence

Parameters
dataAnnData

The AnnData object for plotting.

groupbystr

The key in Config.exp_obs to stratify the data.

keystr

The key that store the analysis results.

use{‘dot’, ‘heatmap’}, default: ‘dot’
type_orderlist of str

The list of cell type to show on the plot.

order: bool

The order of co-occurrence.

**plot_options:

Pass to milkviz.dot() and milkviz.anno_clustermap().