Pupil-linked phasic arousal evoked by violation but not emergence of regularity within rapid sound sequences Sijia Zhao Maria Chait 10.5522/04/9118226.v1 https://rdr.ucl.ac.uk/articles/dataset/Pupil-linked_phasic_arousal_evoked_by_violation_but_not_emergence_of_regularity_within_rapid_sound_sequences/9118226 <div>This repository contains all raw and processed pupillometry and behavioural data and the analysis codes to replicate the figures in Zhao et al. (2019) Nature Communication.</div><div>See https://github.com/sijiazhao/RegRand for more analysis codes, including detailed instructions for replicating the figures from the manuscript.</div><div><br></div><div># OVERVIEW</div><div>The paper showed pupillometry and behavioural data for 7 experiments. Their indices amd number of subjects are: </div><div>* Expt1A: N=18</div><div>* Expt1B: N=14</div><div>* Expt2: N=18</div><div>* EXPT3A: N=14</div><div>* EXPT3B: N=14</div><div>* Expt4A: N=12</div><div>* Expt4B: two groups of N=15</div><div><br></div><div># DATA STRUCTURE</div><div><br></div><div>## Raw data</div><div>In each experiment's subfolder, you can find:</div><div><br></div><div>1. Raw eyetracking data in edf. Normally the file format is 'log_S1_Block1.edf', showing data for subject S1's block 1. </div><div>...* Special note #1: Some experiments have slightly different filname formatting, for example, 'log_S1_Aud_pat10dur50_Block1A' in Expt2. The extra string '_Aud_pat10dur50_' is identical across all subjects and all blocks, so it is very easy to ignore this extra string.</div><div>...* Special note #2: The raw eyetracking data in Expt 1A are lost, but the extracted data--sampling asc and events asc--are available. </div><div><br></div><div>2. Raw behaviour data in .mat. This file has identical name with (1). It contains: </div><div>...* variable 'design': a structure for the experimental information for this block (e.g. condition name, number of blocks etc.)</div><div>...* variable 'results': a structure of block trial information and key press data</div><div>...* variable 'stimuli': a cell array of all stimuli</div><div><br></div><div><br></div><div>## Processed data</div><div>All processed data are in .mat format. There are three types of processed data:</div><div><br></div><div>1. Processed data - Behaviour: Each experiment had one file, e.g., 'behav_expt1A.mat'. This file contains condition list, hit rate, false alarm rate and RT (if applicable). For Expts 1A, 1B, 2, 4A, 4B, these results are for gap detection. For Expt3A and Expt3B, the results are for transition detection. For Expt3A, the data is saved in a structure where RT is also available. Use the script 'plot_behav_expt3A.m' to plot behavioural data.</div><div><br></div><div>2. Processed data - Pupil diameter response: Each experiment had one file, e.g., 'pupil_expt1A_PDRatTrans.mat', containing all subjects' pre-processed pupil diameter data (P) against the time relative to transition. All data are sorted by condition. Gaze positions (G) and blink data (B) are also available. To reproduce the figures, run MATLAB script 'makefig_PDR_AllinOne.m'.</div><div><br></div><div>3. Processed data - Pupil dilation event: Pupil dilation/constriction event data. Only Expt1(1A+1B) and Expt4B(two groups) are available. To reproduce the figures, run MATLAB script 'makefig_PDevent.m'. Each experiment contains 6 files:</div><div>...* 1 file like 'PDevent_expt1.mat': Pupil diameter data used to extract pupil dilation and constriction events. This is almost identical to 'pupil_expt1A_PDRatTrans.mat', except its data have much longer baseline (3-second pre transition) to avoid edging effect when ploting pupil event results.</div><div>...* 4 files like 'pdEvent_expt1_PC_75.mat': Data for raster plot. 'PC' means 'Pupil Constriction' ('PD', pupil dilation), while the last number '75' means the event duration threshold as 75ms ('300', 300ms as threshold). </div><div>...* 1 file like 'pdRate_expt1.mat': Convolved rate for pupil dialtion/constriction events for two different thresholds (75ms, 300ms).</div><div><br></div><div><br></div><div>## Codes</div><div>Analysis codes for replicating the figures (PDR and pupil dilation events) are available along with processed data.</div><div>In order to run the time-series statsitical analysis, you must install the MATLAB package for EEG analysis 'fieldtrip' (http://www.fieldtriptoolbox.org/). You can find more analysis code on https://github.com/sijiazhao/RegRand or contact Sijia Zhao (sijia.zhao.10@ucl.ac.uk).</div><div><br></div><div>Special note: Before running the script, please make sure to change the directory of the processed data. </div><div>1. Behaviour: run 'plot_behav_expt3A.m' which will output Expt3A's behavioural result. This code can be applied to other experiments too.</div><div>2. Plot PDR: run 'makefig_PDR_AllinOne.m' which will output all 7 experiments' PDR result.</div><div>3. Plot pupil dilation/constriction event rates: run 'makefig_PDevent.m' which plots Figure 3 (Expt1) and Supplementary Figure 3 (Expt4B) including raster plot, convolved rate for both pupil dilation and pupil constriction.</div><div>4. Plot Figure 7 Relationship between RT and the pupil dilation response: run 'makefig_Expt3A_PDRsortedbyRT.m'. </div><div><br></div><div><br></div><div>## Stimulus examples</div><div>This folder includes audio files for example stimuli used all experiments.</div><div><br></div><div>Examples are grouped by experiment. One example is presented for each condition. Note that these are examples for reference only (actually presented stimuli were generated anew for each subject and each trial).</div><div>1. The subfolder 'Expt1' includes one example wav file of each of the five conditions used in Experiments 1A and 1B: STEP, CONST, REG10, REG10-RAND20, RAND20, and RAND20-REG10.</div><div>2. The subfolder 'Expt2' includes one example of each of the nine conditions used in Experiment 2: REG10, REG10-RAND10, REG10-RAND10d, REG10-RAND20, RAND10, RAND10-REG10, RAND10-REG10d and RAND20, RAND20-REG10.</div><div>3. The subfolder 'Expt3' includes one example of each of the five conditions used in Experiment 3A and 3B: STEP, CONST, REG10, REG10-RAND20, RAND20, and RAND20-REG10.</div><div>4. The subfolder 'Expt4A' includes one example of each of the seven conditions used in Experiment 4A RAND20-REG1, RAND20-REG10, RAND20, STEP, CONST, REG10, REG10-RAND20.</div><div>5. The subfolder 'Expt4B' includes one example of each of the five conditions used in Experiment 4B: RAND20, RAND20-REG1, RAND20-REG2, RAND20-REG5, RAND20-REG10.</div> 2019-08-19 09:02:47 Pupillometry Prediction Error Unexpected Uncertainty Norepinephrine Neuroscience