This repository contains Psychtoolbox/MATLAB scripts to run a Keep Track task and generate timing/event files for downstream analysis.
The color–shape switch task is a cognitive task used to assess memory updating in human participants. Working memory updating is a primary executive function of the human brain.
These scripts were written and implemented as part of the BBSRC-funded Interactive Brain Project at Aston University, Birmingham, UK.
Authors: Kirandeep Kaur and Daniel J Shaw
keep_track_task.mRuns the keep track task using a VPixx 4-button response box. The task can be run in scanner settings, such as MRI, MEG or OPM- MEG, as well as in non-scanner settings with appropriate response-system modifications.
Task specifications:
- number of blocks: 9
- number of trials/block: 15 (each word presentation is considered a trial)
- interstimulus interval: jittered between 1-2s
- maximum trial duration: 4s
- categories: Distances, Metals, Colors, Relatives, Animals, Countries
- Duration of word display: 1.5s
create_timing_files/Contains scripts to:
a) Generate a trial information table containing trial types, displayed cues and correct responses.
b) Generate timing/event files containing trial onset times and durations (relative to the first MRI trigger pulse) and weights.
These event files can be used for downstream fMRI/MEG/OPM task modelling.
Miyake, A., Friedman, N. P., Emerson, M. J., Witzki, A. H., Howerter, A., & Wager, T. D. (2000). The unity and diversity of executive functions and their contributions to complex “frontal lobe” tasks: A latent variable analysis. Cognitive Psychology, 41(1), 49–100. https://doi.org/10.1006/cogp.1999.0734
Diamond, A. (2013). Executive functions. Annual Review of Psychology, 64, 135–168. https://doi.org/10.1146/annurev-psych-113011-143750