-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot open OME-Zarr created with bioformats2raw #21
Comments
@dpshepherd thanks for raising this important issue. Overall, I think the behavior you are seeing is expecting. For non-HCS filesets, the output of From the OME-NGFF perspective, each of the In the mid-term, we are definitely hoping to formalize the layout of I'll leave @chris-allan and @melissalinkert to add anything I missed. |
@sbesson thanks for the clarification. Given that we have 17 (typo, not 16) independent channels for the same 3D voxels, is there a "better" way to use bioformats2raw? Or is the process we have used the preferred method? We can also do this conversion in Python, but wanted to try out |
What that napari user interface behaviour signals to me is that Bio-Formats is not detecting your channels correctly to begin with and consequently you have bad input going into You first need to ensure that the
I have mocked your use case up using .fake files:
This is what my
Converting this with As @sbesson has already mentioned, yes, |
I will test your suggestions later, but 16 channels was a typo, sorry about that. We do have 17, <00-16> is correct. Thanks. |
Here is the output of Is there a way to force the assignment to the channel axis? If we have to fix individual TIFF files, we will probably just start writing this with Python, since we are quite comfortable in Python and can use one of the existing ome-ngff packages.
|
If we change the filename from The pattern file page states that "ch" should be recognized as a channel axis, which is why we did not alter it on the first try. |
Thanks @dpshepherd, I was also under the assumption that |
The We will create smaller examples files that still have this issue and host them for download. Might take a few days. |
I certainly used |
@dpshepherd while you are generating example files, could you give us the output of |
Note that we renamed
|
Thanks @dpshepherd, I tried to reproduce the issue using the
Here the detection and the combination of all the constituent files as a multi-channel image work as expected. As Chris said, one variation between our environments is the underlying file format and there might be some unexpected interaction with these TIFF files. Another difference is the operating system under which the command-line utilities are executed. |
@sbesson - yes, I am also wondering about environment, OS, and these specific TIFF files. Our server is still tied up, but making smaller files for this test is the next job up. I also am curious if we should build the latest Did you make a OME-Zarr out of these newest test files? Even when |
@dpshepherd: sorry for the delay. I have been working on this in the background. I generated a Zarr dataset from the fake-based pattern fileset described above using Conda packages``` (zarr) [sbesson@pilot-zarr2-dev ~]$ conda --version conda 4.10.3 (zarr) [sbesson@pilot-zarr2-dev ~]$ conda list # packages in environment at /home/sbesson/miniconda3/envs/zarr: # # Name Version Build Channel _libgcc_mutex 0.1 conda_forge conda-forge _openmp_mutex 4.5 1_gnu conda-forge aiobotocore 1.4.1 pypi_0 pypi aiohttp 3.7.4.post0 pypi_0 pypi aioitertools 0.8.0 pypi_0 pypi alsa-lib 1.2.3 h516909a_0 conda-forge appdirs 1.4.4 pyh9f0ad1d_0 conda-forge asciitree 0.3.3 py_2 conda-forge async-timeout 3.0.1 pypi_0 pypi attrs 21.2.0 pypi_0 pypi awscli 1.22.14 py39hf3d152e_0 conda-forge bioformats2raw 0.3.0 0 ome bioformats2raw-libs 0.3.0 0 ome blosc 1.21.0 h9c3ff4c_0 conda-forge botocore 1.20.106 pypi_0 pypi brotlipy 0.7.0 py39h3811e60_1001 conda-forge bzip2 1.0.8 h7f98852_4 conda-forge ca-certificates 2021.10.8 ha878542_0 conda-forge cairo 1.16.0 h6cf1ce9_1008 conda-forge certifi 2021.10.8 py39hf3d152e_1 conda-forge cffi 1.14.6 py39he32792d_0 conda-forge chardet 4.0.0 py39hf3d152e_1 conda-forge cloudpickle 2.0.0 pypi_0 pypi colorama 0.4.3 py_0 conda-forge cryptography 3.4.7 py39hbca0aa6_0 conda-forge cycler 0.10.0 pypi_0 pypi dask 2021.9.0 pypi_0 pypi docutils 0.15.2 py39hf3d152e_3 conda-forge expat 2.4.1 h9c3ff4c_0 conda-forge fasteners 0.16 pyhd8ed1ab_0 conda-forge fontconfig 2.13.1 hba837de_1005 conda-forge freetype 2.10.4 h0708190_1 conda-forge fsspec 2021.8.1 pypi_0 pypi future 0.18.2 py39hf3d152e_3 conda-forge gettext 0.19.8.1 h0b5b191_1005 conda-forge giflib 5.2.1 h36c2ea0_2 conda-forge graphite2 1.3.13 h58526e2_1001 conda-forge harfbuzz 2.9.1 h83ec7ef_0 conda-forge icu 68.1 h58526e2_0 conda-forge idna 2.10 pyh9f0ad1d_0 conda-forge imageio 2.9.0 pypi_0 pypi jbig 2.1 h7f98852_2003 conda-forge jmespath 0.10.0 pyh9f0ad1d_0 conda-forge jpeg 9d h36c2ea0_0 conda-forge kiwisolver 1.3.2 pypi_0 pypi lcms2 2.12 hddcbb42_0 conda-forge ld_impl_linux-64 2.36.1 hea4e1c9_2 conda-forge lerc 2.2.1 h9c3ff4c_0 conda-forge libblas 3.9.0 11_linux64_openblas conda-forge libcblas 3.9.0 11_linux64_openblas conda-forge libdeflate 1.7 h7f98852_5 conda-forge libffi 3.3 h58526e2_2 conda-forge libgcc-ng 11.1.0 hc902ee8_8 conda-forge libgfortran-ng 11.1.0 h69a702a_8 conda-forge libgfortran5 11.1.0 h6c583b3_8 conda-forge libglib 2.68.4 h3e27bee_0 conda-forge libgomp 11.1.0 hc902ee8_8 conda-forge libiconv 1.16 h516909a_0 conda-forge liblapack 3.9.0 11_linux64_openblas conda-forge libopenblas 0.3.17 pthreads_h8fe5266_1 conda-forge libpng 1.6.37 h21135ba_2 conda-forge libstdcxx-ng 11.1.0 h56837e0_8 conda-forge libtiff 4.3.0 hf544144_1 conda-forge libuuid 2.32.1 h7f98852_1000 conda-forge libwebp-base 1.2.1 h7f98852_0 conda-forge libxcb 1.13 h7f98852_1003 conda-forge libxml2 2.9.12 h72842e0_0 conda-forge locket 0.2.1 pypi_0 pypi lz4-c 1.9.3 h9c3ff4c_1 conda-forge matplotlib 3.4.3 pypi_0 pypi monotonic 1.5 py_0 conda-forge msgpack-python 1.0.2 py39h1a9c180_1 conda-forge multidict 5.1.0 pypi_0 pypi ncurses 6.2 h58526e2_4 conda-forge networkx 2.6.3 pypi_0 pypi numcodecs 0.9.1 py39he80948d_0 conda-forge numpy 1.21.2 py39hdbf815f_0 conda-forge olefile 0.46 pyh9f0ad1d_1 conda-forge ome-zarr 0.2.1 pypi_0 pypi omero-cli-zarr 0.2.1 pypi_0 pypi omero-py 5.10.0 py39_1 ome openjdk 11.0.9.1 h5cc2fde_1 conda-forge openjpeg 2.4.0 hb52868f_1 conda-forge openssl 1.1.1l h7f98852_0 conda-forge packaging 21.0 pypi_0 pypi partd 1.2.0 pypi_0 pypi pcre 8.45 h9c3ff4c_0 conda-forge pillow 8.3.2 py39ha612740_0 conda-forge pip 21.2.4 pyhd8ed1ab_0 conda-forge pixman 0.40.0 h36c2ea0_0 conda-forge pthread-stubs 0.4 h36c2ea0_1001 conda-forge pyasn1 0.4.8 py_0 conda-forge pycparser 2.20 pyh9f0ad1d_2 conda-forge pyopenssl 20.0.1 pyhd8ed1ab_0 conda-forge pyparsing 2.4.7 pypi_0 pypi pysocks 1.7.1 py39hf3d152e_3 conda-forge python 3.9.7 h49503c6_0_cpython conda-forge python-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge python_abi 3.9 2_cp39 conda-forge pywavelets 1.1.1 pypi_0 pypi pyyaml 5.4.1 py39h3811e60_1 conda-forge raw2ometiff 0.3.0 0 ome raw2ometiff-libs 0.3.0 0 ome readline 8.1 h46c0cb4_0 conda-forge requests 2.25.1 pyhd3deb0d_0 conda-forge rsa 4.7.2 pyh44b312d_0 conda-forge s3fs 2021.8.1 pypi_0 pypi s3transfer 0.5.0 pyhd8ed1ab_0 conda-forge scikit-image 0.18.3 pypi_0 pypi scipy 1.7.1 pypi_0 pypi setuptools 58.0.4 py39hf3d152e_0 conda-forge six 1.16.0 pyh6c4a22f_0 conda-forge sqlite 3.36.0 h9cd32fc_1 conda-forge tifffile 2021.8.30 pypi_0 pypi tk 8.6.11 h27826a3_1 conda-forge toolz 0.11.1 pypi_0 pypi typing-extensions 3.10.0.2 pypi_0 pypi tzdata 2021a he74cb21_1 conda-forge urllib3 1.26.6 pyhd8ed1ab_0 conda-forge wheel 0.37.0 pyhd8ed1ab_1 conda-forge wrapt 1.12.1 pypi_0 pypi xorg-fixesproto 5.0 h7f98852_1002 conda-forge xorg-inputproto 2.3.2 h7f98852_1002 conda-forge xorg-kbproto 1.0.7 h7f98852_1002 conda-forge xorg-libice 1.0.10 h7f98852_0 conda-forge xorg-libsm 1.2.3 hd9c2040_1000 conda-forge xorg-libx11 1.7.2 h7f98852_0 conda-forge xorg-libxau 1.0.9 h7f98852_0 conda-forge xorg-libxdmcp 1.1.3 h7f98852_0 conda-forge xorg-libxext 1.3.4 h7f98852_1 conda-forge xorg-libxfixes 5.0.3 h7f98852_1004 conda-forge xorg-libxi 1.7.10 h7f98852_0 conda-forge xorg-libxrender 0.9.10 h7f98852_1003 conda-forge xorg-libxtst 1.2.3 h7f98852_1002 conda-forge xorg-recordproto 1.14.2 h7f98852_1002 conda-forge xorg-renderproto 0.11.1 h7f98852_1002 conda-forge xorg-xextproto 7.3.0 h7f98852_1002 conda-forge xorg-xproto 7.0.31 h7f98852_1007 conda-forge xz 5.2.5 h516909a_1 conda-forge yaml 0.2.5 h516909a_0 conda-forge yarl 1.6.3 pypi_0 pypi zarr 2.9.5 pyhd8ed1ab_0 conda-forge zeroc-ice36-python 3.6.5 py39h2bc3f7f_7 ome zlib 1.2.11 h516909a_1010 conda-forge zstd 1.5.0 ha95c52a_0 conda-forge ```The output of the data generation has been uploaded to a temporary public bucket. Locally running
gives me the expected output with channels appearing as layers rather than sliders I have Trying to identify the divergence between our environments, what is the behavior when you are pointing napari at this dataset? |
I have When I load the data from the bucket using,
and then the data loads as expected and I get a viewer that looks exactly like yours. This suggests to me that it is either the TIFF files that BigStitcher created or bioformats2raw. Our server is finally freed up, so we can generate smaller files in the next day or two. |
Hi @dpshepherd did you make any progress here? Is this issue still open? |
Hi @will-moore - We've moved away from OME-NGFF, so this can be closed as far as I'm concerned. We wont' be working on it anymore. |
Hi all,
We have a OME-Zarr (190 GB) created with a freshly installed
bioformats2raw
, installed into a new conda environment (python=3.8) using the ome channel on conda-forge on a Window 10 machine. The top-level file structure looks as follows:lung.zarr
├── 0
├── OME
├── .zattrs
└── .zgroup
The call to bioformats2raw was:
bioformats2raw image.pattern d:/lung_2x/lung.zarr
whereimage.pattern
containsfused_ch<00-16>.tif
. Each .tif file is ~14 GB, is a 3D stack created by the BigStitcher plugin in FIJI, and contains one channel.Using a brand new conda environment (python=3.9) with the latest Napari and napari-ome-zarr, installed using
pip install napari[all] napari-ome-zarr
, we try to open the file using 'napari d:/lung_2x/lung.zarr
and get the following error:ValueError: No plugin found capable of reading 'D:\\lung_2x\\lung.zarr'.
If we instead call Napari using to
napari d:/lung.zarr/0
it does open the data, with the channels appearing on one of the sliders.Any suggestions on how to get Napari to properly open this as a OME-Zarr?
Thanks.
The text was updated successfully, but these errors were encountered: