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
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")'
Rscript -e 'install.packages("tinytex")'
Rscript -e 'tinytex::install_tinytex()'
Rscript -e 'install.packages("bookdown")'
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file emgdecompy-0.5.2.tar.gz
.
File metadata
- Download URL: emgdecompy-0.5.2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3eac82032446c82e844504fd2a1f455471b10505d0c2240786be11173c53648e |
|
MD5 | 5d022fc20706f73f93bba92ef2e951d7 |
|
BLAKE2b-256 | 9cf1a5c31e224542f46aadc7e3e5d1068b6da33d4fa43219683bfaf710f9f4b7 |
File details
Details for the file emgdecompy-0.5.2-py3-none-any.whl
.
File metadata
- Download URL: emgdecompy-0.5.2-py3-none-any.whl
- Upload date:
- Size: 30.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c10dfedc63631981f3ab30a0e74d4de3869c55ae0c8657789a0c892048cae81 |
|
MD5 | 9ded9725840458aa1dbbd11da81de345 |
|
BLAKE2b-256 | 883988737f3459ff6c39d1e4ad8cbab4bd83dc6fce341a1444260b92ffdca9eb |