Main content

Home

Menu

Loading wiki pages...

View
Wiki Version:
# Instructions for use # This component contains the analysis and plotting scripts for Experiment 2b. The scripts are organized into three folders (AnalysisScripts and AnalysisScripts_EyePos). Under the heading for each folder there are brief descriptions of what each script does (roughly listed in the order you'd want to run them). ## AnalysisScripts ## This folder contains all the scripts to run the main analyses reported in the paper. **SubList.mat:** a .mat file that contains the list of subjects with usable data. **compileBehavior:** 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. **fitSwapModel:** fit Bays swap model to response errors using MemToolbox (http://visionlab.github.io/MemToolbox/). **summarizeParamEsts:** summarize the parameter estimates (for all subjects) obtained using fitSwapModel in a single matrix. **SpatialEM:** runs the spatial encoding model on alpha-band (8-12 Hz) activity. **SpatialEM_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_Alpha:** calculate CTF slope metric for both the unpermuted (output of SpatialEM) and permuted (output of SpatialEM_Permute) data. **PermTest_T_Alpha:** used the output of the calculateSlopes script to run the permutation test using the CTF slope metric. **PermTest_NT_Alpha:** same thing for the non-target CTFs. **bootstrapSlopes:** bootstrap standard error bars across time. **resamplingTest_TvsNT:** does the resampling test to test for differences in CTF slope between the target- and non-target-CTF. Uses output from bootstrapSlopes. **baselinedEOG:** baseline the EOG data. ### Plotting functions ### **plotHEOGBias:** plot the average baselined HEOG as a function of position bin. Uses output from baselinedEOG.m **plotSlopes:** plot the time-resolved slope of target- and non-target-CTFs (Fig 3a'). ### 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) ## AnalysisScripts_EyePos ## This folder contains the scripts used to analyzed the eye tracking data reported in Figure S4 in the Supplemental Information. **EyeTrackSubList:** a .mat file that contains the list of subjects with usable eye tracking data. **EyeTrack_processData:** read in eye tracking data, mark trials with bad eye tracking data (i.e., eye tracker lost the pupil), drift correct the data, save to a file. **EyeTrack_AveByBin:** average eye data for each position bin. **plot_SuppEyeFig:** plot data as in Figure S4 in Supplemental Information.
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.