leicaimage


Nameleicaimage JSON
Version 0.4.0 PyPI version JSON
download
home_pagehttps://github.com/MartinHjelmare/leicaimage
SummaryHandle Leica Matrix Screener experiment images.
upload_time2024-09-21 23:46:15
maintainerNone
docs_urlNone
authorMartin Hjelmare
requires_python<4.0,>=3.9
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # leicaimage

<p align="center">
  <a href="https://github.com/MartinHjelmare/leicaimage/actions/workflows/ci.yml?query=branch%3Amain">
    <img src="https://img.shields.io/github/actions/workflow/status/MartinHjelmare/leicaimage/ci.yml?branch=main&label=CI&logo=github&style=flat-square" alt="CI Status" >
  </a>
  <a href="https://codecov.io/gh/MartinHjelmare/leicaimage">
    <img src="https://img.shields.io/codecov/c/github/MartinHjelmare/leicaimage.svg?logo=codecov&logoColor=fff&style=flat-square" alt="Test coverage percentage">
  </a>
</p>
<p align="center">
  <a href="https://python-poetry.org/">
    <img src="https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json" alt="Poetry">
  </a>
  <a href="https://github.com/astral-sh/ruff">
    <img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json" alt="Ruff">
  </a>
  <a href="https://github.com/pre-commit/pre-commit">
    <img src="https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white&style=flat-square" alt="pre-commit">
  </a>
</p>
<p align="center">
  <a href="https://pypi.org/project/leicaimage/">
    <img src="https://img.shields.io/pypi/v/leicaimage.svg?logo=python&logoColor=fff&style=flat-square" alt="PyPI Version">
  </a>
  <img src="https://img.shields.io/pypi/pyversions/leicaimage.svg?style=flat-square&logo=python&amp;logoColor=fff" alt="Supported Python versions">
  <img src="https://img.shields.io/pypi/l/leicaimage.svg?style=flat-square" alt="License">
</p>

---

**Source Code**: <a href="https://github.com/MartinHjelmare/leicaimage" target="_blank">https://github.com/MartinHjelmare/leicaimage </a>

---

Handle Leica Matrix Screener experiment images.

The leicaimage library is a modified version of the
[leicaexperiment](https://github.com/arve0/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)

## Installation

Install this via pip (or your favourite package manager):

`pip install leicaimage`

## Usage

### Access all images

```python
from leicaimage import Experiment

experiment = Experiment('path/to/experiment--')

for image in experiment.images:
    ...
```

### Access specific wells/fields

```python
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

```python
from leicaimage import attribute

# get all channels
channels = [attribute(image, 'C') for image in experiment.images]
min_ch, max_ch = min(channels), max(channels)
```

## Credits

This package was created with
[Copier](https://copier.readthedocs.io/) and the
[browniebroke/pypackage-template](https://github.com/browniebroke/pypackage-template)
project template.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/MartinHjelmare/leicaimage",
    "name": "leicaimage",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "Martin Hjelmare",
    "author_email": "marhje52@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/2c/61/75db2964ad39696768c402974c3f1bae2fe6f0fb64b26bdf6f9828b773eb/leicaimage-0.4.0.tar.gz",
    "platform": null,
    "description": "# leicaimage\n\n<p align=\"center\">\n  <a href=\"https://github.com/MartinHjelmare/leicaimage/actions/workflows/ci.yml?query=branch%3Amain\">\n    <img src=\"https://img.shields.io/github/actions/workflow/status/MartinHjelmare/leicaimage/ci.yml?branch=main&label=CI&logo=github&style=flat-square\" alt=\"CI Status\" >\n  </a>\n  <a href=\"https://codecov.io/gh/MartinHjelmare/leicaimage\">\n    <img src=\"https://img.shields.io/codecov/c/github/MartinHjelmare/leicaimage.svg?logo=codecov&logoColor=fff&style=flat-square\" alt=\"Test coverage percentage\">\n  </a>\n</p>\n<p align=\"center\">\n  <a href=\"https://python-poetry.org/\">\n    <img src=\"https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json\" alt=\"Poetry\">\n  </a>\n  <a href=\"https://github.com/astral-sh/ruff\">\n    <img src=\"https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json\" alt=\"Ruff\">\n  </a>\n  <a href=\"https://github.com/pre-commit/pre-commit\">\n    <img src=\"https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white&style=flat-square\" alt=\"pre-commit\">\n  </a>\n</p>\n<p align=\"center\">\n  <a href=\"https://pypi.org/project/leicaimage/\">\n    <img src=\"https://img.shields.io/pypi/v/leicaimage.svg?logo=python&logoColor=fff&style=flat-square\" alt=\"PyPI Version\">\n  </a>\n  <img src=\"https://img.shields.io/pypi/pyversions/leicaimage.svg?style=flat-square&logo=python&amp;logoColor=fff\" alt=\"Supported Python versions\">\n  <img src=\"https://img.shields.io/pypi/l/leicaimage.svg?style=flat-square\" alt=\"License\">\n</p>\n\n---\n\n**Source Code**: <a href=\"https://github.com/MartinHjelmare/leicaimage\" target=\"_blank\">https://github.com/MartinHjelmare/leicaimage </a>\n\n---\n\nHandle Leica Matrix Screener experiment images.\n\nThe leicaimage library is a modified version of the\n[leicaexperiment](https://github.com/arve0/leicaexperiment) library,\nand was built as a drop in replacement for that library but without any xml\nor image processing. This also makes leicaimage work without heavy dependencies.\n\n## Overview\n\nThis is a python module for interfacing with _Leica LAS AF/X Matrix Screener_\nexperiments.\n\nThe module can be used to:\n\n- Programmatically select slides/wells/fields/images given by attributes like:\n  - slide (S)\n  - well position (U, V)\n  - field position (X, Y)\n  - z-stack position (Z)\n  - channel (C)\n\n## Installation\n\nInstall this via pip (or your favourite package manager):\n\n`pip install leicaimage`\n\n## Usage\n\n### Access all images\n\n```python\nfrom leicaimage import Experiment\n\nexperiment = Experiment('path/to/experiment--')\n\nfor image in experiment.images:\n    ...\n```\n\n### Access specific wells/fields\n\n```python\nfrom leicaimage import Experiment\n\nexperiment = Experiment('path/to/experiment--')\n\n# on images in well --U00--V00\nfor well in experiment.well_images(0, 0):\n    ...\n```\n\n### Extract attributes from file names\n\n```python\nfrom leicaimage import attribute\n\n# get all channels\nchannels = [attribute(image, 'C') for image in experiment.images]\nmin_ch, max_ch = min(channels), max(channels)\n```\n\n## Credits\n\nThis package was created with\n[Copier](https://copier.readthedocs.io/) and the\n[browniebroke/pypackage-template](https://github.com/browniebroke/pypackage-template)\nproject template.\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Handle Leica Matrix Screener experiment images.",
    "version": "0.4.0",
    "project_urls": {
        "Bug Tracker": "https://github.com/MartinHjelmare/leicaimage/issues",
        "Changelog": "https://github.com/MartinHjelmare/leicaimage/blob/main/CHANGELOG.md",
        "Homepage": "https://github.com/MartinHjelmare/leicaimage",
        "Repository": "https://github.com/MartinHjelmare/leicaimage"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e4c110ed6ba1d6ed22a7e7a07b80794d399928289fc917d6d63fd8fe12df3970",
                "md5": "5d7c547d491172cb2a0d537361046944",
                "sha256": "99400f53e75db075ac77160104e090fdcdc2cf991fdabdd9e1cda7a3317cee1b"
            },
            "downloads": -1,
            "filename": "leicaimage-0.4.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5d7c547d491172cb2a0d537361046944",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 6209,
            "upload_time": "2024-09-21T23:46:14",
            "upload_time_iso_8601": "2024-09-21T23:46:14.375258Z",
            "url": "https://files.pythonhosted.org/packages/e4/c1/10ed6ba1d6ed22a7e7a07b80794d399928289fc917d6d63fd8fe12df3970/leicaimage-0.4.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2c6175db2964ad39696768c402974c3f1bae2fe6f0fb64b26bdf6f9828b773eb",
                "md5": "33bd37848f3b0b588e6c16bec6d52295",
                "sha256": "6fcc083e4e6214203c8767eda4f68b297443d72ff1d939c442faece7c8b8eb73"
            },
            "downloads": -1,
            "filename": "leicaimage-0.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "33bd37848f3b0b588e6c16bec6d52295",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 6349,
            "upload_time": "2024-09-21T23:46:15",
            "upload_time_iso_8601": "2024-09-21T23:46:15.701403Z",
            "url": "https://files.pythonhosted.org/packages/2c/61/75db2964ad39696768c402974c3f1bae2fe6f0fb64b26bdf6f9828b773eb/leicaimage-0.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-21 23:46:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "MartinHjelmare",
    "github_project": "leicaimage",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "leicaimage"
}
        
Elapsed time: 4.75042s