Lumic
Lumic separates overlapping fluorescence signals in spectral microscopy images. The Python backend reads ZEISS CZI and OME-TIFF, estimates component contributions from reference spectra or refines spectra with MCR-ALS, and exports abundance maps and reusable spectral references. It runs without a graphical interface.
Documentation · Backend API reference · GitHub repository
Install
Install Lumic in a Python 3.12 environment.
python -m pip install lumic
For Jupyter notebooks and plotting tools, install
"lumic[examples]". Use the visualization extra for spectral
uniqueness RGB rendering or the fpbase extra to retrieve spectra online.
Bundled FPbase curves are available in the default install. See the
example setup guide for
running scripts from a repository checkout.
Unmix a simulated pixel offline
Run this example with the installed package. It samples two bundled emission curves over the idealized 32-channel LSM 980 detector bands and recovers their known contributions. It needs no microscopy files or network access.
import numpy as np
from lumic import positive_least_squares
from lumic.simulation import SpectralDetector, load_offline_emission_spectrum
detector = SpectralDetector.from_profile("980_32ch")
references = np.array([
detector.sample(*load_offline_emission_spectrum(name))
for name in ("EGFP", "mCherry")
])
references /= references.sum(axis=1, keepdims=True)
mixed_pixel = np.array([[70.0, 30.0]]) @ references
estimated = positive_least_squares(mixed_pixel, references, solver="auto")
print(np.round(estimated[0], 6))
Expected output: [70. 30.] in EGFP, mCherry order.
Choose your next step
| Task | Guide |
|---|---|
| Inspect image metadata and select a time point or Z plane | Load spectral images |
| Unmix an experimental image from the public BioImage Archive | COS-7 walkthrough and notebook |
| Simulate a mixture with known component maps | Simulate a spectral image |
| Inspect residuals or measure recovery against known factors | Experimental fit diagnostics and simulation recovery |
| Export abundance maps or reuse reference spectra | Save images and spectra |
For a graphical workflow, see the separately installed napari plugin.
License and data attribution
Lumic is distributed under the MIT license. The bundled emission curves include FPbase source and attribution information.
Metadata
Release files for lumic 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lumic-0.1.0.tar.gz | 86.9 kB | With provenance | Details for lumic-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lumic-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for lumic-0.1.0-py3-none-any.whl |
Total release size: 185.2 kB
Release files / lumic-0.1.0.tar.gz
| Download URL | lumic-0.1.0.tar.gz |
|---|---|
| Size | 86.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c04b5c16041e36b939056075507df1ffa19a9ebb8a3dc71e815e572d2cc3dd9
|
|
BLAKE2b-256 checksum How to use checksums |
2c3cd18fd27f09fb5e9e72e5c4783b4557a556bacd305e3110266a5655d4cbce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / lumic-0.1.0-py3-none-any.whl
| Download URL | lumic-0.1.0-py3-none-any.whl |
|---|---|
| Size | 98.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
64ebaf0fdd6eb0e710338f3ac45498871b62271d2040c5f758a4fe2a24e3d60d
|
|
BLAKE2b-256 checksum How to use checksums |
76732a3bbd3d949a3a3d0d7c44fad4e424a12b5aa27c0a24907a89b988f455be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logSecurity for lumic 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for lumic-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.