Main content

Home

Menu

Loading wiki pages...

View
Wiki Version:
The files in this folder contain MATLAB code for analysis of the EEG data, and R code for the statistical analyses and analysis of the behavioral data. Most fall under the MIT license (as published on [the Open Science Framework page](https://osf.io/bnwap/)), but please note the exceptions in the `lib` subfolder (documented below). * `MFBrain.Rmd`: R notebook with analysis code that will reproduce all of the statistical results in the paper. * `MFBrain.nb.html`: HTML output of the notebook, meant for viewing in any browser. All of the MATLAB functions documented below are called from within the following top-level master scripts: * `MFBrain_master_reproduce.m`: starts from the provided (fully processed) EEG data and statistics files, and reproduces the plots in the paper. * `MFBrain_master_recompute.m`: starts from the preprocessed data and recomputes the ERP and time-frequency results. Also contains the code to write out (new) statistics files and produce the plots. # `/func` Functions particular to this project: * `MFBrain_baseline.m`: perform dB conversion and baseline data for the theta power analyses. * `MFBrain_combine_level1_data.m`: load in data (from `/data/EEG/level1`) and combine data files produced by `MFBrain_level1.m` * `MFBrain_figure2.m`, `MFBrain_figure3.m`, `MFBrain_figure4.m`, `MFBrain_figure5.m`: reproduce the plots in the paper. N.B. some minor editing of the plots in the paper was done by hand (to adjust their position, add legends, etc.). * `MFBrain_group_stats.m`: extract data and write to text files for use with statistical software. The text files are written to `data/EEG/statistics`, analyzed with `src/MFBrain.Rmd`, and plotted with the `MFBrain_figure` functions. * `MFBrain_lateralization_index.m`: calculate the lateralization index used for the alpha power analyses. * `MFBrain_level1.m`: compute ERPs and time-frequency data (trial-averaged power and inter-trial phase clustering). For every participant, loads a fully preprocessed `.mat` data file from `data/EEG/processed` and saves the output to `data/EEG/level1`. See the `README` files in the `/data` directory for more info. # `/lib` Source code that's _not_ particular to this project: * `brewermap.m`: Used to produce the colormap for the theta inter-trial phase clustering results. This code was written by others and falls under a different license; see `brewermap_LICENSE.TXT`. * `/eeglab13_0_1b`: [EEGLAB](https://sccn.ucsd.edu/eeglab/index.php) version 13_0_1b was used to analyze and plot the EEG data. This code was written by others and falls under a different license; see `/eeglab13_0_1b/eeglablicense.txt`. * `within_error.m`: compute confidence intervals corrected for within-subject designs. * `within_error_diff.m`: compute confidence intervals for the difference between paired observations.
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.