Motor Unit Toolbox¶
Motor Unit Toolbox is a Python package to analyse motor unit (MU) behaviour, from computing basic firing and motor unit action potential (MUAP) properties, to comparing sets of spike trains and tracking MUAPs.
The package is composed of the following modules:
props: MU properties such as discharge rate, pulse to noise ratio, silhouette measure, and coefficient of variation of the interspike intervals, as well as MUAP features.spike_comp: compare spike trains between paired or unpaired sets, as well as within sets. Main metrics are rate of agreement, precision, sensitivity, F1 score, true positives, false positives, and false negatives.muap_comp: compare, cluster and track MUAPs within or across recordings.plots: plot spike trains, MUAPs, and grouped MUAPs.utils: convert between lists of firing times and binary spike train matrices.
Installation¶
Install the latest release from PyPI (Python 3.10 or newer):
pip install motor-unit-toolbox
The package is imported as motor_unit_toolbox.
Head to Getting started for a worked example, or browse the API reference for every function and its arguments.
Citation¶
If you use this code in your research, please cite it using the Cite this repository
button on GitHub, which reads
CITATION.cff.