MorphoStack runs locally. The canonical command is morphostack; the short alias is mst (same entry point).
- Python 3.11+
- Optional for analysis: OpenCV, scikit-image, scipy, tifffile, czifile, … (
pip install -e ".[analysis]"or".[all]") - Optional for API/UI: FastAPI, uvicorn (
".[api]"), Node.js for web build/dev
git clone https://github.com/sudoax0n/MorphoStack.git
cd MorphoStack
python -m venv .venvLicense: dual AGPL-3.0-only or PolyForm Noncommercial 1.0.0 — see LICENSE. Cite MorphoStack if you use it (CITATION.cff).
Windows (PowerShell):
.\.venv\Scripts\python -m pip install -e ".[all]"
.\.venv\Scripts\morphostack doctor
.\.venv\Scripts\morphostack init --web # optional UI depsmacOS / Linux:
source .venv/bin/activate
python -m pip install -e ".[all]"
morphostack doctor
morphostack init --webConfirm both commands:
morphostack --version # MorphoStack 0.1.0
mst --version # MorphoStack 0.1.0# Inspect shape + voxel source
morphostack inspect path/to/stack.tif
# Suggest a threshold
morphostack threshold path/to/stack.tif --method auto
# Run analysis with calibration overrides
morphostack analyze path/to/stack.tif \
--threshold 100 \
--voxel-x 0.1 --voxel-y 0.1 --voxel-z 0.5 \
--out metrics.csv --report --meshOutputs next to (or under) your chosen paths:
| Artifact | Contents |
|---|---|
metrics.csv |
Per-frame shape metrics |
metrics.csv.manifest.json |
Provenance (SHA-256, settings, warnings) |
metrics.csv.report.md |
Human-readable summary (--report) |
| mesh file | With --mesh-export mesh.obj (or STL/PLY/GLB) |
Use --bundle-dir runs to write metrics.csv + manifest.json + report.md into one folder.
morphostack analyze path/to/crowded.czi \
--threshold 190 \
--seed-x 360 --seed-y 517 --seed-frame 105 \
--mesh --mesh-export mesh.obj \
--bundle-dir runsDeveloper mode (API + Vite hot reload):
morphostack dev --check
morphostack dev
# open http://127.0.0.1:5173Single-port app (built UI + API; after npm run build or a release wheel):
morphostack app
# open http://127.0.0.1:8000- Full UI/CLI walkthrough: usage.md
- Metric definitions: metrics.md
- Scientific caveats: limitations.md
- If something fails: troubleshooting.md
