Skip to content

Porting create_empty_zarr to iohub#234

Merged
ieivanov merged 38 commits into
mainfrom
mp_utils_port
Sep 27, 2024
Merged

Porting create_empty_zarr to iohub#234
ieivanov merged 38 commits into
mainfrom
mp_utils_port

Conversation

@edyoshikun
Copy link
Copy Markdown
Collaborator

@edyoshikun edyoshikun commented Jul 16, 2024

This PR adds shrimPy utility functions relevant to iohub listed below:

  • create_empty_zarr: enables the creation of an empty zarr
  • process_single_position: function that can apply a czyx in czyx out function to a zarr store.

TODO:

@mattersoflight
Copy link
Copy Markdown
Collaborator

mattersoflight commented Jul 16, 2024

TODO:
Implement tests via hypothesis

@ieivanov
Copy link
Copy Markdown
Contributor

Heads up, I'll have a bunch of comments and edits here, WIP

@ieivanov ieivanov changed the base branch from main to mp_utils_port_v1 July 18, 2024 23:36
@ieivanov ieivanov changed the base branch from mp_utils_port_v1 to main July 18, 2024 23:41
Comment thread iohub/ngff_utils.py Outdated
Comment thread iohub/ngff_utils.py Outdated
Comment thread iohub/ngff_utils.py Outdated
Comment thread iohub/ngff_utils.py Outdated
Comment thread iohub/ngff_utils.py Outdated
Comment thread iohub/ngff_utils.py Outdated
Comment thread iohub/ngff_utils.py Outdated
Comment thread iohub/ngff_utils.py Outdated
Comment thread iohub/ngff_utils.py Outdated
Comment thread iohub/ngff_utils.py Outdated
Comment thread iohub/ngff_utils.py Outdated
Comment thread iohub/ngff_utils.py Outdated
Comment thread iohub/ngff_utils.py Outdated
@ieivanov
Copy link
Copy Markdown
Contributor

P.S. I'm leaving a bunch of comments here so we can agree on the structure, but I'm also happy to implement some of these suggestions, I'm not asking others (Ed) to implement all of these.

Copy link
Copy Markdown
Member

@JoOkuma JoOkuma left a comment

Choose a reason for hiding this comment

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

The functions to process_ and transform_ the data could be made for general and work on arbitrary axes with some changes. We did this here in ultrack

Is it really necessary to have a function to process a single position?

From my POV, these "apply" functions should take an arbitrary BaseFOVMapping as input and write an ome-zarr.

We could write a wrapper of the BaseFOV that creates a "trivial" BaseFOVMapping that behaves as an HCS, so there's a single implementation for both cases and supporting multiple file types as input.

Comment thread iohub/ngff_utils.py Outdated
Comment thread iohub/ngff_utils.py Outdated
Comment thread iohub/ngff_utils.py Outdated
ziw-liu and others added 2 commits July 31, 2024 11:33
* unify comment format

* fix typing and docstring

* create ngff sub-package
and refactor display util file

* refactor ngff meta file

* refactor ngff

* export transformation model

* fix type hint

* bump ome-zarr target in docstring

* migrate to pydantic v2

* isort

* fix validators

* remove union type

* fix dependency

* update docstring

* typing improvements

* Update iohub/ngff/models.py

Co-authored-by: Jordão Bragantini <jordao.bragantini@czbiohub.org>

* fix style

* update module docstring to specify their content

---------

Co-authored-by: Jordão Bragantini <jordao.bragantini@czbiohub.org>
@ieivanov
Copy link
Copy Markdown
Contributor

ieivanov commented Aug 7, 2024

Related: czbiohub-sf/biahub#78

JoOkuma and others added 3 commits September 17, 2024 11:19
* Fixing pyramid scaling factor

* fix pyramid test

* fix test again
* adding the ImageArray

* precommit

* black
Comment thread iohub/ngff_utils.py Outdated
Comment thread iohub/ngff/utils.py Outdated
Comment thread iohub/ngff/utils.py Outdated
Comment thread iohub/ngff/utils.py Outdated
Comment thread iohub/ngff/utils.py Outdated
Comment thread iohub/ngff/utils.py Outdated
Copy link
Copy Markdown
Contributor

@talonchandler talonchandler left a comment

Choose a reason for hiding this comment

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

Ready to go from me!

@ieivanov ieivanov merged commit d6f7956 into main Sep 27, 2024
@ieivanov ieivanov deleted the mp_utils_port branch September 27, 2024 20:55
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.

6 participants