spatialtis.hotspot#

spatialtis.hotspot(data, selected_types=None, search_level=3, quad=None, rect_side=None, pval=0.01, export_key=None, **kwargs)[source]#

Getis-ord hotspot detection

Used to identify cells that cluster together.

Parameters
dataAnnData

The AnnData to work with.

selected_typeslist of str

Select your interested cell types.

search_levelint, default: 3

How deep the search level to reach.

quadtuple of int, default: (10, 10)

A tuple (X, Y), Use a grid that is X * Y to tessellation your ROI.

rect_sidetuple of float

A tuple (X, Y), Use many rectangles with X * Y side to tessellation your ROI.

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.