spatialdata icon indicating copy to clipboard operation
spatialdata copied to clipboard

Remove `region` from `adata.uns['spatialdata_attrs']`

Open LucaMarconato opened this issue 2 years ago • 1 comments

As discussed here https://github.com/scverse/spatialdata/pull/410#discussion_r1430298422 and here https://github.com/scverse/spatialdata/pull/410#discussion_r1441517847, we are considering removing the region metadata.

We will still write it to disk to be used for cloud applications, but for in-memory uses we can have a method that is reading the levels of the column table.obs[REGION_KEY], which we will encourage (via warnings) or force to be a categorical.

LucaMarconato avatar Jan 05 '24 15:01 LucaMarconato

CC @giovp @melonora

LucaMarconato avatar Jan 05 '24 15:01 LucaMarconato