PhysioNeurophys analyses
transcranial magnetic stimulation (TMS) and peripheral motor
neurophysiology on PhysioExperiment objects:
motor-evoked-potential (MEP) amplitude and latency, Boltzmann
recruitment curves, H-reflex and F-wave metrics, paired-pulse SICI/ICF,
cortical silent period, TMS-EEG cleaning, and the PREP2 prognosis
algorithm.
This vignette uses the built-in simulator so it runs offline. TEP/MEP labels are measurement windows, not proof of a cortical source.
make_mep() generates biphasic MEP waveforms with a known
latency and a Boltzmann amplitude-intensity relationship, and attaches
the per-trial TMS pulse metadata. Epochs start 20 ms before the
pulse.
pe <- make_mep(n_trials = 12, seed = 1)
dim(SummarizedExperiment::assay(pe)) # samples x channels x trials
#> [1] 600 1 12
getTMSpulses(pe)[1:3, ]
#> pulse intensity_pct_mso target coil rmt_pct_mso onset_sec
#> 1 1 30.00000 <NA> <NA> NA NA
#> 2 2 33.63636 <NA> <NA> NA NA
#> 3 3 37.27273 <NA> <NA> NA NAPeak-to-peak amplitude is measured within a response window, per
channel and trial. Pass epoch_start_ms = -20 to match the
simulated epoch.
Amplitude rises sigmoidally with stimulator intensity.
recruitmentCurve() fits a three-parameter logistic and
returns the fitted parameters and fit quality.
?PhysioNeurophys lists every entry point, including
peripheral measures (hReflexRecruitment(),
hMaxMMax(), fWaveDetect()), paired-pulse
inhibition/facilitation (pairedPulse(),
siciIcf()), the cortical silent period
(corticalSilentPeriod()), TMS-EEG pulse removal and
cleaning (removeTMSpulse(), tmsSSPSIR(),
soundClean(), tepAverage()), and the PREP2
upper-limb prognosis (prep2()).