Skip to main content

Core bioimage-analysis library and tasks of the Fractal analytics platform

Project description

Fractal Tasks Core

Fractal tasks core logo

PyPI version License CI Status Coverage Documentation Status

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_overview_small

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

fractal_tasks_core-1.6.0.tar.gz (117.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fractal_tasks_core-1.6.0-py3-none-any.whl (160.0 kB view details)

Uploaded Python 3

File details

Details for the file fractal_tasks_core-1.6.0.tar.gz.

File metadata

  • Download URL: fractal_tasks_core-1.6.0.tar.gz
  • Upload date:
  • Size: 117.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.11.14 Linux/6.11.0-1018-azure

File hashes

Hashes for fractal_tasks_core-1.6.0.tar.gz
Algorithm Hash digest
SHA256 2bbf9932e354c4cb7c8d3e53adf78e6a7fc912c68efe0a4785ebc64213180e9e
MD5 b0193187c58932c68092945b0f8e9d3c
BLAKE2b-256 2b6a8c3b30c6260fc3635f64fd67266b49466cf6d8e9da38491c13de2469bdff

See more details on using hashes here.

File details

Details for the file fractal_tasks_core-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: fractal_tasks_core-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 160.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.11.14 Linux/6.11.0-1018-azure

File hashes

Hashes for fractal_tasks_core-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 652007e2d1ef300b7a22cf00d6a8ac4ff0bcfaba6a2cbeee1ea096f919fb1d0c
MD5 d1291574f8bc5d95a1d50f26e2adb388
BLAKE2b-256 1cf4000ddefe578fda771ccb36dbc4a3d6855274f0d24b51fab16f6bc9d0e669

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page