-
Notifications
You must be signed in to change notification settings - Fork 4
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
Appending reconstructed channels gives zero arrays #458
Comments
The 5-th channel is indeed not written: /hpc/projects/group.leonetti/opencell-infection-microscopy/TICM0051-1/TICM0051-1_raw.zarr/B/3/8 du -ah -d 2 0
4.0K 0/.zarray
42M 0/0/3
33M 0/0/0
268K 0/0/4
26M 0/0/2
32M 0/0/1
131M 0/0
131M 0 I noticed that the array has the data type of "dtype": "<u2", We may need to revise the data organization to not only create a new store when the shape changes, but also when the data type changes (e.g. reconstruction). @Soorya19Pradeep did recOrder throw any error during reconstruction? |
Alternatively, we can cast the raw data into float32 (where the full range of uint16 can be preserved). During storage and I/O this will be a small hit thanks to compression, but at runtime this will incur 2x memory usage. Also this seems less intuitive to me. |
No @ziw-liu , recOrder did not through any error. |
@ziw-liu , thanks for the input. I guess I will go with two zarr stores if that is more efficient. |
@Soorya19Pradeep I agree that you should proceed with two zarr stores. If we decide that this issue is a priority, we'll need to decide:
|
Summary
RecOrder reconstruction of channels and appending it back to the same zarr as a new channel gives zero arrays. This method combines steps of iohub MM to zarr conversion and reconstruction, both producing arrays of same size.
Code and data for reproduction
I tried both
recorder reconstruct $INPUT_PATHS -c ./phase.yaml -o $OUTPUT_PATH
as well as
This was tried on
/hpc/projects/group.leonetti/opencell-infection-microscopy/TICM0051-1/TICM0051-1_raw.zarr
. The reconstructed BF channelMultiCam_GFP_mCherry_BF_narrow-Zyla
was appended as a new channelPhase3D
in this zarr.Expected behavior
The reconstructed data appended to the iohub converted zarr should be phase values, not zeros.
Environment:
Operating system: Linux, HPC
Python version: Python 3.10
Python environment (command line, IDE, Jupyter notebook, etc): command line
The text was updated successfully, but these errors were encountered: