Core bioimage-analysis library and tasks of the Fractal analytics platform
Project description
Fractal Tasks Core
Fractal tasks core is the official task package for the Fractal framework. It provides essential tools for building Fractal tasks, helpful utility functions, and a collection of ready-to-use tasks for processing bioimaging data. These tasks include OME-Zarr conversion, image registration, segmentation, and measurements.
Fractal is a framework developed at the BioVisionCenter to process bioimaging data at scale in the OME-Zarr format and prepare the images for interactive visualization.
Core Library Components
This repository includes several core sub-packages:
- NGFF Sub-package: Validates OME-Zarr metadata and provides utilities for reading and writing it.
- Tables Sub-package: Handles AnnData tables for ROIs and features, including reading and writing operations. (See the Fractal table specification).
- ROI Sub-package: Manages ROI-related table processing.
- Dev Sub-package: Handles Fractal manifest creation and task validation for the Fractal server.
The NGFF, Tables & ROI Sub-package functionality will get replaced by functionality in ngio over the coming months.
Documentation
See https://fractal-analytics-platform.github.io/fractal-tasks-core
Available Tasks
This package includes the following tasks:
-
Image Conversion:
- Convert Cellvoyager to OME-Zarr: Converts CV7000/CV8000 images to OME-Zarr format.
- Convert Cellvoyager Multiplexing to OME-Zarr: Converts multiplexed images from CV7000/CV8000 to OME-Zarr.
-
Image Processing:
- Project Image (HCS Plate): Generates intensity projections (e.g., maximum intensity projection) for images in an HCS plate.
- Illumination Correction: Applies flatfield correction and background subtraction using pre-calculated illumination profiles.
-
Segmentation:
- Cellpose Segmentation: Segments images using custom or pre-trained Cellpose models, with user-tunable options.
-
Registration:
- Calculate Registration: Computes translations for aligning images in multiplexed image analysis.
- Find Registration Consensus: Generates consensus transformations for aligning multiple acquisitions, updating ROI tables as necessary.
- Apply Registration to Image: Applies registration to images based on existing or newly created ROI tables.
-
Measurements:
- Napari Workflows Wrapper: Task to run existing napari workflows through Fractal to process images and labels and to generate new labels or measurement tables. Takes an arbitrary napari workflow yaml file to run.
-
Other Utilities:
- Import OME-Zarr: Validates and processes existing OME-Zarr files, adding ROI tables and metadata for further processing in Fractal.
Installation
To install and use the library components, run:
pip install fractal-tasks-core
This will install the core library, including all sub-packages for working with NGFF metadata, tables, ROIs, and more.
If you intend to run Fractal tasks (such as segmentation or registration), install with the additional task dependencies:
pip install "fractal-tasks-core[fractal-tasks]"
This includes larger dependencies such as Torch (for Cellpose) and Napari (for Napari workflows).
If you collect this package on Fractal server to run the task, make sure to add the fractal-tasks extra in the corresponding field for extras.
Contributors and license
Fractal was conceived in the Liberali Lab at the Friedrich Miescher Institute for Biomedical Research and in the Pelkmans Lab at the University of Zurich by @jluethi and @gusqgm. The Fractal project is now developed at the BioVisionCenter at the University of Zurich and the project lead is with @jluethi. The core development is done under contract by eXact lab S.r.l..
Unless otherwise specified, Fractal components are released under the BSD 3-Clause License, and copyright is with the BioVisionCenter at the University of Zurich.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file fractal_tasks_core-1.3.3.tar.gz
.
File metadata
- Download URL: fractal_tasks_core-1.3.3.tar.gz
- Upload date:
- Size: 113.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.15 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46a9947b7d6fe87f8b38bed09551225c15e03990b2c9cdad80cc20daa77036bb |
|
MD5 | dc70d586df58a296c56f969ce36fccbc |
|
BLAKE2b-256 | 4d7cd2505072a4d14f8937f1ad093de147a446328aaa8ec2269cf3ca29ee7cc2 |
File details
Details for the file fractal_tasks_core-1.3.3-py3-none-any.whl
.
File metadata
- Download URL: fractal_tasks_core-1.3.3-py3-none-any.whl
- Upload date:
- Size: 153.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.15 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1895cbfbc2456fa84a50bb41e1507cbce5864580f6854152fdb81f7285dce449 |
|
MD5 | 0fec339b44104b164b79b9480619a4fd |
|
BLAKE2b-256 | afca798c41d220e8b682d08218e3f88079c4c9309dcd6df1fd4857ddba517bc5 |