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

Uploaded Source

Built Distribution

leicaimage-0.2.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: leicaimage-0.2.1.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.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for leicaimage-0.2.1.tar.gz
Algorithm Hash digest
SHA256 df0120b68878accd064abd2792d0b11a6a7b9bbfa630077ded92a69a8e19288e
MD5 e6ed2199e18e5da9d8a185ce8788a66b
BLAKE2b-256 431fbc40ff329f0cd7c14d10c8975354962eec8a47376fd0c3fb3e07a664d593

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: leicaimage-0.2.1-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.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for leicaimage-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f0fc540e6af5b60f6a83232c737ccaa780d46d68725f992fa97da9b4a9ed96f3
MD5 4133c0a59229b35d6acc1980c342488f
BLAKE2b-256 e64df9c66d2dc96bc617565030ba525d2a1aec285998cf0f101626ccd5572f5c

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