spatialtis.cell_interaction#

spatialtis.cell_interaction(data, method='pval', resample=1000, pval=0.01, export_key='cell_interaction', **kwargs)[source]#

Profiling cell-cell interaction using permutation test

Neighborhood analysis tells you the relationship between different type of cells

  • Association (1)

  • Avoidance (-1)

  • No relationship (0)

Parameters
dataAnnData

The AnnData to work with.

method{‘pval’, ‘zscore’}, default: ‘pval’
resamplefloat, default: 1000

Number of times to perform resample.

pvalfloat

The p-value threshold to determine significance.

export_keystr

The key used to store result.

**kwargs

Config for the analysis, for details check spatialtis.abc.AnalysisBase.