-
Notifications
You must be signed in to change notification settings - Fork 73
Tutorial 3 Combining and Modifying ERPsets
The previous tutorial sections show the process of loading EEG data into an ERPsets, and getting information from an ERPset through plotting and measurement tools.
Here, we look at the ERPLAB tools for combining and modifying ERPsets.
So far in this tutorial, we have focused on the data from example subject 1, producing an ERPset saved as S1_ERP.erp
. When this ERPset is loaded, we see it as the only entry in the ERPsets
menu in the EEGLAB window. Most studies will require multiple subjects, and averaging together the ERP data from multiple subjects produces a Grand Average ERP. The Grand Average tools in ERPLAB take the ERPsets from multiple subjects, and output a new Grand Average ERPset, which can also be plotted and measured.
Making a Grand Average ERPset has several requirements. In particular, each of the contributing ERPsets should have a matching bins and matching epoch time.
First, let's load the data from multiple subjects. From tutorial section 1, S1_ERP.erp
may have been saved to a file. Repeat the EEG to ERPset process also for subject 2, producing an ERPset S2_ERP.erp
. The ERPsets can be created by clicking through those steps in the GUI, or by running a ERPset preparation pipeline script.
In the EEGLAB window, ensure that the ERPsets
menu lists all the currently loaded ERPsets. Ensure that both S1_ERP.erp
and S2_ERP.erp
are there. If not, load them through ERPLAB -> Load existing ERPsets
.
EEGLAB window, showing that S1_ERP and S2_ERP are loaded in ERPLAB, and S2_ERP is the currently selected ERPset
To run the Grand-Averager tool, hit ERPLAB -> Average across ERPsets (Grand Average)
.
This will open the following window:
The Grand Averager window
Note that there are two options for specifying the ERPsets that will go in the this Grand Average -- either from currently-loaded ERPsets in the ERPset menu, or from a list of previously-saved ERPset files. Here, we have S1_ERP and S2_ERP are loaded in ERPLAB, and so use the top From ERPset in the ERPset menu
option. The 1 2
in the text box here means the 1st and 2nd ERPsets from the ERPset menu will be used.
Hitting RUN
will start the Grand Averager. You will see a new window, prompting you to name and save this new ERPset:
Save newly-produced Grand Average ERPset
This new Grand Average ERPset is now loaded, and you can see it in the ERPset menu:
The ERPLAB plotting tools, like the ERP Viewer, can then be run as normal on this new ERPset: