Core bioimage-analysis library and tasks of the Fractal analytics platform
Project description
Fractal Core Tasks
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.
This is the core-tasks repository, containing the python tasks that converts Cellvoyager CV7000 & CV8000 images into OME-Zarr and process OME-Zarr files. Find more information about Fractal in general and the other repositories at the Fractal home page.
Besides tasks, this repository contains library functions for processing OME-Zarr images. The core library parts are:
- an NGFF sub-package to validate OME-Zarr metadata and provide convenience functions to read & write it
- a tables sub-package to handle reading and writing of AnnData tables for ROI tables & feature tables (see fractal table specification)
- a roi sub-package to handle ROI table related processing
- a dev subpackage that handles Fractal manifest creation & other validation of tasks for Fractal server
Documentation
See https://fractal-analytics-platform.github.io/fractal-tasks-core
Available tasks
Currently, the following tasks are available:
- Convert Cellvoyager to OME-Zarr: Task to convert Cellvoyager CV7000 & CV8000 images into OME-Zarr.
- Convert Cellvoyager Multiplexing to OME-Zarr: Task to convert multiplexed images from Cellvoyager CV7000 & CV8000 images into OME-Zarr.
- Project Image (HCS Plate): This task creates a new OME-Zarr HCS plate and calculates an intensity projection along the Z axis for all images (e.g. maximum intensity projection).
- Illumination Correction: Task to apply flatfield correction & background subtraction based on pre-calculated illumination profiles.
- Cellpose Segmentation: This task performs image segmentation using custom or pre-trained Cellpose models and exposes many model options to be tuned by the user.
- 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.
- Calculate Registration (image-based): Registration task for multiplexed image analysis. This task calculated the translation needed to align images between multiple acquisitions.
- Find Registration Consensus: Registration task for multiplexed image analysis. This task calculates the consensus transformation across all acquisitions to get aligned images. It creates new ROI tables for them.
- Apply Registration to Image: Registration task for multiplexed image analysis. This task applies registration based on the ROI tables generated in
Find Registration Consensus
to existing images or it creates new, registered images. - Import OME-Zarr: Helper task to validate existing OME-Zarr files, handle the addition of ROI tables to existing Zarrs & to create the necessary metadata for Fractal server about an existing OME-Zarr image to allow further processing.
Installation
See details on installation in the documentation. This package can be installed in 2 main ways:
To use the library, just install the core package:
pip install fractal-tasks-core
This installs the core library and allows you to use all the sub-packages for ngff metadata, tables, rois etc.
If you want to run the actual Fractal tasks, you need to install the task extra:
pip install "fractal-tasks-core[fractal-tasks]"
This installs the heavier dependencies like torch for Cellpose & 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
Unless otherwise stated in each individual module, all Fractal components are released according to a BSD 3-Clause License, and Copyright is with the BioVisionCenter at the University of Zurich.
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..
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.2.tar.gz
.
File metadata
- Download URL: fractal_tasks_core-1.3.2.tar.gz
- Upload date:
- Size: 113.2 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 | 7eeaaebe80ecdec40061686131e1104a8e0817bad8ac47f3303d84ff6be540c6 |
|
MD5 | 146dc1e1035458910387ad382b1b7437 |
|
BLAKE2b-256 | 2c2a8cfac78ee1b0a1d613ee36fb934610307ac4a152afa6b8c927e60afe3461 |
File details
Details for the file fractal_tasks_core-1.3.2-py3-none-any.whl
.
File metadata
- Download URL: fractal_tasks_core-1.3.2-py3-none-any.whl
- Upload date:
- Size: 152.9 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 | 9e079554cb27371a92085fd1797757f40338344f23cc80da9743d573e5a6de28 |
|
MD5 | bb033cd5416447d8b17c25ef71c81b38 |
|
BLAKE2b-256 | 52c17d2e6c17ee636404c3f99909b21b0a60b78391c2d553a1b941bc74fb056b |