DiMEP stands for Detection of ipsilateral Motor Evoked Potentials and was developed by Robert Guggenberger at the Institute of Neuromodulation and Neurotechnology of the University Hospital Tübingen.
Install the stabel release from PyPI with pip install dimep
and the most recent development tip with pip install git+https://github.com/translationalneurosurgery/tool-dimep.git
.
Access the algorithms with
from dimep.api import <algorithm>
and subsequently call them, e.g. with
from dimep.api import lewis
lewis(trace=trace, tms_sampleidx= 500, fs = 1000)
# where the trace is the single-channel EMG recording
# tms_sampleidx marks the onset of the TMS pulse
# and fs is the sampling rate.
Read the documentation on readthedocs.