Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Handle Leica Matrix Screener experiment images

Project description



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.


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)


  • Access experiment as a python object


Python 3.6+ is required. Install using pip:

pip install leicaimage


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)


Install dependencies and link development version of leicaimage to pip:

git clone
cd leicaimage
pip install -r requirements_dev.txt

Run tests


Project details

Download files

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

Files for leicaimage, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size leicaimage-0.2.1-py3-none-any.whl (6.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size leicaimage-0.2.1.tar.gz (5.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page