How to add new events to Brainstorm

Hi, I have data recorded with brain amp (.eeg)
I want to add some new events thorugh an 'events*.mat' file, as indexed by supported extensions for the upload of events files.
How should this file be structured? So far I have the events name and its timing onset
Thanks a lot!

This is done inside the Recording tab with the menu File > Import events from file...
https://neuroimage.usc.edu/brainstorm/Tutorials/EventMarkers#Other_menus
(or with the process Events > Events import from file, if you aim to automate this action)

image

Multiple formats are supported (see the options in the Files of Type drop menu), so it mostly depends on how the events are stored. If none of the supported formats matches the way your events are organized, you can organized them in one of these common formats.

  • CSV text file CSV file with at least "label, time" the information for "duration" applies only if the event have are longer than 1 sample.
  • Array of times: a .mat with only one variable of size [1xN] with the time for N occurrences in seconds.
  • Array of samples: same thing as above with the occurrences are given in samples.

If there are multiple event labels, the CSV file is a better option as there will be only one file, rather than a files for each event label.

1 Like

Thaaaanksss!!!