harpy.io.convert_to_zarr_2#
- harpy.io.convert_to_zarr_2(sdata, output, overwrite=False)#
Convert a backed Zarr v3 SpatialData object into a Zarr v2 SpatialData store.
- Parameters:
sdata (
SpatialData) – The SpatialData object to convert. It must be backed by a Zarr v3 store.output (
str|Path) – Output path for the converted Zarr v2 SpatialData store.overwrite (
bool(default:False)) – If True, overwrite the output path if it already exists.
- Return type:
- Returns:
: The converted SpatialData object reloaded from
output.