Psyence221b / Brainstorm-to-Cosmo

Converts EEG epochs exported from Brainstorm into CoSMoMVPA format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Brainstorm to Cosmo

This MATLAB script converts EEG epochs exported from Brainstorm (BS) into CoSMoMVPA format. Note that each epoch should represent a single run of a condition (the average of all the epochs of that condition in a single block of trials).

For the script to work you have to select the relevant averaged epochs of 2 conditions in the BS interface (hold Ctrl + click), then right click on them -> export to file, and choose the FieldTrip format.

The first file exported from Brainstorm will be the reference file, which Cosmo will also need as part of the input. The data from the other files will be attached to the first, forming a 3D matrix which will be stored in a Cosmo-friendly file named out.m.

About

Converts EEG epochs exported from Brainstorm into CoSMoMVPA format


Languages

Language:MATLAB 100.0%