Skip to main content

A package for decomposing multi-channel intramuscular and surface EMG signals into individual motor unit activity based off the blind source algorithm described in Francesco Negro et al 2016 J. Neural Eng. 13 026027.

Project description

EMGdecomPy

ci-cd Documentation Status codecov

A package for decomposing multi-channel intramuscular and surface EMG signals into individual motor unit activity based off the blind source algorithm described in Negro et al. (2016).

Proposal and Final Report

To generate the proposal and final report locally, ensure that you have R version 4.1.2 or above installed, as well as the RStudio IDE. Then install the necessary dependencies with the following commands:

Rscript -e 'install.packages("rmarkdown", repos="http://cran.us.r-project.org")'
Rscript -e 'install.packages("tinytex", repos="http://cran.us.r-project.org")'
Rscript -e 'tinytex::install_tinytex()'
Rscript -e 'install.packages("bookdown", repos="http://cran.us.r-project.org")'

Proposal

Our project proposal can be found here.

To generate the proposal locally, run the following command from the root directory after cloning EMGdecomPy:

Rscript -e "rmarkdown::render('docs/proposal/proposal.Rmd')"

Alternatively, if the above doesn't work, install Docker. While Docker is running, run the following command from the root directory after cloning EMGdecomPy:

docker run --platform linux/amd64 --rm -v /$(pwd):/home/emgdecompy danfke/pandoc-r-bookdown Rscript -e "rmarkdown::render('home/emgdecompy/docs/proposal/proposal.Rmd')"

Final Report

Our final report can be found here.

To generate the final report locally, run the following command from the root directory after cloning EMGdecomPy:

Rscript -e "rmarkdown::render('docs/final-report/final-report.Rmd')"

Alternatively, if the above doesn't work, install Docker. While Docker is running, run the following command from the root directory after cloning EMGdecomPy:

docker run --platform linux/amd64 --rm -v /$(pwd):/home/emgdecompy danfke/pandoc-r-bookdown Rscript -e "rmarkdown::render('home/emgdecompy/docs/final-report/final-report.Rmd')"

Installation

EMGdecomPy is compatible with Python versions 3.9 to 3.11.

pip install emgdecompy

Usage

After installing emgdecompy, refer to the EMGdecomPy workflow notebook for an example on how to use the package, from loading in the data to visualizing the decomposition results.

Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

EMGdecomPy was created by Daniel King, Jasmine Ortega, Rada Rudyak, and Rowan Sivanandam. It is licensed under the terms of the GPLv3 license.

Credits

EMGdecomPy was created with cookiecutter and the py-pkgs-cookiecutter template.

The blind source separation algorithm in this package was based off of Negro et al. (2016).

The data used for validation was obtained from Hug et al. (2021).

Guilherme Ricioli was consulted for his work on semg-decomposition.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

emgdecompy-0.5.3.tar.gz (29.9 kB view details)

Uploaded Source

Built Distribution

emgdecompy-0.5.3-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

Details for the file emgdecompy-0.5.3.tar.gz.

File metadata

  • Download URL: emgdecompy-0.5.3.tar.gz
  • Upload date:
  • Size: 29.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for emgdecompy-0.5.3.tar.gz
Algorithm Hash digest
SHA256 5eff83f61fb44af0269959e2f902d69e743df15212a77b3b38f9476430f88759
MD5 880d2c7dd6e5bb4af4b67cdc537cf59c
BLAKE2b-256 35bcffc40d5bccc969d6440141f4fdff76c8ad1440b0f828a74b510d8810453b

See more details on using hashes here.

File details

Details for the file emgdecompy-0.5.3-py3-none-any.whl.

File metadata

  • Download URL: emgdecompy-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 30.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for emgdecompy-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 70b5f83398f1c4bc9c1b874c2f300bc94e5431f0cffe098d6000d241dc817de4
MD5 1c2cfdef4c097f272d00997e78e8b88b
BLAKE2b-256 80029d7a55b377bf0977018e00ca0ae70ecf7c970843027f9d3c377f2dbc7acd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page