This package provides classes Sigmoid and HillCurve for fitting, plotting and interpolating EMG recruitment curves. These might be suitable for the M-wave and H-reflex components, respectively, of the EMG responses to electrical peripheral nerve stimulation. Feed in a sequence of stimulation intensities and corresponding sequence of response magnitudes. These can be used from the command-line, outside of python.
The package also provides a higher-level class RecruitmentCurve which takes in EMG waveforms, together with information on the start and end times of the response components of interest, and performs either or both of the above fits, optionally rendering the results on an interactive plot.
To get started:
python -m pip install RecruitmentCurveFitting python -m RecruitmentCurveFitting --unpack-examples python -m RecruitmentCurveFitting example-data1.txt example-data2.txt --plot python -m RecruitmentCurveFitting --help python -m RecruitmentCurveFitting --help-module
If you use this software in your research, your report should cite the article in which this approach was introduced, as follows:
McKinnon ML, Hill NJ, Carp JS, Dellenbach B & Thompson AK (2023). Methods for automated delineation and assessment of EMG responses evoked by peripheral nerve stimulation in diagnostic and closed-loop therapeutic applications. Journal of Neural Engineering 20(4):046012. https://doi.org/10.1088/1741-2552/ace6fb
The corresponding BibTeX entry is:
@article{mckinnonhill2023,
author = {McKinnon, Michael L. and Hill, N. Jeremy and Carp, Jonathan S.
and Dellenbach, Blair and Thompson, Aiko K.},
title = {Methods for Automated Delineation and Assessment of {EMG}
Responses Evoked by Peripheral Nerve Stimulation in Diagnostic
and Closed-Loop Therapeutic Applications},
journal = {Journal of Neural Engineering},
year = {2023},
month = {July},
date = {2023-07-21},
volume = {20},
number = {4},
pages = {046012},
doi = {10.1088/1741-2552/ace6fb},
url = {https://doi.org/10.1088/1741-2552/ace6fb},
}
Development was supported by the NIH, NYS SCIRB, Veterans Affairs RRD, and the Stratton VA Medical Center.
Metadata
Release files for RecruitmentCurveFitting 1.2.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| recruitmentcurvefitting-1.2.8-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for recruitmentcurvefitting-1.2.8-py2.py3-none-any.whl |
Release files / recruitmentcurvefitting-1.2.8-py2.py3-none-any.whl
| Download URL | recruitmentcurvefitting-1.2.8-py2.py3-none-any.whl |
|---|---|
| Size | 95.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
73cb6af320d477fccdabc6d9c01b9d415909ab16385dd7cae6cdca8182bfbe31
|
|
BLAKE2b-256 checksum How to use checksums |
3445d7ac8115489667d23a4fe97a759a1398f5b17fe4ebe60f3a7e685ab31939
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for RecruitmentCurveFitting 1.2.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.