Skip to content

Is bioformats2raw .zarr incompatible with ome-zarr-py? #421

@siemdejong

Description

@siemdejong

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.data

errors 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 range

and 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions