specs
Pydantic models related to OME-NGFF 0.4 specs, as implemented in fractal-tasks-core.
AcquisitionInPlate
¶
Bases: BaseModel
Model for an element of Plate.acquisitions
.
See https://ngff.openmicroscopy.org/0.4/#plate-md.
Source code in fractal_tasks_core/ngff/specs.py
396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 |
|
Axis
¶
Bases: BaseModel
Model for an element of Multiscale.axes
.
See https://ngff.openmicroscopy.org/0.4/#axes-md.
Source code in fractal_tasks_core/ngff/specs.py
67 68 69 70 71 72 73 74 75 76 |
|
Channel
¶
Bases: BaseModel
Model for an element of Omero.channels
.
See https://ngff.openmicroscopy.org/0.4/#omero-md.
Source code in fractal_tasks_core/ngff/specs.py
43 44 45 46 47 48 49 50 51 52 53 54 |
|
ColumnInPlate
¶
Bases: BaseModel
Model for an element of Plate.columns
.
See https://ngff.openmicroscopy.org/0.4/#plate-md.
Source code in fractal_tasks_core/ngff/specs.py
437 438 439 440 441 442 443 444 |
|
Dataset
¶
Bases: BaseModel
Model for an element of Multiscale.datasets
.
See https://ngff.openmicroscopy.org/0.4/#multiscale-md
Source code in fractal_tasks_core/ngff/specs.py
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 |
|
scale_transformation: ScaleCoordinateTransformation
property
¶
Extract the unique scale transformation, or fail otherwise.
ImageInWell
¶
Bases: BaseModel
Model for an element of Well.images
.
Note 1: The NGFF image is defined in a different model
(NgffImageMeta
), while the Image
model only refere to an item of
Well.images
.
Note 2: We deviate from NGFF specs, since we allow path
to be an
arbitrary string.
TODO: include a check like constr(regex=r'^[A-Za-z0-9]+$')
, through a
Pydantic validator.
See https://ngff.openmicroscopy.org/0.4/#well-md.
Source code in fractal_tasks_core/ngff/specs.py
313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 |
|
Multiscale
¶
Bases: BaseModel
Model for an element of NgffImageMeta.multiscales
.
See https://ngff.openmicroscopy.org/0.4/#multiscale-md.
Source code in fractal_tasks_core/ngff/specs.py
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 |
|
_no_global_coordinateTransformations(v)
classmethod
¶
Fail if Multiscale has a (global) coordinateTransformations attribute.
Source code in fractal_tasks_core/ngff/specs.py
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
|
NgffImageMeta
¶
Bases: BaseModel
Model for the metadata of a NGFF image.
See https://ngff.openmicroscopy.org/0.4/#image-layout.
Source code in fractal_tasks_core/ngff/specs.py
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 |
|
axes_names: list[str]
property
¶
List of axes names.
coarsening_xy: int
property
¶
Linear coarsening factor in the YX plane.
We only support coarsening factors that are homogeneous (both in the X/Y directions and across pyramid levels).
RAISES | DESCRIPTION |
---|---|
NotImplementedError
|
If coarsening ratios are not homogeneous. |
datasets: list[Dataset]
property
¶
The datasets
attribute of self.multiscale
.
multiscale: Multiscale
property
¶
The single element of self.multiscales
.
RAISES | DESCRIPTION |
---|---|
NotImplementedError
|
If there are no multiscales or more than one. |
pixel_sizes_zyx: list[list[float]]
property
¶
Pixel sizes extracted from scale transformations of datasets.
RAISES | DESCRIPTION |
---|---|
ValueError
|
If pixel sizes are below a given threshold (1e-9). |
NgffPlateMeta
¶
Bases: BaseModel
Model for the metadata of a NGFF plate.
See https://ngff.openmicroscopy.org/0.4/#plate-md.
Source code in fractal_tasks_core/ngff/specs.py
476 477 478 479 480 481 482 483 |
|
NgffWellMeta
¶
Bases: BaseModel
Model for the metadata of a NGFF well.
See https://ngff.openmicroscopy.org/0.4/#well-md.
Source code in fractal_tasks_core/ngff/specs.py
353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 |
|
get_acquisition_paths()
¶
Create mapping from acquisition indices to corresponding paths.
Runs on the well zarr attributes and loads the relative paths in the well.
RETURNS | DESCRIPTION |
---|---|
dict[int, list[str]]
|
Dictionary with |
dict[int, list[str]]
|
pairs. |
RAISES | DESCRIPTION |
---|---|
ValueError
|
If an element of |
Source code in fractal_tasks_core/ngff/specs.py
362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 |
|
Omero
¶
Bases: BaseModel
Model for NgffImageMeta.omero
.
See https://ngff.openmicroscopy.org/0.4/#omero-md.
Source code in fractal_tasks_core/ngff/specs.py
57 58 59 60 61 62 63 64 |
|
Plate
¶
Bases: BaseModel
Model for NgffPlateMeta.plate
.
See https://ngff.openmicroscopy.org/0.4/#plate-md.
Source code in fractal_tasks_core/ngff/specs.py
457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 |
|
RowInPlate
¶
Bases: BaseModel
Model for an element of Plate.rows
.
See https://ngff.openmicroscopy.org/0.4/#plate-md.
Source code in fractal_tasks_core/ngff/specs.py
447 448 449 450 451 452 453 454 |
|
ScaleCoordinateTransformation
¶
Bases: BaseModel
Model for a scale transformation.
This corresponds to scale-type elements of
Dataset.coordinateTransformations
or
Multiscale.coordinateTransformations
.
See https://ngff.openmicroscopy.org/0.4/#trafo-md
Source code in fractal_tasks_core/ngff/specs.py
79 80 81 82 83 84 85 86 87 88 89 90 |
|
TranslationCoordinateTransformation
¶
Bases: BaseModel
Model for a translation transformation.
This corresponds to translation-type elements of
Dataset.coordinateTransformations
or
Multiscale.coordinateTransformations
.
See https://ngff.openmicroscopy.org/0.4/#trafo-md
Source code in fractal_tasks_core/ngff/specs.py
93 94 95 96 97 98 99 100 101 102 103 104 |
|
Well
¶
Bases: BaseModel
Model for NgffWellMeta.well
.
See https://ngff.openmicroscopy.org/0.4/#well-md.
Source code in fractal_tasks_core/ngff/specs.py
337 338 339 340 341 342 343 344 345 346 347 348 349 350 |
|
WellInPlate
¶
Bases: BaseModel
Model for an element of Plate.wells
.
See https://ngff.openmicroscopy.org/0.4/#plate-md.
Source code in fractal_tasks_core/ngff/specs.py
425 426 427 428 429 430 431 432 433 434 |
|
Window
¶
Bases: BaseModel
Model for Channel.window
.
Note that we deviate by NGFF specs by making start
and end
optional.
See https://ngff.openmicroscopy.org/0.4/#omero-md.
Source code in fractal_tasks_core/ngff/specs.py
29 30 31 32 33 34 35 36 37 38 39 40 |
|