Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

In a Python 3.12 environment, install this release candidate:

python -m pip install "lumic==0.1.0rc4"

For Jupyter notebooks and plotting tools, install "lumic[examples]==0.1.0rc4". 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.0rc4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lumic 0.1.0rc4
File Size Uploaded Provenance Actions
lumic-0.1.0rc4.tar.gz 87.0 kB With provenance Details for lumic-0.1.0rc4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lumic 0.1.0rc4
File Interpreter ABI Platform Actions
lumic-0.1.0rc4-py3-none-any.whl Python 3 none any Details for lumic-0.1.0rc4-py3-none-any.whl

Total release size: 185.3 kB

Release files / lumic-0.1.0rc4.tar.gz

Download URL lumic-0.1.0rc4.tar.gz
Size 87.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b782395ba52b3456941328511b68d3bc98f0ca3a6d699e9ea5556c8ffde661cb
BLAKE2b-256 checksum
How to use checksums
d2fb9bfcb10d30201b8fa7950d687b12fda228fa80ad91a27fa87416962653e0
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 log

Release files / lumic-0.1.0rc4-py3-none-any.whl

Download URL lumic-0.1.0rc4-py3-none-any.whl
Size 98.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4dda3d1eb3b848f502fc1fb2ebd98d4b167d0c0109ef5d292ff57cf8d6d8e499
BLAKE2b-256 checksum
How to use checksums
b88a11ad5d46187a4a7571314c1a910f1e97d195a70df1813662420f13e8c83e
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 log

Security for lumic 0.1.0rc4

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.

Select from 2 files

Attestation for lumic-0.1.0rc4.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 log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page