COSIE.data_preprocessing
Functions
Normalize each cell's protein counts using Centered Log-Ratio (CLR) normalization, following the approach used in Seurat and SpatialGLUE. |
|
Apply metacell construction to all available AnnData objects in a multimodal dataset dictionary. |
|
Process input spatial multi-modal data, returning processed feature matrices and spatial coordinates. |
|
Construct metacells by aggregating every 2×2 spatially adjacent grid of cells into one, using integer grid grouping for O(n) performance. |
|
Preprocess an AnnData object based on the specified modality. |
|
Expand metacell-level embeddings back to individual cells based on the metacell-to-original cell mapping. |