Metadata-Version: 2.4
Name: napari-lumic-cci
Version: 0.1.0rc4
Summary: A napari interface for LUMIC spectral unmixing
Author: Lumic contributors
License-Expression: MIT
Project-URL: Repository, https://github.com/CCI-GU-Sweden/lumic
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: napari
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Image Processing
Requires-Python: <3.13,>=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: lumic<0.2,>=0.1.0rc1
Requires-Dist: napari>=0.9
Requires-Dist: numpy>=2.1
Requires-Dist: matplotlib>=3.9
Requires-Dist: multiprocess>=0.70
Requires-Dist: qtpy>=2.4.3
Requires-Dist: threadpoolctl
Dynamic: license-file

# napari-lumic-cci: A spectral unmixing plugin

A napari plugin for spectral unmixing with the LUMIC backend.

## Installation

In a fresh Python 3.12 environment, install the plugin from PyPI, then install
the Qt binding needed to launch napari:

```bash
python -m pip install napari-lumic-cci
python -m pip install "napari[pyqt6]"
```

The plugin installation also installs the Lumic backend and napari. The second
command supplies the PyQt6 binding for napari's graphical interface.

## Usage

Launch napari with `python -m napari`, then open **Plugins → LUMIC CCI-GU →
Spectral Unmixing**.

For an introduction to the viewer, see the [napari documentation](https://napari.org/stable/index.html) and [napari getting started guide](https://napari.org/stable/getting_started/start_index.html).


## Workflow

Follow the tabs in order:

1. **Input:** Load an OME-TIFF or CZI spectral image and select a plane.
2. **Spectra selection:** Choose automatic or manual references; automatic selection finds distinctive spectra.
3. **Unmixing:** Optimize automatic references and calculate abundance maps, then save the spectra and maps.
4. **Evaluation:** Examine residual variation and its spatial patterns using principal component analysis.

See the [plugin documentation](../../docs/plugins/overview.md) for the controls and workflow in greater detail.

## Run plugin tests

With the backend development environment active, install the plugin dependencies
and Qt binding with `python -m pip install -e ./Python/plugin "napari[pyqt6]"`.
From the `Python` directory, run `QT_QPA_PLATFORM=offscreen python -m pytest tests/test_plugin_*.py`.
