Scripts: Essential information

How to use the scripts provided within these pages #


Every script looks a little different to the ‘code’ line on the website. The reason for this is that the code is intended to enable you to identify what the pre-processing operation looks like in code form and to create your own scripts, whilst the scripts provided are intended to make your pre-processing more efficient, allowing you to run each pre-processing operation on all your datasets at once. This requires a little more info (i.e., where EEGLAB is stored on your computer, etc.), and therefore means that a couple of steps are necessary before you can use the scripts for your own data.

Prepare your data files #

All the scripts features on this website require that your data is stored as follows.

First, you must create a folder specifically for your experiment.

Folder

Then you must create individual folders for each participant, with the name of the datasets matching the name of the folder exactly.

Folder

Folder

Finally, you must ensure that all data from that participant is stored within this folder. This includes .CNT files, .fdt and .set files, and behavioural data.

Next, you can start to tell you script where the necessary folders are on your computer in order to run. At the beginning of each script, the following will almost always be necessary:

Example script (download).

Example script (view).

Ensure that for every script you run from this site, you enter the correct information as outlined in the example scripts above.


N.B. The scripts on this website could not have been produced without the valuable guidance and help that I received from Dr. Politzer-Ahles (Kansas University) throughout my first postdoc.