Skip to main content

A package for fitting sigmoid and bell-shaped functions to EMG recruitment-curve measurements

Project description

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 (in press) 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},
  doi     = {10.1088/1741-2552/ace6fb},
  url     = {https://doi.org/10.1088/1741-2552/ace6fb},
}

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

RecruitmentCurveFitting-1.1.2-py2.py3-none-any.whl (106.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file RecruitmentCurveFitting-1.1.2-py2.py3-none-any.whl.

File metadata

  • Download URL: RecruitmentCurveFitting-1.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 106.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/57.4.0 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.7.3

File hashes

Hashes for RecruitmentCurveFitting-1.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 aa2c381c889b19acf9f00d85772d466ee669775f8e30b12df009791d28dcbc33
MD5 d94c42ffcf43128c1aa8f8443d3d2b55
BLAKE2b-256 10b34a53a648969bf7918d55b72506128fd91c0044bf0cb4d6957f086fbfc6f6

See more details on using hashes here.

Supported by

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