TESA user manual
  • Introduction
  • Installation, getting started, and reporting bugs
    • A quick intro to TESA
    • A quick intro to Matlab
    • A quick intro to EEGLAB
    • Reporting bugs
  • Overview of TMS-EEG analysis
  • Find and mark TMS pulses
    • Find TMS pulses
    • Find TMS pulses (alternative)
    • Fix TMS pulse latencies
  • Remove and interpolate TMS pulse artifacts
    • Remove TMS pulse artifact
    • Interpolate removed data
  • Remove TMS-evoked muscle activity and other artifacts
    • FastICA
    • Component classification (TESA)
    • Plot and remove components
    • Enhanced deflation method (EDM)
    • PCA compression
    • PCA suppression
    • Detrend
    • SSP–SIR
    • SOUND
  • Filter data
    • Butterworth filter
    • Median filter
  • Analyse TMS-evoked potentials
    • Extract TEPs
    • Find and analyse TEP peaks
    • Output peak analysis
    • Output peak analysis (group)
  • Plot TMS-evoked potentials
    • Plot data
    • Plot data (group)
  • Example analysis pipelines
  • TESA functions under development
Powered by GitBook
On this page
  • Finding TMS pulses in continuous data
  • Correcting TMS event latencies

Was this helpful?

Find and mark TMS pulses

PreviousOverview of TMS-EEG analysisNextFind TMS pulses

Last updated 4 years ago

Was this helpful?

To generate TMS-evoked potentials from EEG recordings, an accurate record of precisely when the TMS pulse was given is required. However, recording TMS triggers in EEG may not always be available due to the experimental arrangement or simply human error. TESA has several functions which use the large TMS pulse recording artifact to detect and mark when TMS pulses occur.

Finding TMS pulses in continuous data

The function is useful when no trigger events have been recorded and searches for large rate changes in EEG amplitude during continuous EEG recordings.

Example of TMS pulses found using tesa_findpulse. TMS events are now stored in the EEGLAB data structure.

Correcting TMS event latencies

Example of TMS event latencies corrected using tesa_fixevent. Original event latencies on the left were approximately 7 ms earlier than the actual TMS pulse. This latency was corrected by tesa_fixevent on right.

If TMS trigger events were recorded, however these triggers did not accurately mark the TMS pulse onset, the function corrects TMS trigger event latency on epoched EEG data.

tesa_fixevent
tesa_findpulse