Git Product home page Git Product logo

lkfink / pupiltutorial Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 2.0 34.83 MB

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

Home Page: https://link.springer.com/article/10.3758/s13428-023-02098-1

License: MIT License

MATLAB 1.80% HTML 98.20%
convolution correlation-analysis detrended-fluctuation-analysis dynamic-time-warping pupil pupillometry recurrence-quantification-analysis regression single-trial-analysis time-series

pupiltutorial's Introduction

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.

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

pupiltutorial's People

Contributors

lkfink avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.