Welcome to DiMEP’s documentation!

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.

Installation

Stable

pip install dimep

Development

pip install git+https://github.com/translationalneurosurgery/tool-dimep.git

Example

# mock a single-channel EMG signal
from numpy import random
random.seed(0)
trace = random.randn(1000)
print(trace.shape)
# >>> (1000,)

# and apply the template approach on this trace
# where the trace is the single-channel EMG recording
# tms_sampleidx marks the onset of the TMS pulse
# and fs is the sampling rate.
from dimep.api import guggenberger
guggenberger(trace=trace, tms_sampleidx= 500, fs = 1000)
# >>> 0.11904591308664515

Documentation

Indices and tables