MUedit decomposes high-density EMG signals into motor unit pulse trains.
This software is currently in beta and is intended for testing purposes, not for research projects.
This project includes and uses code from adapt_decomp (see python/src/adapt_decomp) for adaptive decomposition workflows.
Original author: Irene Mendez Guerra
Original repository: https://github.com/imendezguerra/adapt_decomp
- Create and activate the conda environment:
conda env create -f environment.yml
conda activate MUedit- Install MUedit in editable mode:
pip install -e .- Launch the app from the repository root:
macOS / Linux:
./scripts/run_MUedit.shWindows (PowerShell):
.\scripts\run_MUedit.ps1The launcher starts:
- Backend API on
http://localhost:8000 - Frontend on
http://localhost:8080
The browser opens automatically unless disabled via env var.
- Python 3.11+
- Conda (Anaconda or Miniconda)
After installation, MUedit exposes:
muedit-api(starts the FastAPI backend)muedit-decompose(runs decomposition from the terminal)
Canonical launchers:
scripts/run_MUedit.shscripts/run_MUedit.ps1
Windows first-time setup (if script execution is blocked):
Set-ExecutionPolicy -Scope CurrentUser RemoteSignedThe launcher supports these environment variables:
| Variable | Default | Description |
|---|---|---|
MUEDIT_HOST |
0.0.0.0 |
API bind host |
MUEDIT_BACKEND_PORT |
8000 |
API port |
MUEDIT_FRONTEND_PORT |
8080 |
Frontend port |
MUEDIT_OPEN_BROWSER |
1 |
Set to 0 to skip auto-opening browser |
Example (macOS/Linux):
MUEDIT_BACKEND_PORT=9000 MUEDIT_FRONTEND_PORT=9001 MUEDIT_OPEN_BROWSER=0 ./scripts/run_MUedit.shWith MUedit running:
- Open
http://localhost:8080in a browser. - Check backend health:
curl http://localhost:8000/api/v1/healthpython: command not found: activate the conda env before launching.- Port already in use:
set
MUEDIT_BACKEND_PORT/MUEDIT_FRONTEND_PORTto free ports. - Browser does not open automatically:
open
http://localhost:<MUEDIT_FRONTEND_PORT>manually.
- Workflow guide: docs/WORKFLOWS.md
- Saved files reference: docs/SAVED_FILES.md
- Frontend architecture: docs/FRONTEND_ARCHITECTURE.md
- Backend architecture: docs/BACKEND_ARCHITECTURE.md