Epoching and averaging

This tutorial fills the gap between the previous tutorial (review and clean continuous recordings), and the introduction tutorials (source analysis of evoked responses). It explains how to epoch the recordings, do some more pre-processing on the single trials, and then calculate their average.

Import in database

The raw file viewer provides a rapid access to the recordings, but most of operations cannot be performed directly on the continuous files: most of the pre-processing functions, averaging, time-frequency analysis and statistical tests can only be applied on blocks of data that are saved in the database (ie. "imported"). After reviewing the recordings and editing the event markers, you have to "import" the recordings in the database to go with further analysis.

Now, right-click on the file with power line correction: Raw | sin(60Hz 120Hz 180Hz) > Import in dabase

importMenu.gif

You would get the same menu from the event tab, when the file viewer is open: menu Import > Import in database.

Warning: If you right-click on the subject node > Import EEG/MEG, and select the tutorial .ds dataset, you would be able to import blocks of the continuous file in the database, but you would not have access to the modified events list or the SSP operators. Therefore, you would not import data cleaned for the ocular and cardiac artifacts. The modified events list and the signal space projectors are saved only in the "Link to raw file" in the Brainstorm database, not in the initial continuous file.

importOptions.gif

Set the import options as they are represented in this figure:

Click on Import and wait. In the end, you are asked whether you want to ignore one epoch that is shorter than the others. This happens because the acquisition of the MEG signals was stopped less than 300ms after the last stimulus trigger was sent. Therefore, the last epoch cannot have the full [-100,300]ms time definition. This shorter epoch would prevent us from averaging all the epochs easily. As we already have enough repetitions in this experiment, we can ignore it. Answer Yes to this question to discard the last epoch.

importShortEpoch.gif

Two new conditions containing two groups of trials appeared in the database. The groups of trials are not expanded by default, to have the database tree displayed faster. To expand a list and get access to the individual trials: double click on it, or right-click on the list > Expand.

The SSP projectors were applied on the fly when reading from the continuous file. Those epochs are clean from everything that we corrected in the previous tutorial: the eye blinks and the power line contamination.

importDb.gif importDb.gif

Tutorials/TutRawAvg (last edited 2013-01-09 21:08:27 by agrippa)