Skip to main content

Converter from the Lif files (Leica Microscope) to OME-Zarr format.

Project description

Lif to OME-Zarr Converters

Fractal lif converter logo

CI (build and test) codecov

A collection of Fractal tasks to convert Leica .lif files into OME-Zarr format.

Tasks

Task Use case
Convert Lif Plate to OME-Zarr Convert a .lif containing a plate-shaped tile-scan into an OME-Zarr HCS plate.
Convert Lif Scene to OME-Zarr Convert a single scene (single-position, multi-position, or mosaic) into a standalone OME-Zarr image.

Each task is a Fractal compound task: an init step parses the .lif metadata and builds the parallelization list, and a compute step writes the image data well-by-well (or scene-by-scene).

Installation

pip install fractal-lif-converters

Supported Lif File Plate Layouts

The following plate layouts are supported:

  • Single Position Plates

    /{Project.lif}
    ----/{Tilescan 1}/
    --------/A
    ------------/1 (Simple Image)
    
    /{Project.lif}
    ----/{Tilescan 1}/
    --------/A1 (Simple Image)
    --------/...
    
  • Multi Position Plates

    /{Project.lif}
    ----/{Tilescan 1}/
    --------/A
    ------------/1
    ----------------/R1 (Simple Image)
    ----------------/R2 (Simple Image)
    ----------------/...
    
    /{Project.lif}
    ----/{Tilescan 1}/
    --------/A1
    ------------/R1 (Simple Image)
    ------------/R2 (Simple Image)
    ------------/...
    
  • Mosaic Plates

    /{Project.lif}
    ----/{Tilescan 1}/
    --------/A
    ------------/1 (Mosaic Image)
    ------------/...
    
    /{Project.lif}
    ----/{Tilescan 1}/
    --------/A1 (Mosaic Image)
    --------/...
    

The names in curly braces {} can be freely chosen by the user. The other names must follow these conventions:

  • Well names are a single or double letter followed by a positive integer. Valid examples: A1, A2, B1, AA1, AA12.

  • Wells can also be hierarchically structured, e.g. A/1, A/2, B/1, AA/1, AA/12.

  • Multi-position wells use R followed by a positive integer for each position: R1, R2, R3, R12.

  • For more complex layouts (e.g. FLIM), the converter ignores any data that doesn't follow the conventions above. For example:

    /{Project.lif}
    ----/{Tilescan 1}/
    --------/A/1/R1 (Converted)
    --------/A/1/R1/FLIM/Intensity (Ignored)
    --------------------/Fast Flim (Ignored)
    --------------------/Standard Deviation (Ignored)
    

Supported Lif File Image Layouts

The following image layouts are supported:

  • Single Position Image

    /{Project.lif}
    ----/{Tilescan 1} (Simple Image)
    
  • Multi Position Image

    /{Project.lif}
    ----/{Tilescan 1}/
    --------/Position 1 (Simple Image)
    --------/Position 2 (Simple Image)
    --------/...
    
  • Mosaic Image

    /{Project.lif}
    ----/{Tilescan 1} (Mosaic Image)
    

The names in curly braces {} can be freely chosen by the user. For multi-position images the position names must be Position followed by a space and a positive integer, e.g. Position 1, Position 2, Position 12. Scans that don't follow these conventions are ignored.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fractal_lif_converters-0.6.0.tar.gz (31.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_lif_converters-0.6.0-py3-none-any.whl (39.4 kB view details)

Uploaded Python 3

File details

Details for the file fractal_lif_converters-0.6.0.tar.gz.

File metadata

  • Download URL: fractal_lif_converters-0.6.0.tar.gz
  • Upload date:
  • Size: 31.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fractal_lif_converters-0.6.0.tar.gz
Algorithm Hash digest
SHA256 2e349f1534267d3430992a68fd1d3b06a7112863b51ccbcb1706dcf45f4448a6
MD5 4211c94cde1156cc6a3080443f8d1693
BLAKE2b-256 1bc667705faa33f8ac02dad3332c71a63e9e6421754cdd29f9206908103589bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for fractal_lif_converters-0.6.0.tar.gz:

Publisher: build_and_test.yml on fractal-analytics-platform/fractal-lif-converters

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fractal_lif_converters-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fractal_lif_converters-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7dea20ebf5b94127fe09ac8e46e5fd032b651ed67493940954d35f272d2e6fc
MD5 0dbd9f78cd9da5b64ad97b9079fcc727
BLAKE2b-256 7e30fcfbe82cfbe8d5bd8511fccda66748e2a52153cef83ba19bc73052d2cd0e

See more details on using hashes here.

Provenance

The following attestation bundles were made for fractal_lif_converters-0.6.0-py3-none-any.whl:

Publisher: build_and_test.yml on fractal-analytics-platform/fractal-lif-converters

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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