Skip to content
GSNautilusPublic

About

Analysis tools for IBEX multiplex immunofluorescence images.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

CapraIBEX

CapraIBEX is a set of tools for analysing IBEX multiplex images after registration. Its main job is separating real marker signal from autofluorescence and bleed-through: real signal is bright in one channel, and the rest is bright in many. It has an interactive viewer for tuning that filter on every channel, and it segments nuclei with StarDist.

CapraIBEX viewer: original DAPI, selectivity weight, filtered DAPI

The selectivity viewer on a mouse brain section: original DAPI (left), selectivity weight (middle), filtered result (right). These screenshots are from a newer version of the viewer than the one in this repository, which has the same three panels but fewer controls.

Contents

  • scripts/selectivity_viewer.py: PyQt5 viewer with three synced panels (original, selectivity map, filtered), a channel dropdown, a filter-strength slider and zoom/pan
  • scripts/*_selectivity.py, scripts/*_sweep.py: batch selectivity filtering and parameter sweeps
  • scripts/ibex_analysis.py: StarDist nuclear segmentation on the DAPI channel and per-cell intensities
  • scripts/make_montage.py: tiles several stacks into one labelled multi-channel montage

Setup

pip install -r requirements.txt

Quick start

python scripts/selectivity_viewer.py

The viewer reads one registered IBEX stack from the repository root. The file name and the channel list are set at the top of scripts/selectivity_viewer.py (TIF_PATH, ALL_CHANNELS); edit them for your own data. Frame 0 is expected to be DAPI.

Selectivity filtering

Real cell signal is bright in one specific channel. Autofluorescence and vessel bleed-through are bright across many channels. The selectivity metric uses this:

selectivity = target / (mean_of_other_channels + epsilon)

High selectivity means real signal; low selectivity means background. The filtered image is target * normalized_selectivity.

Selectivity filtering on the Lectin channel

The same filter on the Lectin channel (newer viewer version).

About

Analysis tools for IBEX multiplex immunofluorescence images.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages