Skip to content

ENH: And Convert Tiff File with OME-NGFF Zarr output#32

Merged
thewtex merged 3 commits into
spatial-image:mainfrom
thewtex:tifffile
May 24, 2022
Merged

ENH: And Convert Tiff File with OME-NGFF Zarr output#32
thewtex merged 3 commits into
spatial-image:mainfrom
thewtex:tifffile

Conversation

@thewtex

@thewtex thewtex commented May 5, 2022

Copy link
Copy Markdown
Contributor

@joshmoore tried to create a bioformats2raw transitional layout. Does this look correct? Can your package validate it?

@joshmoore

Copy link
Copy Markdown

This block:

store = zarr.storage.DirectoryStore(f'{image_name}.zarr', dimension_separator='/')
group = zarr.group(store, overwrite=True)
group.attrs['bioformats2raw.layout'] = 3
store['OME/METADATA.ome.xml'] = tiff.ome_metadata.encode('utf-8')

certainly looks correct. Is there one of these Zarrs somewhere that I can try to validate?

@thewtex

thewtex commented May 5, 2022

Copy link
Copy Markdown
Contributor Author

@joshmoore

Copy link
Copy Markdown

From Python 👍

ome_zarr info sub-I46_ses-SPIM_sample-BrocaAreaS01_stain-GAD67_chunk-00_SPIM.zarr/
/Users/jamoore/Downloads/sub-I46_ses-SPIM_sample-BrocaAreaS01_stain-GAD67_chunk-00_SPIM.zarr [zgroup]
 - metadata
   - bioformats2raw
 - data
/Users/jamoore/Downloads/sub-I46_ses-SPIM_sample-BrocaAreaS01_stain-GAD67_chunk-00_SPIM.zarr/0 [zgroup]
 - metadata
   - Multiscales
 - data
   - (242, 342, 3882)
   - (242, 342, 1941)
   - (121, 171, 485)
   - (30, 42, 60)

@joshmoore

Copy link
Copy Markdown

ZarrReader.java was less happy: ome/ZarrReader#31 (comment) but that may be because of orthogonal advances.

@thewtex thewtex mentioned this pull request May 16, 2022
@thewtex thewtex marked this pull request as ready for review May 24, 2022 01:21
@thewtex

thewtex commented May 24, 2022

Copy link
Copy Markdown
Contributor Author

@djarecka @yarikoptic @satra @LeeKamentsky @joshmoore please take a look

@thewtex thewtex merged commit e2d0af4 into spatial-image:main May 24, 2022
@thewtex thewtex deleted the tifffile branch May 24, 2022 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants