This folder contains all segmented data (see below) pertinent to the OpenBCI_GammaProject. For details on protocol, methods and results, please refer to the paper (preprint availble here).
- Raw Data: as obtained directly from the EEG recording systems (OpenBCI and BrainProducts) and the stimulus presenting software (MonkeyLogic). The data for each subject is stored in a separate folder inside the directory
data/rawData
. Currently, the raw data of only one subject has been added as an example. All the analyses from our study can be replicated using only segmented data (see below). - Segmented data: Segments of data around the stimulus onset are extracted and saved from Raw Data. The data for each subject is stored in a separate folder inside the directory
data
. Each protocol for every subject has the following subfolders: 2a.extractedData
: this contains para-EEG data like monkeylogic data and digital events data. 2b.segmentedData
: this contains electrode wise data for each protocol and some auxiliary information in lfpInfo.mat.
The codes are divided into two folders : main
and helper
. All subfolders in this folder must be added to MATLAB path. Other dependencies include Chronux toolbox and EEGLab.
-
To generate Segmented Data from Raw Data, run
runExtractAllProtocolsOBCIGammaProject.m
from themain
folder. (To generate line noise corrected version of the same, runrunExtractAllProtocolsOBCIGammaProjectNoiseCorrected.m
). The source folder and output folder paths must changed according to the location in which the data folders are present before running these programs. -
To perform spectral analysis on the Segmented Data, run
analyseAllData.m
from themain
folder. (analyseAllDataNoiseCorrected.m
for the line noise corrected version of the same). This program outputs a struct which is necessary to run the subsequent figure codes. The source folder path must changed according to the user's preference before running these programs. -
The figure codes include the scripts for each figure independently (both main figures and supplementary figures), which can be run independently after the first two steps.
This folder consists of the stimuli that were presented to the subjects and the files needed to run NIMH MonkeyLogic (the sfOriConditions.txt is the conditions file and the timing_script_1.m is the instruction file that determines the sequence of images to be presented and event markers to send).