In anndata, I can easily filter out low-quality cells using the following:
adata = adata[~adata.obs.fine_celltype.isin([‘Low quality’]), :].copy()
I would like to achieve the same thing in spatialdata, but I’m not sure how to correctly apply this kind of filtering. What’s the recommended way to subset a SpatialData object based on values in the .obs of a table?
Thanks in advance for your help!