Skip to main content

leicaimage

CI Status Test coverage percentage

uv Ruff prek

PyPI Version Supported Python versions License


Source Code: https://github.com/MartinHjelmare/leicaimage


Handle Leica Matrix Screener experiment images.

The leicaimage library is a modified version of the leicaexperiment library, and was built as a drop in replacement for that library but without any xml or image processing. This also makes leicaimage work without heavy dependencies.

Overview

This is a python module for interfacing with Leica LAS AF/X Matrix Screener experiments.

The module can be used to:

  • Programmatically select slides/wells/fields/images given by attributes like:
    • slide (S)
    • well position (U, V)
    • field position (X, Y)
    • z-stack position (Z)
    • channel (C)

Installation

Install this via pip (or your favourite package manager):

pip install leicaimage

Usage

Access all images

from leicaimage import Experiment

experiment = Experiment("path/to/experiment--")

for image in experiment.images:
    ...

Access specific wells/fields

from leicaimage import Experiment

experiment = Experiment("path/to/experiment--")

# on images in well --U00--V00
for well in experiment.well_images(0, 0):
    ...

Extract attributes from file names

from leicaimage import attribute

# get all channels
channels = [attribute(image, "C") for image in experiment.images]
min_ch, max_ch = min(channels), max(channels)

Credits

Copier

This package was created with Copier and the browniebroke/pypackage-template project template.

Download files

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

Source Distribution

leicaimage-0.6.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

leicaimage-0.6.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: leicaimage-0.6.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for leicaimage-0.6.0.tar.gz
Algorithm Hash digest
SHA256 45851bb65c94119c22af70ca7e85fb5fae5576430d034c8f1704a2ae91fb245e
MD5 d42d05c0ed1bc2952b01306e2f3a5494
BLAKE2b-256 d72f4ead412360ec293944e3dcc1961f8c04a530a296adf479a33dbe243957c2

See more details on using hashes here.

Provenance

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

Publisher: ci.yml on MartinHjelmare/leicaimage

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

File details

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

File metadata

  • Download URL: leicaimage-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for leicaimage-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f7593ae3f0f1bb0392d961b71df67ad5cff4b91759b646dd25c1f6ccaa253d02
MD5 f5ae2e3c918aeb2c64e70e7dfa9419c0
BLAKE2b-256 cdcea842b47131db7f07c4b6f168a6fa09c442d2619ce61482b9ecb5704b6c5e

See more details on using hashes here.

Provenance

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

Publisher: ci.yml on MartinHjelmare/leicaimage

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

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page