Main content

Home

Menu

Loading wiki pages...

View
Wiki Version:
All files needed to do the exercises as part of the book may be found here. Each ZIP file should be downloaded onto a reasonably fast drive (preferably internal SSD harddisk as opposed to USB stick), and extracted. This will result in a separate directory for every chapter and a brief description of the contents in a readme.txt. For convenience, I copy the contents here as a complete overview: **Chapter 1**: Note, chapter 1 is theory, there are no files **Chapter 2**: Note, chapter 2 is about experiment and stimulus design. Stimulus material appear in Chapters 3 and 4 zips respectively. **Chapter 3:** *Documentation appears in each experiment within the User Script of the Experiment (top of Experiment Explorer).* - img/: Directory with stimulus material - Chapter 3_1_GettingStarted.es3: Experiment file following the book until the end of Getting started. - Chapter 3_2_ImprovingTheExperiment.es3: Experiment file following the book from 3_1 until the end of Improving the experiment. - Chapter 3_3_AddingTriggers.es3: Experiment file following the book from 3_2 until the end of Adding Triggers - Chapter 3_4_EssentialExercises.es3: Experiment file following the book with all essential exercises included. - Chapter 3_5_AdditionalExercises.es3: Experiment file following the book with essential and additional exercises included. - Chapter 3_5_E-Prime 2 version.es2: Experiment file like 3_5_AdditionalExercises.es3 but with a version compatible with E-Prime 2. **Chapter 4:** Documentation appears in each experiment as a notepad called 'Documentation'. - img/: Directory with stimulus material - Chapter 4_1_GettingStarted.osexp: Experiment file following the book until the end of Getting started. - Chapter 4_2_ImprovingTheExperiment.osexp: Experiment file following the book from 3_1 until the end of Improving the experiment. - Chapter 4_3_AddingTriggers.osexp: Experiment file following the book from 3_2 until the end of Adding Triggers - Chapter 4_4_EssentialExercises.osexp: Experiment file following the book with all essential exercises included. - Chapter 4_5_AdditionalExercises.osexp: Experiment file following the book with essential and additional exercises included. **Chapter 5**: This chapter is about lab setup, no online material. **Chapter 6**: This chapter is about data recording, no online material. Recorded material provided as part of chapter 7. **Chapter 7**: There should be two directories: 1. /code: containing matlab code - umeeg_ch07_additional_exercise1 -- answers to additional exercises 1 and 2 - umeeg_ch07_generate_data_allsteps -- providing an extensive version of additional exercise 1, generating data for all steps in the essential exercise. It will also create the files needed to begin chapter 8. 2. /data: containing the original EEG files - umeeg101 .vhdr (header), .vmrk (marker), .eeg (data) files for brainvision recording. - umeeg102 .bdf file for biosemi recording. - umeeg103 .vhdr (header), .vmrk (marker), .eeg (data) files for brainvision recording. - umeeg104 .vhdr (header), .vmrk (marker), .eeg (data) files for brainvision recording. - umeeg105 .bdf file for biosemi recording. - umeeg106 .bdf file for biosemi recording. - umeeg107 .bdf file for biosemi recording. - biosemi_64 channels.ced -- eeglab channel config for biosemi 64 channels - biosemi channel config.cfg -- biosemi original channel config (used for creating the .ced file). **Chapter 8**: There should be three directories: 1. /code: containing matlab code - umeeg_ch08_EssentialExercises.m -- provides step by step data for essential exercise 1 and 2, includes gratton analysis - umeeg_ch08_additional_exercises.m -- answers to additional exercises 1 and 2 and includes ICA analysis. Further generates suggested data to start with in chapter 9. 2. /data: containing 4 files for each dataset - umeeg10*_07_filtered.set EEGLAB dataset to start chapter 8 (final chapter 7 file) - umeeg10*_07_filtered.fdt EEGLAB data (part of above) - umeeg10*_08_ranICA.set EEGLAB dataset with ICA decomposition. - umeeg10*_08_ranICA.fdt EEGLAB data (part of above) 3. /eeglab-gratton-master: containing the eeglab gratton plugin (used in essential exercises) **Chapter 9**: There should be two directories: 1. /code: containing matlab code - umeeg_ch09_essential_exercises.m -- provides data for use with otherwise more graphic analysis suggested in essential exercises 1 and 2. - umeeg_ch09_additional_exercises.m -- answers to additional exercises 1 and 2. Further generates suggested data to start with in chapter 9. Note: some conditions were not available for all subjects. 2. /data: containing 14 files with pruned data - umeeg10*_10_pruned_with_ICA.set -- EEGLAB dataset based on additional exercise of the last chapter. You can also use the essential exercise generated data (similar, but _12_ and not containing ICA). - umeeg10*_10_pruned_with_ICA.fdt -- EEGLAB data for the above. **Chapter 10**: There should be two directories: 1. /code: containing matlab code umeeg_ch10_additional_exercises.m -- answers to additional exercise 2. Note: there is no code for the essential exercise since these should be run completely with the EEGLAB graphic user interface and do not result in new data. 2. /data: containing 98 files, 14 for each of 7 subjects. There's a .fdt for every .set: - umeeg10*_11_rel.set -- EEGLAB dataset with relevant epochs - umeeg10*_11_irr.set -- EEGLAB dataset with irrelevant epochs - umeeg10*_11_odd.set -- EEGLAB dataset with odd epochs - umeeg10*_11_rel_self.set -- EEGLAB dataset with relevant / self-related epochs - umeeg10*_11_rel_other.set -- EEGLAB dataset with relevant / other-related epochs - umeeg10*_11_irr_self.set -- EEGLAB dataset with irrelevant / self-related epochs - umeeg10*_11_irr_other.set -- EEGLAB dataset with irrelevant / other-related epochs *Note: these data are actually not the result from the last chapter. Due to running the entire preprocessing again while I was checking the online material, the ICA decomposition slightly changed (I think the data are a bit cleaner). However, use of the older data will make it possible to directly compare your numbers against the book.* **Chapter 11**: There should be three directories: 1. /code: containing matlab code and one image - umeeg_ch11_exporting_essential.m -- provides the output in a similar manner to the essential part of the exporting of chapter 11. - umeeg_ch11_exporting_additional.m -- provides the output as explained in the additional part of the exporting of chapter 11. - umeeg_ch11_AdditionalExercise1.m -- provides the answer to additional exercise 1. *This last file also includes a bit of bonus material related to the explore section of chapter 11. If you follow up on that part, you'll end up with a big ERP figure, which includes markers for areas that are significant with two contrasts. Whoo! ERPs.png -- Again with the bonus material, that's the figure I ended up with.* 2. /data: containing 42 files, 6 for each of 7 subjects. There's a .fdt for every .set: - umeeg10*_11_rel.set -- EEGLAB dataset with relevant epochs - umeeg10*_11_irr.set -- EEGLAB dataset with irrelevant epochs - umeeg10*_11_odd.set -- EEGLAB dataset with odd epochs *The above are the same as datasets in Chapter 10* 3. /exported: containing 6 files: *4 Excel files:* - outdat_essential.xlsx -- exported dataset as results from applying the essential track way of exporting - outdat_additional.xlsx -- exported dataset as results from applying the additional track way of exporting - outdat_additional_exportedfromcode.xlsx -- exported dataset such as can be obtained by applying additional exercise 1 way of exporting - outdat_essential_with_additional_formatting.xlsx -- like the other essential spreadsheet, but with a bit of colour added for ease of reading. Also contains the result you would obtain from following the book after the exporting part (see AveragedDataAndFx sheet). Finally, includes averages for convenient reporting. *..and 2 files exported from that social sciences stats package, whatever it was called:* - Two_way_rmANOVA.sav -- exported from spreadsheets above in typical SSSP repeated measures format, including 4 different measures as per book - Three-way-rmANOVA.sav -- exported from spreadsheet above in typical SPSS repeated measures ANOVA format, including separation of the two ROIs into a further factor (also as per book). **Chapter 12**: Concerns writing a conclusion and discussion. There are no online data. **Misc**: Contains EEGLAB. *Included as part of the online material is EEGLAB v 2021.0, which I used for most of the book (or at least the last version).* To use, extract to any directory, although if you're using your own (Windows) PC, I'd suggest extracting it to C:\EEGLAB, because that's classic. This eeglab version includes plugins for loading the BioSemi and Brain Products data, the gratton eog plugin, EEGLAB's cell-based ANOVAs, and all the default EEGLAB material. I include it here because while I have aimed to make my code as future-proof as possible, I already had to rewrite some of it over the course of writing the book: EEGLAB is a community project and sometimes functions change parameters because someone decided a new way is better. While this may be frustrating, you can of course continue to run older versions of EEGLAB, so if something doesn't work as expected, try changing the most recent one (from https://sccn.ucsd.edu/eeglab/index.php) for the one provided here.
OSF does not support the use of Internet Explorer. For optimal performance, please switch to another browser.
Accept
This website relies on cookies to help provide a better user experience. By clicking Accept or continuing to use the site, you agree. For more information, see our Privacy Policy and information on cookie use.
Accept
×

Start managing your projects on the OSF today.

Free and easy to use, the Open Science Framework supports the entire research lifecycle: planning, execution, reporting, archiving, and discovery.