Welcome to spaCR¶
spaCR — Spatial phenotype analysis of CRISPR screens.
A Python toolkit for quantifying and visualising phenotypic changes in
high-throughput microscopy screens. Ships with a modern PySide6 GUI
(spacr), a headless pipeline (spacr.core), and a
plate-to-classification workflow that runs on top of PyTorch,
Cellpose, scikit-image, and scipy.
Install spaCR from PyPI and launch the Qt GUI in two commands.
The lesson library — 40 narrated, step-by-step lessons covering the whole pipeline.
Every public function, method, and class — grouped by module.
Narrated walkthroughs of each pipeline module.
File a bug, request a feature, or ask a question.
Pipeline overview¶
The GUI ships 62 apps, grouped into seven categories — Core, Data, Segmentation models, Results & QC, Explore, Toxoplasma, and Design. The nine Core apps form the main pipeline; these five are the path most screens take, each with its own API reference module:
Mask |
Cellpose segmentation of cells, nuclei, pathogens.
|
Measure |
Per-object feature extraction into a SQLite DB.
|
Annotate |
Grid-based manual labelling of single-cell crops.
|
Classify |
CNN / XGBoost training from annotations.
|
Map Barcodes |
Map FASTQ reads to row/column/gRNA barcodes.
|
Key modules by category¶
- Core pipelines
spacr.core·spacr.io·spacr.measure·spacr.object·spacr.utils- Machine learning + classification
spacr.ml·spacr.deep_spacr·spacr.predictions·spacr.spacr_cellpose- Analysis
spacr.plot·spacr.sp_stats·spacr.submodules·spacr.toxo·spacr.timelapse·spacr.sim- Sequencing
- Modern Qt GUI
spacr.qt— launched via thespacrorspacr-qtCLI.- Classic Tk GUI
Installation¶
The GUI lives behind the qt extra, so the desktop install must ask for
it — plain pip install spacr gives you the pipelines but no PySide6, and
spacr will tell you so rather than launch.
python -m pip install "spacr[qt]"
spacr # launch the Qt GUI
Headless (cluster, server, CI) — no Qt, no display:
python -m pip install spacr
spacr-run --list # list the headless pipeline modules
Learn spaCR¶
The interactive tutorial library walks through every module with narrated, step-by-step lessons. It is also reachable from the GUI: Help → Tutorial (web), or the spaCR logo on the classic Tk start screen.
Contents¶
- Module audit
- Localization
- Setting animation gallery
- Checkpoint and resume
- Reproducibility manifests
- Unified run history
- Plate and batch-effect correction
- Classifier evaluation workbench
- Resumable multi-objective UMAP search
- Remote and distributed execution
- spaCR plugin SDK
- Train/test leakage audit
- Threading and cancellation audit
- Database concurrency audit
- API Reference