spatialdata_io.experimental.from_legacy_anndata#
- spatialdata_io.experimental.from_legacy_anndata(adata, rgb=None)#
Convert (legacy) spatial AnnData object to SpatialData object.
This is useful for parsing a (legacy) spatial AnnData object, for example the ones produced by Scanpy and older version of Squidpy.
- Parameters:
- Return type:
- Returns:
: The SpatialData object
Notes
The SpatialData object will have one hires and one lowres image for each dataset in the AnnData object.