Subset a Spatial AnnData object.
This function selects the data for one slide from the spatial AnnData object. Useful when working with
Visium data. The keys in adata.uns['spatial'] should be the same as in s_col.
- Parameters:
- adata
AnnData Anndata object with multiple spatial experiments.
- s
str name of selected experiment.
- s_col
str (default: 'sample') column in obs listing experiment name for each location.
- Return type:
AnnData
- Returns:
returns AnnData after subsetting.