WIP: Introduce plate class#570
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…/ome-zarr-py into introduce-image-class
for more information, see https://pre-commit.ci
…/ome-zarr-py into introduce-image-class
for more information, see https://pre-commit.ci
…/ome-zarr-py into introduce-image-class
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…/ome-zarr-py into introduce-image-class
enh: add correct translation transforms for legacy reader [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci docs: Update docstrings [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci fix: fix docstring chore: Catch more specific errors [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci fix: safer type casting fix: fix type-declarations enh: support image-label metadata
refactor: fix import refactor: Move image classes into submodule
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci chore: remove unnnecessary __main__ in test [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci chore: pre-commit fixes [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci tests: fix import tests: add reader tests for new classes tests: fix typo
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
chore: typo [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci chore: fix header levels chore: fix mutable default values in writers [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
tests: fix passed and tested scales enh: type cast chore: remove unused variable [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci chore: remove unused variable chore: remove redundant error flag [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci fix: fix docstring chore: Catch more specific errors [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci fix: safer type casting fix: fix type-declarations [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci chore: remove unnnecessary __main__ in test [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci chore: pre-commit fixes [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci tests: fix import [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…/ome-zarr-py into introduce-image-class
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
|
@will-moore if you're interested, this would be roughly my idea on how a class-based API could look like for writing HCS data (see In essence, one would have to create a dictionary of plate_dict = {
("A", 1): [ngff_rowA_col1_fov1, ngff_rowA_col1_fov2, ...],
("A", 2): [ngff_rowA_col2_fov1, ngff_rowA_col2_fov2, ...],
("B", 1): [ngff_rowB_col1_fov1, ngff_rowB_col1_fov2, ...]
}
ngff_plate = NgffHCSPlate(plate_dict)
ngff_plate.to_ome_zarr(...)this would then internally populate the omzp metadata, and dump everything to disk. |
|
So, you have to have the whole plate in memory / dask-arrays before you write? When we export Plates with In your |
Kind of. Under the hood, everything is coerced to a dask array, so the memory footprint should be low. Or at least not larger than whatever a user has in memory in the first place.
The |
|
This pull request has been mentioned on Image.sc Forum. There might be relevant details there: |
This is a first draft of an implementation of how writing plates could look like in a class-based API world, built around the
NgffMultiscalesclass proposed in #515