Skip to content
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

Cli rechunking #186

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Cli rechunking #186

wants to merge 2 commits into from

Conversation

edyoshikun
Copy link
Contributor

This was some of the code used during the DL course for rechunking #184

@edyoshikun
Copy link
Contributor Author

For now, I implemented some functions that help me get to registered, rechunked and cropped volumes. Such functions work with slurm, which are beneficial for our mantis datasets with >100Positions multiple timepoints.

These are in the standard we set of ZYX and return a ZYX volume like our existing functions (i.e deskewing, apply_affine, etc) in the mantis repo here

I don't think these should live in iohub, but linking in case we grab some inspiration for when this is implemented.


from iohub.ngff import Plate, Position, TransformationMeta, open_ome_zarr

MAX_CHUNK_SIZE = 500e6 # in bytes
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @edyoshikun , I bumped into this because I'm having issues with chunking when copying data from Daxi.

MAX_CHUNK_SIZE should be a constraint, except for the 2147483647 bytes limit of zarr.
Otherwise, it decreases iohub flexibility.

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