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
Clone the github repo then install using pip
:
git clone https://github.com/MartinHjelmare/leicaimage.git
cd leicaimage
pip install .
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
Built Distribution
File details
Details for the file leicaimage-0.1.0.tar.gz
.
File metadata
- Download URL: leicaimage-0.1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25f96dcf1c4a626d1e899165cc087a8b013593eabf6edf9d85ba0286a2ecfbf6 |
|
MD5 | 4c2f7f8c78808410f9db00cf58e6781a |
|
BLAKE2b-256 | 89e3fb67f818f0dce44d8df60683c92b7d06f2177fb7eb124e0e8cb6e308db9d |
Provenance
File details
Details for the file leicaimage-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: leicaimage-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c98db45b0bfabfd54174a12202b5394c04a2c6e225ff145c760c70061392780 |
|
MD5 | c259b6f9c348ebd234efa74246a3def3 |
|
BLAKE2b-256 | 0fe01771db77ce335a52a826d78004fd6e1847e6d31ada3fd34e91ff20bb546d |