spatialdata icon indicating copy to clipboard operation
spatialdata copied to clipboard

Unrecognized zarr version for example dataset in tutorial

Open keviny2 opened this issue 11 months ago • 7 comments

I get an error when I load the example .zarr as a SpatialData object in the tutorial. The link to the example dataset (https://s3.embl.de/spatialdata/spatialdata-sandbox/mouse_liver.zip) uses an unrecognized Version 0.6-dev. Here is the last part of the stack trace:

import matplotlib as mpl
import matplotlib.pyplot as plt
import spatialdata as sd
import spatialdata_plot

data_path = "mouse_liver.zarr"
sdata = sd.read_zarr(data_path)

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
...
File ~/scratch/miniforge3/envs/spatialdata/lib/python3.10/site-packages/ome_zarr/format.py:21, in format_from_version(version)
     [19](~/scratch/miniforge3/envs/spatialdata/lib/python3.10/site-packages/ome_zarr/format.py:19)     if fmt.version == version:
     [20](~/scratch/miniforge3/envs/spatialdata/lib/python3.10/site-packages/ome_zarr/format.py:20)         return fmt
---> [21](~/scratch/miniforge3/envs/spatialdata/lib/python3.10/site-packages/ome_zarr/format.py:21) raise ValueError(f"Version {version} not recognized")

ValueError: Version 0.6-dev not recognized

keviny2 avatar Feb 04 '25 23:02 keviny2

Thanks @keviny2 for reporting. There was a misconfiguration in the pipeline that we use to generate and upload the datasets and a dev version of the package was used. I now re-run the job that is converting and uploading the datasets, so in 1-2 hours you should be able to download the correct datasets.

The format will be bumped at the next release of spatialdata, which will be able to read in the data.

CC @berombau

LucaMarconato avatar Feb 06 '25 18:02 LucaMarconato

Great. Thanks @LucaMarconato !

keviny2 avatar Feb 06 '25 18:02 keviny2

I got the same error for another two example datasets, Visium dataset, Xenium dataset, can you kindly regenerated them as well? @LucaMarconato , Many thanks!

BTW this package is fantastic! Thank you all for creating such an amazing tool!

stevenhuakui avatar Feb 08 '25 22:02 stevenhuakui

@stevenhuakui thanks for the kind feedback, and for reporting. You are right, those two datasets are from a notebook that I didn't re-run. Now when the conversion job will conclude, all the datasets should be consistent.

LucaMarconato avatar Feb 10 '25 14:02 LucaMarconato

Perfect! Thanks @LucaMarconato !

stevenhuakui avatar Feb 10 '25 14:02 stevenhuakui

i get the same error, when use the The link to the example dataset (https://s3.embl.de/spatialdata/spatialdata-sandbox/mouse_liver.zip)

zhangj1115 avatar Feb 25 '25 14:02 zhangj1115

@zhangj1115 thanks for reporting. The same problem reoccurred. It will be fixed in a few hours. I will make a release soon, which will address the issue at the root by providing a version of the library that is able to read the updated uploaded data.

LucaMarconato avatar Feb 25 '25 16:02 LucaMarconato