Aligning spike for average

Hello everyone,

i am currently analyzing an EEG dataset with a lot of spikes visually marked. I followed Tutorials/Epilepsy - Brainstorm tutorial; however in the dataset, I am analyzing, the making is not necessarily consistent between each spike and the onset marked might be 10-20 ms before or after the peak of the spike.

I was therefore wondering if there was a tool I could use in Brainstorm to realign the spike before averaging? Manually remarking the time of the peak is not an option as there are more than 400 spikes :slight_smile:

Edouard

Hi Edourd,

It seems that at least one of three processes can help you.

Since there is already a marker "near" the spike, this location could be used to define the Time window to detect the peak of the spikes, i.e., to run the detection for each window around the current marker.
Lastly, here is an example on how to get the Event information:
https://neuroimage.usc.edu/brainstorm/Tutorials/Scripting#Example:_Editing_events

Best,
Raymundo

1 Like