Skip to main content

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

RACC 3D side-by-side volume view

3D side-by-side view with the thresholded channel overlay on the left and the RACC volume on the right.

RACC side-by-side MIP view

3D-derived maximum-intensity projection view.

Features

  • two-channel RACC calculation from napari Image layers
  • live threshold, theta, percentile, and Costes threshold controls
  • linked analysis/display cutoffs with optional display-only channel thresholds
  • independent RACC display minimum without changing the numeric result
  • synchronized translucent, maximum-intensity, and additive 3D rendering modes
  • 3D-only intensity and RACC opacity controls, plus background suppression for clearer deep structures without making 2D slices or fixed MIPs faint
  • 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

  1. Open napari.
  2. Open two image stacks or use File > Open Sample > RACC.
  3. Start the widget from Plugins > RACC (napari-racc).
  4. Select channel 1 and channel 2.
  5. Adjust thresholds manually or press Costes thresholds.
  6. Press Run RACC.
  7. Keep Link channel cutoffs to analysis thresholds enabled for a directly comparable intensity view, or disable it to clean up the display without changing the analysis.
  8. Choose Translucent, Maximum intensity (MIP), or Additive with the Rendering method control under 3D volume rendering; the selection is applied to both the intensity overlay and the RACC volume.
  9. Under Display mapping, use the channel cutoffs and RACC display minimum to remove weak haze in both 2D and 3D. Under 3D volume rendering, set the intensity/RACC opacities and background suppression. Those volume controls are deliberately ignored in single-slice and fixed 2D Z-MIPs views. None of these display controls changes the calculated or exported RACC values.
  10. Use Overlay, RACC, 3D side by side, and 2D Z-MIPs to switch views.
  11. Press Export RACC TIFF to 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

napari_racc-0.3.1.tar.gz (528.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

napari_racc-0.3.1-py3-none-any.whl (37.9 kB view details)

Uploaded Python 3

File details

Details for the file napari_racc-0.3.1.tar.gz.

File metadata

  • Download URL: napari_racc-0.3.1.tar.gz
  • Upload date:
  • Size: 528.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for napari_racc-0.3.1.tar.gz
Algorithm Hash digest
SHA256 c20e4f5edcecf7c7198b2e1b82a0b907356a3058e69fcd962e8e6a1647f4de91
MD5 0e705ec21029ecc825c271c67c1b9da5
BLAKE2b-256 8cebf4be5f5d1994199ad55f3a5839204d6393898456206c8fe977b395d03861

See more details on using hashes here.

Provenance

The following attestation bundles were made for napari_racc-0.3.1.tar.gz:

Publisher: release.yml on rensutheart/napari-racc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file napari_racc-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: napari_racc-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 37.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for napari_racc-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3927db73e144fef2be8ff9bcf6acda50a97e8856aac8ecb9027beba54205bf1b
MD5 767dce761d508b83c9135a09e099dfcc
BLAKE2b-256 b6266464a36badbc938a40b319164422d3b691f51adcf931ef9655b23dfad0f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for napari_racc-0.3.1-py3-none-any.whl:

Publisher: release.yml on rensutheart/napari-racc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

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