Automate marking of bad segments

Dear Expert:
I was wondering if there is a way to mark a same time window (e.g., 0 to 3 s) as the bad segment in all my subjects' raw MEG data at once? I can't find a script function for this process but I think this could be done automatically right? Thank you!

Yuwen

You can proceed in the following way:

  1. Open one of your files, create an event category BAD, and define the bad segment you want to add to all your files
  2. In the Record tab, select the event BAD, menu File > Export selected events > save the events in any file format (Brainstorm events.mat is a safe option)
  3. In the Process1 box, select all the files to which you want to add this bad event
  4. Run process "Events > Import from file" and select the file you just created (for the Brainstorm file format, ignore the option "event name")
1 Like

Amazing solution! Thank you Francois!

Yuwen