GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - lkfink/pupilTutorial: A code tutorial to accompany https://link.springer.com/article/10.3758/s13428-023-02098-1

BranchesTags
Open more actions menu

Latest commit

 

History

27 Commits
27 Commits

Folders and files

NameName
Last commit message
Last commit date
helperFunctions
helperFunctions
 
 
Fink_pupilCodeTutorial_interactive.html
Fink_pupilCodeTutorial_interactive.html
 
 
Fink_pupilCodeTutorial_interactive.mlx
Fink_pupilCodeTutorial_interactive.mlx
 
 
Fink_toydata.mat
Fink_toydata.mat
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

Tutorial to accompany Fink et al. (2023)

This repository contains code and toy data associated with the paper:

Fink, L., Simola, J., Tavano, A., Lange, E. B., Wallot, S., & Laeng, B. (2023). From pre-processing to advanced dynamic modeling of pupil data. Behavior Research Methods. https://doi.org/10.3758/s13428-023-02098

Please note that for users who do not have MATLAB, all code can be viewed in the .html file of this repository.
Alternatively, users can run all MATLAB code on a virtual machine in a public Code Ocean capsule, available here: https://codeocean.com/capsule/1209338/tree/v1

Contents

Main interactive tutorial script

Fink_pupilCodeTutorial_interactive.mlx is the main tutorial script. It contains text, MATLAB code, and interactive user interfaces for understanding some fundamentals of time series and signal-to-signal analyses.

Fink_pupilCodeTutorial_interactive.html is an html print out of the code and figures in the above .mlx script, for those who want to browse online, or who do not have MATLAB. Note that the interactive controls are not available in the html version.

Fink_toydata.mat contains the toy data set for the tutorial.

Helper functions

The helperFunctions folder contains custom and third-party functions necessary for running the interactive tutorial.

  • genPRF.m is a function to generate a pupillary response function, called in the interactive script.

  • getFFT.m is a function to calculate the Fast Fourier Transform of an input signal.

  • samps2secs.m is a function to convert samples to seconds (useful for plotting).

  • fdeconc.m is a function to compute fast deconvolution. https://www.mathworks.com/matlabcentral/fileexchange/5465-fast-deconvolution

  • movcorr.m is a function to compute a moving window correlation. https://www.mathworks.com/matlabcentral/fileexchange/65342-movcorr-x-y-k-varargin-compute-windowed-correlation-coefficient

  • MDRQA.m is a function for recurrence quantification analysis

  • mdcrqa.m is a function for cross-recurrence quantification analysis

  • dcrp.m is a function for computing a cross-recurrence profile.

The latter three functions were written by Sebastian Wallot. Please see the citation in the code for proper reference.

Dependencies

This code was written in MATLAB verion 9.11.0.1769968 (R2021b) and relies on the following toolboxes:

  • Signal Processing Toolbox: Version 8.7
  • Statistics and Machine Learning Toolbox: Version 12.2
  • Symbolic Math Toolbox: Version 9.0

Development machine details: Operating System: macOS Version: 11.6.6 Build: 20G624 Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode

Running this code

Download this Github repository. Open Fink_pupilCodeTutorial_interactive.mlx.

As long as all the file structure and names in this repository have not been altered, MATLAB should find the required data and functions and all should run without problem.

Should trouble occur, or bugs be found, please open an issue.

Citation

If using anything from this repository, cite:

Fink, L., Simola, J., Tavano, A., Lange, E. B., Wallot, S., & Laeng, B. (2023). From pre-processing to advanced dynamic modeling of pupil data. Behavior Research Methods. https://doi.org/10.3758/s13428-023-02098

UPDATES / Additional resources

Since this publication, we have given a 4 hour Pupillometry Methods Workshop at the University of Konstanz. All of the materials from that workshop are linked here:

https://beatlab.mcmaster.ca/KonstanzWorkshopSummary.html

About

A code tutorial to accompany https://link.springer.com/article/10.3758/s13428-023-02098-1

link.springer.com/article/10.3758/s13428-023-02098-1

Topics

convolutioncorrelation-analysisdetrended-fluctuation-analysisdynamic-time-warpingphase-coherencepupilpupillometryrecurrence-quantification-analysisregressionresponse-functionsingle-trial-analysistime-series

Resources

Readme
MIT license
Activity

Stars

7 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.