ome/napari-ome-zarr

Is there a equivalent of `channel_axis` property?

ajitjohnson opened this issue · 2 comments

Hello,

Apologies again for another naive question. I was wondering if there was an equivalent of channel_axis that is found in napari.view_image() to be used here when I load an image using viewer.open('path to ome-zarr')?

To give some context, I am trying to load multiplexed imaging data with n number of markers and I would like each marker to be on its own layer.

Here is what I used to do previously with ome.tiff. Once I load the image, I overlay things that would be of interest for data analysis. However, now I would like to do the same but with ome-zarr folder.

Thank you very much.

Hi,
Hopefully this is useful: https://ome-zarr.readthedocs.io/en/stable/python.html#writing-ome-ngff-images
although that's only a single-channel example.
In your case, you'd need to specify the channel axis like axes=tczyx (omitting z or t if they don't apply) and the dimensions of the numpy data should be in that order. e.g. data.shape = (size_c, size_y, size_x).

Hope that helps,
Will.

Thank you so much Will, I confused axes=cyx with axes=zyx, which was the issue.