Allow individual label images to be converted #135
+106
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This loosens some of the restrictions on the Zarr hierarchy, and adds a
-f
option so that metadata can be copied from an existing image file.I'd expect
raw2ometiff input.zarr/0/labels/abc_mask/ mask.ome.tiff -f /path/to/original/image/file
to be the pattern to use here, which would convert a single label image to a single OME-TIFF. If there are multiple label images underinput.zarr/0/labels/
, they would each need to be converted separately. The use of-f
means thatinput.zarr/OME/METADATA.ome.xml
does not need to exist (and in fact, would be ignored if it did).Fake data can easily be used to test the
-f
option. If any of the XYZCT dimensions are incorrect, an informative exception should be thrown.Assigning just @erindiel for now to make sure the required functionality has been captured correctly; can assign code reviewers afterwards.