Repository navigation
Releases
DOMINION v0.3.1 — user manual
DOMINION user manual. A 26-page PDF (attached below and in manual/) covering:
- installing (easy Windows installer, or by hand with conda; Basic or Full)
- a quick start, from an image to a per-cell CSV
- signal mode and nuclei mode, with every dock section and parameter shown in real screenshots
- tessellation, skeletons and Sholl analysis, and every exported CSV column
- tips for choosing parameters, troubleshooting, and a one-page parameter reference
Also in this release:
- MIT license and a
CITATION.cff(use GitHub's "Cite this repository" button) - README updated to match the current features
- Corrected update instructions: for a ZIP install, download the new ZIP and run the installer again
No changes to the analysis code since v0.3.0.
🤖 Generated with Claude Code
DOMINION v0.3.0 — parameter tooltips + easy Windows install
New in v0.3.0
Easier installation — two tracks
- Basic (default signal-mode pipeline; no GPU/TensorFlow) and Full (adds StarDist nuclei detection), split via an optional
nucleidependency extra. - Double-click Windows installers in
installers/that find conda — or auto-download a minimal copy (Miniforge) if you don't have one — build thedominionenvironment, and add a DOMINION Desktop shortcut. - Double-click Launch and Update scripts.
- Launching with no file now opens a file-open dialog. On a Basic install, nuclei mode degrades gracefully with an upgrade message instead of an error.
Parameter tooltips
- Hover explanations on every parameter across the Nuclei, Object-classification, Signal-seed, Tessellation, Channels, and Sholl panels.
How to install (Windows)
Download Source code (zip) below → Extract All → open the installers folder → double-click Install DOMINION (Basic).bat (or the Full one).
Notes
⚠️ The Windows installers have not yet been tested on a clean machine — treat this as a try-it release and please report issues.v0.2.0remains available and unchanged. This release is cut from theeasy-installbranch;mainis untouched.
DOMINION v0.2.0 — Morphology analysis: skeletonization, Sholl, persistence
DOMINION v0.2.0
Morphology analysis release. Per-cell tracing, Sholl, full CSV provenance, and settings persistence.
Headline features
Per-cell skeletonization (Feature 2)
A new Skeletons section between Tessellation and Measurements. After tessellation, click Run to extract a one-pixel-wide skeleton inside each domain mask, rooted at the corresponding seed. Backed by skan for the branch graph; outputs land in state.skeletons.per_domain[domain_id] with branch paths, lengths in µm, branchpoint / endpoint counts, total length, and the tree's root pixel.
Controls:
- Min branch length (µm) — geometric prune of short twigs.
- Min branch signal — intensity-aware prune (mean signal along each twig). Combined with Min branch length using OR logic — a twig is cut only when both armed thresholds fail, so a short bright branch survives.
- Force tree topology (no loops) — default ON. Detects every topological cycle via a spanning-tree pass on the branch graph and breaks each by dropping its dimmest interior pixel. Skeletons are guaranteed connected.
A Skeletons napari Labels layer overlays the tracings on the signal, color-coded per domain.
Sholl analysis (Feature 3)
A new Sholl analysis section. One slider — Ring spacing (µm) — and Run. For each cell skeleton, computes concentric-ring intersection counts using connected-component counts within each annulus (the proper Sholl crossing metric, not raw pixel counts). Derived per cell:
- peak intersections
- peak radius (µm)
- max radius (µm)
- critical radius (first ring past the peak where intersections drop to ≤ peak / 2)
- AUC (sum of intersections)
- ramification index (peak / innermost-ring intersections)
Extended CSV export (Feature 4)
The Measurements export now picks up skeleton + Sholl results when those have been run. Per-domain rows get 4 skeleton columns and 6 Sholl columns; the summary CSV gains population-level aggregates (medians, means) for everything plus the ring-spacing parameter for reproducibility.
Batch — Save / Load settings
A new Batch section at the bottom of the dock. Two buttons:
- Save settings… — writes every section's widget values (every slider, combobox, checkbox, channel selection) to JSON next to the source image.
- Load settings… — applies the saved values back into every section. Does not run any pipeline step — you still click Run on each section.
Sliders with mid-Run-configured ranges (peak strength, classification T / θ, tessellation min signal, skeletons min branch signal) widen their range on load so a settings file made on one image loads cleanly into a fresh session on another.
Foundation for the directory-batch processing planned next.
UX polish
- All sections collapsed by default except the seed-finding stage (the one you actually interact with first).
- Skeletons placed above Measurements so a quick visual sanity check comes before exporting numbers.
- Default seed point size is a fixed 24 in data units, not pixel-scaled — visible regardless of image resolution.
- The state graph is now branching, not linear:
tessellation → {measurements, skeletons → sholl}. Running Measurements no longer invalidates your Skeletons, and vice versa. Re-running Tessellation still clears everything downstream.
Loop-breaking rewrite
This one came from real user feedback that v0.1.0's tracings still had loops everywhere. The story, in commits:
- First attempt looked for skan's
branch_type == 3— only catches isolated closed loops. The common case (tree-with-cycle: a side branch that rejoins the trunk) is twobranch_type == 2paths between the same junctions, which my check missed entirely. - Second attempt switched to a spanning tree on the branch graph (union-find with paths sorted by minimum signal). Caught most cycles but skipped 2-pixel redundant paths to avoid disconnecting branchpoint neighbors. 50 / 728 cells still had cycles on the test image.
- Third attempt: handle 2-pixel paths too (drop the dimmer of the two pixels, let the
_largest_componentpost-process at the end reknit). 0 / 728 cells with cycles, 0 fragmented.
Tracings are now actually trees.
Install
The skan and networkx dependencies are new in this version. In your dominion env:
pip install skan networkx
pip install -e . --no-deps # reinstall with the bumped versionOr from a fresh env, follow the recipe in the README — the new deps are pinned in pyproject.toml now.
Coming next
- Directory-batch button next to Save / Load — apply a saved settings file across a folder of images, exporting per-image CSVs and territory masks.
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
