Main content

Home

Menu

Loading wiki pages...

View
Wiki Version:
# Instructions for use # This component contains the analysis and plotting scripts used for our paper. Below are brief descriptions of what each script does (roughly listed in the order you’d want to run them). ## Analysis scripts ## **SubList.mat:** A .mat file that contain the list of subjects with usable data. **compileData:** compiles relevant variables from raw behavior files (one file for each block of the task) into a single file for each participant. Note: the compiled behavior files are already available in the ‘Compiled Data' component. **fitModel:** fit mixture model to response errors using MemToolbox (http://visionlab.github.io/MemToolbox/). **summarizeParamEsts:** summarize the parameter estimates (for all subjects) obtained using fitModel in a single matrix. **SpatialEM:** runs the spatial encoding model on alpha-band (8-12 Hz) activity. **SpatialEM_AllFs:** runs the spatial encoding model on 1-Hz frequency bands from 4-50 Hz. **SpatialEM...Permute:** SpatialEM scripts ending in ‘permute’ runs the relevant spatial encoding model routine 1000 times, each time with the location bin labels permuted within each train/test set. The output of these scripts is the basis for the permutation tests that we report in the paper. **calculateSlopes...** cacluate CTF slope matrix for both the unpermuted (output of SpatialEM...) and permuted (output SpatialEM_...Permute) data. **PermTest_...** uses the output of the calculateSlopes scripts to run the permutation test using the CTF slope metric. **bootstrapCTFSlopes:** bootstrap standard error bars across time (see Fig 2b). **baselineEOG:** baseline the EOG data. ## Plotting functions ## Once the relevant functions above have been run, the data panels in Figure 2 can be produced using these functions: **plotTFs_CurrBio:** plot the average time-resolved CTF (Fig 2a). **plotSlope:** plot the time-resolved slope of CTF (Fig 2b). **plotTFs_ByBin_TimeResolved_CurrBio:** plot the time resolved CTF for each bin separately (Fig 2c). And other plots: **plotTimexFreq_CurrBio:** plot CTF slope as a function of time and frequency (Fig S1) **plotEyeBias:** plot the average baselined HEOG as a function of position bin. Uses output from baselinedEOG.m ## Sub-functions called by other scripts ## **eegfilt:** EEGLAB’s filtering function (http://sccn.ucsd.edu/eeglab/; Delorme & Makeig, 2004). Called by the SpatialEM scripts for filtering data. **shadedErrorBar:** used for generating shaded error bars (retrieved from: https://www.mathworks.com/matlabcentral/fileexchange/49382-pict--particle-image-characterization-tool/content/PICT/shadedErrorBar/shadedErrorBar.m)
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.