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

This version

1.4.3

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.4.3.tar.gz (116.7 kB view details)

Uploaded Source

Built Distribution

fractal_tasks_core-1.4.3-py3-none-any.whl (158.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fractal_tasks_core-1.4.3.tar.gz
  • Upload date:
  • Size: 116.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.16 Linux/6.8.0-1021-azure

File hashes

Hashes for fractal_tasks_core-1.4.3.tar.gz
Algorithm Hash digest
SHA256 1091e39b445c6556ae90d37c5d4eab4ad0d5abb4d1d62c664ef91c10a9113bd3
MD5 93e3b17322778b40a1b318a5e25884b1
BLAKE2b-256 0428f31475fffe2daa967df67c8746b0ac65f7746d1ba2f43a31c31fa673b16a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fractal_tasks_core-1.4.3-py3-none-any.whl
  • Upload date:
  • Size: 158.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.16 Linux/6.8.0-1021-azure

File hashes

Hashes for fractal_tasks_core-1.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f99f82a25f7c049accc4584d0e2ba2df77f22016d5ed8802e5f9665b50ebef95
MD5 503ef85bf0482e4dfd16d5239bcab8f1
BLAKE2b-256 8221d140f0cfbba5f7a1de41e7ffe6eeba867dfd274061745ca69918882f1f49

See more details on using hashes here.

Supported by

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