Repository navigation
DOMINION v0.1.0 — first tagged release
DOMINION v0.1.0
First tagged release of DOMain Identification for Networks of Immunolabeled Object Neighborhoods — a napari-based workflow for tessellating object domains from 2D immunofluorescence images.
What's in this release
Two pipeline modes
--mode signal(default) — two-stage signal-only pipeline. Find object centers directly from the labeled channel (local maxima of smoothed signal or distance-transform peaks of thresholded signal), then signal-guided watershed.--mode nuclei— three-stage pipeline using StarDist nuclei segmentation + per-nucleus signal-based classification, then the same tessellation.
Signal seed-finding
- Method selector (combobox) for local-maxima vs distance-transform peaks
- Smoothing σ, signal threshold (with histogram), min peak distance — all Run-gated
- Peak-strength live filter on the cached peak list after Run
Tessellation
- Signal influence: Voronoi ↔ signal-following blend
- Smoothing σ (µm)
- Min signal — carves background out of the tessellation space
- Min / Max domain area (µm²) — absorb tiny domains, trim oversized ones (true per-domain area cap, not radius-equivalent)
Per-domain measurements + CSV export
- Multi-channel TIFF input — channels beyond signal + nuclei become measurement-only channels
- Per-channel stats: mean, max, min, std, median, sum
- Per-domain morphology: area (µm²), centroid, eccentricity, solidity, perimeter, equivalent diameter, major/minor axes
- One-click export to
<image>_domains.csv(wide per-domain table) +<image>_domains_summary.csv(image-level stats with full slider provenance baked in for reproducibility)
UX
- Per-stage Run buttons; downstream stages prompt for Run but don't auto-cascade
- Live filter sliders for instant tuning (θ in nuclei mode, peak strength in signal mode)
- Histogram overlays on every threshold slider
- Uniform-size napari Points layer so the built-in point-size slider works on all seeds
GPU + install
- Native Windows GPU StarDist via TF 2.10 on Python 3.10 (recipe in README)
- CPU also works, just slower
Coming next
- Feature 2: per-domain skeleton extraction via skan, rooted at the seed
- Feature 3: Sholl analysis on those skeletons
- Extended CSV export with skeleton + Sholl metrics
Install
conda create -n dominion python=3.10 'tensorflow=2.10.0=gpu_py310*' -c defaults -y
conda activate dominion
pip install stardist csbdeep scikit-image tifffile "napari[all]" pyqtgraph magicgui qtpy
git clone https://github.com/GSNautilus/Dominion.git
cd Dominion
pip install -e . --no-deps
Run on an image:
python scripts/run_dominion.py path/to/image.tif # signal mode
python scripts/run_dominion.py path/to/image.tif --mode nuclei # nuclei mode
