Skip to main content

Handle Leica Matrix Screener experiment images.

Project description

leicaimage

CI Status Test coverage percentage

uv Ruff pre-commit

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.

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

leicaimage-0.5.0.tar.gz (9.5 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.5.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: leicaimage-0.5.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for leicaimage-0.5.0.tar.gz
Algorithm Hash digest
SHA256 bc164d2593a6582a403379b7e5faa86d54a57992861c8e715e868cec37d34210
MD5 e00d2e957840290e3c944e7fd4d1cb05
BLAKE2b-256 47c145cda56ca427ab51bf3a0ed07b1db5ad018fd50b6099f14c917c63502d3f

See more details on using hashes here.

Provenance

The following attestation bundles were made for leicaimage-0.5.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.5.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for leicaimage-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc5a6deb973878be0c9c1e462c596c70a2d4c65360bb1d8a59765e6f6bf1db95
MD5 49b80d4b12314c78cbc53933bb622055
BLAKE2b-256 9cf57a05ed17041b8fa7614872e634415a95b5d8a2e50f721999058104d96d38

See more details on using hashes here.

Provenance

The following attestation bundles were made for leicaimage-0.5.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.

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