Regression adjusted colocalisation colour mapping for napari
Project description
napari-racc
napari-racc is a napari plugin for Regression Adjusted Colocalisation Colour
Mapping (RACC), a qualitative visualization method for 2D and 3D fluorescence
microscopy data.
The plugin takes two image layers, computes the RACC index in 3D whenever the inputs are volumes, and adds interactive overlay, RACC, side-by-side, MIP, and scatter-plot views to the napari viewer.
Screenshots
3D side-by-side view with the thresholded channel overlay on the left and the RACC volume on the right.
3D-derived maximum-intensity projection view.
Scrollable RACC controls with manual thresholds, Costes thresholding, display scale controls, probe colors, scatter diagnostics, result export, and view switching.
Features
- two-channel RACC calculation from napari
Imagelayers - live threshold, theta, percentile, and Costes threshold controls
- transparent zero-valued RACC voxels for clean volume rendering
- thresholded RGB overlay volume with selectable probe colors
- side-by-side overlay/RACC and 3D-derived MIP views
- scatter histogram with visible axes, regression, threshold, and percentile-band overlays
- XY and Z display scale controls for metadata-light TIFF stacks
- scrollable control panel with expandable input layer selectors
- export of the numeric RACC result stack as TIFF
Installation
Install from PyPI:
pip install napari-racc
For local development:
git clone https://github.com/rensutheart/napari-racc.git
cd napari-racc
uv venv --python 3.11
source .venv/bin/activate
uv pip install -e ".[dev]"
Fish shell users should activate the environment with:
source .venv/bin/activate.fish
Usage
- Open napari.
- Open two image stacks or use
File > Open Sample > RACC. - Start the widget from
Plugins > RACC (napari-racc). - Select channel 1 and channel 2.
- Adjust thresholds manually or press
Costes thresholds. - Press
Run RACC. - Use
Overlay,RACC,3D side by side, andMIPsto switch views. - Press
Export RACC TIFFto save the numeric RACC result stack for use in other software.
RACC is calculated over the full 3D volume when 3D inputs are used. The MIP view is derived from the 3D calculation; it is not a 2D recalculation.
Development
python -m npe2 validate src/napari_racc/napari.yaml
python -m ruff check src
python -m pytest
python -m build
Launch one example dimensionality at a time:
python scripts/launch_racc_examples.py --example 3d
python scripts/launch_racc_examples.py --example 2d
Do not launch the napari viewer with QT_QPA_PLATFORM=offscreen; napari needs a
real Qt/OpenGL context for the viewer on macOS.
Citation
If you use this plugin or the RACC method in research, cite:
Theart RP, Loos B, Niesler TR. Regression adjusted colocalisation colour mapping (RACC): A novel biological visual analysis method for qualitative colocalisation analysis of 3D fluorescence micrographs. PLOS ONE 14(11): e0225141. https://doi.org/10.1371/journal.pone.0225141
License And Patent Notice
This software is licensed under the PolyForm Noncommercial License 1.0.0. It is source-available for noncommercial research, education, and evaluation use, but it is not an OSI open-source license.
Use of the RACC method may be covered by patent rights, including US patent
application US20220189129A1 and related patent family members. Commercial,
clinical, diagnostic, or for-profit service use requires a separate license from
the rights holder. See LICENSE, NOTICE, and PATENTS.md.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file napari_racc-0.2.0.tar.gz.
File metadata
- Download URL: napari_racc-0.2.0.tar.gz
- Upload date:
- Size: 520.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
521136269de3160026cd98c17fb8c96491e2ee554d06fcec777b12de32e12c32
|
|
| MD5 |
074003b3cda7b547abd522812dcd6956
|
|
| BLAKE2b-256 |
e8f73cf404432a3f96998780c6f3af7946a34fb78ee5454a7e28fdd6ebd0c718
|
File details
Details for the file napari_racc-0.2.0-py3-none-any.whl.
File metadata
- Download URL: napari_racc-0.2.0-py3-none-any.whl
- Upload date:
- Size: 30.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93a7b4d44de4892db3593e238e8928b788183d7c68e57cbbd8f322ac7dd66112
|
|
| MD5 |
747663bf3f9e8f0316eb7c84d6df080d
|
|
| BLAKE2b-256 |
99446e71521e591a92fd8dd575d25f3820d80d4171c25500a8ba8a9da7c0ceba
|