Skip to content

igneous mesh forge overwrites in-place (and corrupts) input OME-Zarr metadata #199

@LucaMarconato

Description

@LucaMarconato

This bug is closely related to #196, but I report it in a separate issue because I will give more detailed instructions on how to reproduce and also I will reference it in a different repo.

Expected behavior

Running igneous mesh forge on some labels OME-Zarr data should create a new mesh folder and in doing so it should not modify the input data.

Observed behavior

Some of the metadata of the input data is silently modified in-place, and in doing so it gets corrupted

To reproduce

Preparation

  1. Download the dataset described here.
  2. cd 20200812-CardiomyocyteDifferentiation14-Cycle1.zarr/B/03/0/labels/nuclei
  3. run cat 0/.zarray, you should see this:
Image

The bug

  1. Now run igneous mesh forge . --queue my-queue && igneous execute -x -n 8 my-queue . This will fail as previously described in the related issue that I mentioned earlier Unable to run igneous mesh forge on OME-Zarr (v0.4) labels #196
  2. Run cat 0/.zarray, now you will see the following, which shows that the input data has been modified in-place. In particular the chunks list now has different values! This corrupts the OME-Zarr dataset and leads to problem with parsing (I will give more details on this in a separate issue, but here the solution is to keep the input metadata untouched).
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions