Niches

Niches#

The flavors of calculating niches.

gr.calculate_niche(data, flavor[, ...])

Calculate niches (spatial clusters) based on a user-defined method in 'flavor'.

gr.calculate_niche_neighborhood(data, *, ...)

Compute spatial niches from local cell-type composition.

gr.calculate_niche_utag(data, *, resolutions)

Compute spatial niches from UTAG-style feature aggregation.

gr.calculate_niche_cellcharter(data, *[, ...])

Compute spatial niches using a CellCharter-style embedding and GMM [Varrone et al., 2023].

gr.calculate_niche_spatialleiden(data, *, ...)

Compute niche assignments using the SpatialLeiden algorithm.