Skip to content

simonavrillon/MUedit2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MUedit (v2.0.0)

MUedit decomposes high-density EMG signals into motor unit pulse trains.

Status

This software is currently in beta and is intended for testing purposes, not for research projects.

Acknowledgment

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

Quick Start

  1. Create and activate the conda environment:
conda env create -f environment.yml
conda activate MUedit
  1. Install MUedit in editable mode:
pip install -e .
  1. Launch the app from the repository root:

macOS / Linux:

./scripts/run_MUedit.sh

Windows (PowerShell):

.\scripts\run_MUedit.ps1

The launcher starts:

  • Backend API on http://localhost:8000
  • Frontend on http://localhost:8080

The browser opens automatically unless disabled via env var.

Requirements

  • Python 3.11+
  • Conda (Anaconda or Miniconda)

CLI Entrypoints

After installation, MUedit exposes:

  • muedit-api (starts the FastAPI backend)
  • muedit-decompose (runs decomposition from the terminal)

Launchers

Canonical launchers:

  • scripts/run_MUedit.sh
  • scripts/run_MUedit.ps1

Windows first-time setup (if script execution is blocked):

Set-ExecutionPolicy -Scope CurrentUser RemoteSigned

Configuration

The 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.sh

Verify Installation

With MUedit running:

  1. Open http://localhost:8080 in a browser.
  2. Check backend health:
curl http://localhost:8000/api/v1/health

Troubleshooting

  • python: command not found: activate the conda env before launching.
  • Port already in use: set MUEDIT_BACKEND_PORT / MUEDIT_FRONTEND_PORT to free ports.
  • Browser does not open automatically: open http://localhost:<MUEDIT_FRONTEND_PORT> manually.

Documentation

About

App to decompose electromyographic signals and manually edit the motor unit pulse trains

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors