muspan.region_based#

The muspan.region_based module provides tools for region-based analysis of spatial data. This module includes the following submodules:

Region building

generate_quadrats

Generates a tiling of quadrats of a specified side length across the domain.

generate_hexgrid

Generates a tiling of hexagons of a specified side length across the domain.

Region-based analysis

quadrat_correlation_matrix

The Quadrat Correlation Matrix (QCM) identifies statistically significant co-occurrences between objects with different labels (e.g., cell types) within regions of interest (ROIs).

morisita_horn_index

Calculate the Morisita-Horn index for a given domain and label.