API

Import MESA as:

import mesa as ms

Multiomics

Ecospatial

ecospatial.generate_patches(spatial_data, ...)

Generate a list of patches from a spatial data object.

ecospatial.calculate_shannon_entropy(counts)

Calculate the Shannon entropy of a set of counts.

ecospatial.calculate_diversity_index(...[, ...])

Calculate the heterogeneity index for a set of patches.

ecospatial.multiscale_diversity(...[, mode, ...])

Calculate the multiscale neighbourhood heterogeneity.

ecospatial.diversity_heatmap(spatial_data, ...)

This function visualizes the heterogeneity indices as a heatmap on the original spatial data.

ecospatial.global_moran(grid[, tissue_only, ...])

Perform global Moran's I test for spatial autocorrelation.

ecospatial.local_moran(grid[, tissue_only, ...])

Perform local Moran's I test (LISA) for local spatial autocorrelation