init_projection_hcs
Task that copies the structure of an OME-NGFF zarr array to a new one.
_get_plate(current_plate_url, proj_plate_url, re_initialize_plate=False)
¶
Get or create an OME-Zarr projection plate.
If the plate already exists, return it.
If it does not exist, or if re_initialize_plate is True,
create a proj plate and return it.
Source code in fractal_tasks_core/init_projection_hcs.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | |
_open_well(well_path)
cached
¶
Open and return an OME-Zarr well object from the given path.
Source code in fractal_tasks_core/init_projection_hcs.py
19 20 21 22 23 24 25 26 27 28 29 | |
init_projection_hcs(*, zarr_urls, zarr_dir, method=DaskProjectionMethod.MIP, output_plate_name=Field(default='{plate_name}_{method}', pattern='^.*\\{plate_name\\}.*$'), overwrite=False, re_initialize_plate=False)
¶
Duplicate the OME-Zarr HCS structure for a set of zarr_urls.
This task only processes the zarr images in the zarr_urls, not all the images in the plate. It copies all the plate & well structure, but none of the image metadata or the actual image data:
- For each plate, create a new OME-Zarr HCS plate with the attributes for all the images in zarr_urls
- For each well (in each plate), create a new zarr subgroup with the same attributes as the original one.
| PARAMETER | DESCRIPTION |
|---|---|
zarr_urls |
List of paths or urls to the individual OME-Zarr image to be processed. (standard argument for Fractal tasks, managed by Fractal server). |
zarr_dir |
path of the directory where the new OME-Zarrs will be created. (standard argument for Fractal tasks, managed by Fractal server). zarr_url: Path or url to the individual OME-Zarr image to be processed.
TYPE:
|
method |
Choose which method to use for intensity projection along the Z axis.
TYPE:
|
output_plate_name |
The template for the output plate name. To make sure that the output plate is unique it must contain the placeholder {plate_name}, and it can optionally contain the placeholder {method}.
TYPE:
|
overwrite |
If True, previous projected images with the same "output_plate_name" will be overwritten.
TYPE:
|
re_initialize_plate |
If True, the projection plate will be re-initialized even if it already exists. If False, the task will incrementally add the projected images to the existing plate if it already exists.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
dict[str, Any]
|
Setup information required by the Compute Projection (HCS) task. |
Source code in fractal_tasks_core/init_projection_hcs.py
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 | |