API
Import MESA as:
import mesa as ms
Multiomics
Compute the k-nearest neighbors (k-NN) of each location in a given data matrix. |
|
|
Compute the global composition of neighbors for each sample, either in percentage or count form, based on k-nearest neighbors (k-NN) indices and specific cluster labels. |
|
Calculate the average expression values over the neighbors of each data point. |
Ecospatial
|
Generate a list of patches from a spatial data object, scaling them according to a given factor. |
Calculate the Shannon entropy of a set of counts. |
|
|
Calculate the heterogeneity index for a set of patches using specified metrics. |
|
Visualize the diversity indices as a heatmap on the original spatial data, optionally returning the plot figure for further customization. |
|
Perform global spatial autocorrelation analysis on a 2D grid of diversity indices. |
|
Compute local indicators of spatial association (LISA) for local spatial autocorrelation on a 2D grid of diversity indices, identifying significant hotspots and coldspots based on the chosen statistical method. |
|
Calculate the multiscale diversity index (MDI) for spatial data. |
|
Calculate a Global Diversity Index (GDI) for specified samples within spatial data, incorporating spatial statistics under chosen analysis modes. |
|
Calculate the Diversity Proximity Index (DPI) for specified samples within spatial data. |
|
Analyze cell frequency and co-occurrence across different spots in spatial data. |