Import ome zarr
Task to import an existing OME-Zarr.
| FUNCTION | DESCRIPTION |
|---|---|
import_ome_zarr |
Import a single OME-Zarr into Fractal. |
open_unknown_container |
Detect the OME-NGFF type of the OME-Zarr, based on its root metadata. |
Classes¶
Functions:¶
_build_xy_roi_table(ome_zarr_image, grid_YX_shape=None, backend='csv', overwrite=False)
¶
Build a grid_ROI_table with a rectangular grid of ROIs covering the whole image.
| PARAMETER | DESCRIPTION |
|---|---|
|
OME-Zarr image container.
TYPE:
|
|
Number of ROIs along Y and X. The image is split into a
|
|
Table backend to use.
TYPE:
|
|
Whether to overwrite an existing
TYPE:
|
Source code in fractal_tasks_core/import_ome_zarr.py
_process_plate(*, zarr_path, ome_zarr_plate, advanced_options)
¶
For each image in the plate, create an image list update dict.
Source code in fractal_tasks_core/import_ome_zarr.py
_process_single_image(*, zarr_path, ome_zarr_image, advanced_options, attributes=None)
¶
Optionally generate ROI tables and update omero metadata for a single image.
| PARAMETER | DESCRIPTION |
|---|---|
|
Absolute path to the image Zarr group.
TYPE:
|
|
OME-Zarr image container.
TYPE:
|
|
Advanced options for the import.
TYPE:
|
|
Optional image attributes to include in the update dict. |
Source code in fractal_tasks_core/import_ome_zarr.py
_process_well(*, zarr_path, ome_zarr_well, advanced_options)
¶
For each image in the well, create an image list update dict.
Source code in fractal_tasks_core/import_ome_zarr.py
import_ome_zarr(*, zarr_dir, zarr_name, advanced_options=Field(default_factory=AdvancedOptions))
¶
Import a single OME-Zarr into Fractal.
The single OME-Zarr can be a full OME-Zarr HCS plate or an individual OME-Zarr image. The image needs to be in the zarr_dir as specified by the dataset. This task registers the OME-Zarr with Fractal so it can be used in processing workflows, and optionally adds new ROI tables to the existing OME-Zarr.
| PARAMETER | DESCRIPTION |
|---|---|
|
Path of the directory where the OME-Zarr is located (standard argument for Fractal tasks, managed by Fractal server).
TYPE:
|
|
The OME-Zarr name, without its parent folder. The parent
folder is provided by zarr_dir; e.g.
TYPE:
|
|
Advanced options for importing an OME-Zarr, including
whether to add
TYPE:
|
Source code in fractal_tasks_core/import_ome_zarr.py
open_unknown_container(zarr_path)
¶
Detect the OME-NGFF type of the OME-Zarr, based on its root metadata.
The OME-NGFF type can be "plate", "well" or "image". If the OME-Zarr does not contain valid OME-NGFF metadata, an error is raised.
| PARAMETER | DESCRIPTION |
|---|---|
|
Path to the OME-Zarr.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
OmeZarrContainer | OmeZarrWell | OmeZarrPlate
|
OmeZarrContainer, OmeZarrWell, or OmeZarrPlate |