Skip to main content

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.

Features

  • two-channel RACC calculation from napari Image layers
  • 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 regression, threshold, and percentile-band overlays
  • XY and Z display scale controls for metadata-light TIFF stacks

Installation

Install from PyPI once the package has been published:

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 > RACC.
  4. Select channel 1 and channel 2.
  5. Adjust thresholds manually or press Costes thresholds.
  6. Press Run RACC.
  7. Use Overlay, RACC, Side by side, and MIPs to switch views.

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


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.1.0.tar.gz (27.3 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.1.0-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: napari_racc-0.1.0.tar.gz
  • Upload date:
  • Size: 27.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for napari_racc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cea989221d2aa8213e88fd68000403d4702d7af31e5fbfec1c0bd5df6c0aae60
MD5 950b99736bd6077b80245104e371a153
BLAKE2b-256 998ade989e0e6da6ca979e74c27db5987ba8f263de2c6b7687c51fd1459241c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: napari_racc-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 28.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for napari_racc-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2807776804b9bc26c6fe4af3e2483905e816afae3ae07562b925a0df68808f9
MD5 fd3add53bb73312127156fb2e95186bd
BLAKE2b-256 842e27d31547e54f2482b1d8d1e733c0d1bb0e83581ace14173cc6d5d49ae47e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page