-
Notifications
You must be signed in to change notification settings - Fork 66
Is bioformats2raw .zarr incompatible with ome-zarr-py? #421
Copy link
Copy link
Closed
Description
Converting an .ome.tiff using bioformats2raw to .zarr and trying to read the .zarr using ome-zarr-py with
from ome_zarr.io import parse_url
from ome_zarr.reader import Reader
url = "bioformats2raw-output.zarr"
reader = Reader(parse_url(url))
# nodes may include images, labels etc
nodes = list(reader())
# first node will be the image pixel data
# IndexError
image_node = nodes[0]
dask_data = image_node.dataerrors on image_node = nodes[0]:
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
Cell In[2], [line 10](vscode-notebook-cell:?execution_count=2&line=10)
[8](vscode-notebook-cell:?execution_count=2&line=8) nodes = list(reader())
[9](vscode-notebook-cell:?execution_count=2&line=9) # first node will be the image pixel data
---> [10](vscode-notebook-cell:?execution_count=2&line=10) image_node = nodes[0]
[12](vscode-notebook-cell:?execution_count=2&line=12) # dask_data = image_node.data
[13](vscode-notebook-cell:?execution_count=2&line=13) # dask_data[0]
IndexError: list index out of rangeand indeed, nodes is an empty list.
Are the outputs of bioformats2raw and ome-zarr-py compatible? I tried using an examle OME-TIFF (https://docs.openmicroscopy.org/ome-model/5.6.3/ome-tiff/data.html) which also fails. Currently, bioformats2raw documents it writes OME-NGFF 0.4 by default and ome-zarr-py should currently read 0.4 by default if I'm not mistaken.
Am I missing something?
versions:
bioformats2raw: 0.9.4, git clone https://github.com/glencoesoftware/bioformats2raw && docker build . && docker run ...
ome-zarr-py: 0.10.3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels