Handle Leica Matrix Screener experiment images
Project description
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)
Features
- Access experiment as a python object
Installation
Python 3.6+ 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.2.0.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for leicaimage-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41a31dbeb04aaec2b4eaf28c9bf2b9a4ba8d84ac4775f5f53a906fa3daed4689 |
|
MD5 | 1c5d3f93ae26a6b72ef920fbbf980c36 |
|
BLAKE2b-256 | ba3cdf31b6ef72a8de1e4a76642cdfa5b7bf7f64cfb48ace05b7f8ae5032a313 |