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.1.tar.gz (32.1 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.1-py3-none-any.whl (39.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fractal_lif_converters-0.6.1.tar.gz
  • Upload date:
  • Size: 32.1 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.1.tar.gz
Algorithm Hash digest
SHA256 db6c9aed74563deebe6a0d80c542c40814136e1ba7260e4e9a89369861806b8c
MD5 170d553cc797ae84340627acb1889f39
BLAKE2b-256 d4c73ba9e3ac2e49c81e63a96c89df49a6468441e245cbe060b8f8fadbd4fce3

See more details on using hashes here.

Provenance

The following attestation bundles were made for fractal_lif_converters-0.6.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for fractal_lif_converters-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 23c6570e291155d2ea305508b11bef01acb9e7ab2036648bae9e4d1adda2859d
MD5 d1f69d7ce35849b60beb2fa07531c1eb
BLAKE2b-256 c865f61ded511df05adb1d228e6c08dd06018dbad5df0061052c5494f4a4382f

See more details on using hashes here.

Provenance

The following attestation bundles were made for fractal_lif_converters-0.6.1-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