Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.

Pupil preprocessing in Matlab

Preprocess EyeLink pupillometry data using the FieldTrip toolbox Open the pupilTutorial.ipynb for the full Jupyter notebook (see

Several of the functions you'll need, for edf2asc conversion and reading in asc files, can be found in my Tools repo Make sure to download all of them, and to ensure the edf2asc is executable by nagivating to the path with the file in Terminal, and typing chmod +x edf2asc.

The first section of the code is specific to EyeLink (edf) files. See here for a similar approach, but using files from SMI eyetracker (which have to first be converted using BeGaze).

If you use this code, please cite the corresponding paper: Urai, A.E., Braun, A. & Donner, T.H. Pupil-linked arousal is driven by decision uncertainty and alters serial choice bias. Nature Communications 8,14637 (2017). DOI: 10.1038/ncomms14637

Don't hesitate to get in touch (anne.urai [at] gmail [dot] com) if you have any questions.


Preprocess EyeLink pupillometry data using the FieldTrip toolbox



No releases published


No packages published