Preprocessing#
QC quality#
|
Compute global Moran's I for each gene and return a new AnnData object containing only genes with significant spatial autocorrelation (p-value < alpha). |
|
Preprocess two spatial omics AnnData objects by removing spots/cells with no cross-omics spatial neighbors. |
Downsampling#
|
Downsample a spatial omics dataset by binning spots/cells into a regular grid. |
Patch#
|
Extract a spatial region from an AnnData object based on spatial coordinates. |
|
Divide the overlapping spatial region of two spatial omics into a grid of patches. |