Skip to main content

Handle Leica Matrix Screener experiment images.

Project description

leicaimage

CI Status Test coverage percentage

Poetry 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

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

Uploaded Source

Built Distribution

leicaimage-0.4.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: leicaimage-0.4.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for leicaimage-0.4.0.tar.gz
Algorithm Hash digest
SHA256 6fcc083e4e6214203c8767eda4f68b297443d72ff1d939c442faece7c8b8eb73
MD5 33bd37848f3b0b588e6c16bec6d52295
BLAKE2b-256 2c6175db2964ad39696768c402974c3f1bae2fe6f0fb64b26bdf6f9828b773eb

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: leicaimage-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for leicaimage-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99400f53e75db075ac77160104e090fdcdc2cf991fdabdd9e1cda7a3317cee1b
MD5 5d7c547d491172cb2a0d537361046944
BLAKE2b-256 e4c110ed6ba1d6ed22a7e7a07b80794d399928289fc917d6d63fd8fe12df3970

See more details on using hashes here.

Provenance

Supported by

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