Skip to main content

Handle Leica Matrix Screener experiment images

Project description

leicaimage

build-badge

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)

Features

  • Access experiment as a python object

Installation

Python 3.8+ is required. Install using pip:

pip install leicaimage

Examples

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)

Development

Install dependencies and link development version of leicaimage to pip:

git clone https://github.com/MartinHjelmare/leicaimage.git
cd leicaimage
pip install -r requirements_dev.txt

Run tests

tox

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

Uploaded Source

Built Distribution

leicaimage-0.3.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for leicaimage-0.3.0.tar.gz
Algorithm Hash digest
SHA256 62de72ded54c9e8f33e103776a12c8a7b94fb8b4a4962a510227a67820f40b33
MD5 1680edb2a4be2935556e8b153539af92
BLAKE2b-256 00aeb84969b5021f361cad9bda29f097beb5fdbe7e17ea87e226ff4f89cf98cb

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for leicaimage-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8648408e587aeb1cead9228db314615d58000bffed9c823c79c00938a4060bd7
MD5 46059bcf979b534a290fb2f61330e306
BLAKE2b-256 52595f8d9c59d8f18a97307f6ea39807be1268d390bab30ac6017057727a536e

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