Skip to content

Repository files navigation

Task

The TreasureHunt training can be found in the 'Practice' folder. To run the practice, run the file: information_gathering_prac.m. There are two practices, one without long and short horizons across trials (type '1' when prompted in 'Practice Num') and one with the different hotrizons ('2'). There is a PDF file in the Practice folder which outlines instructions to provide to participants.

The main task is located in the main folder and can be started by running the information_gathering.m file. The first input is the subject number, the second one is the run. The task is coded for 4 runs but can be easily adapted for more.

Analysis Code

  1. Behavioural (Behavioural_analysis)

behave_regression.m: conduct behavioural regression (use behaviour.csv)

behave_plots.m: create plots and do behvioural analysis on horizon length influencing draws (horizon_data_all_subjects.csv)

  1. Main MRI analysis (Main_MRI_analysis)

TrHu_1stL_DCS.m: 1st level analysis for decision-commitment signal, controlling for response (1 script)

TrHu_1stL_bigModel.m: 1st level analysis for ESD(d-1), delta-ES, urgency, controlling for total current evidence (this one is for the PPI)

TrHu_1stL_bigModel_withHorizon.m: model above but controlling for horizon length

TrHu_1stL_bigModel_withNewHorizon.m: big model but controlling for collapsing bounds (inverse of trial number)

TrHu_2ndL.m: general function for running 2nd level (also for PPI). Need to take analysis name from 1st levels above and include in function, e.g., TrHU_2ndL('bigModel').

  1. Bar plots accompanying MRI analysis (Single_trial_plots)

TrHU_1stL_single_trial1.m: conducts analysis on trial-by-trial cue presentation, so we can see brain activity at each time point.

DCS_plot_trial_betas.m: for plotting figure 2B

Totevminus_plot_perTrial_betas.m: for plotting figure 3B

deltaEV_plot_per_trial_betas.m: for plotting Figure

urgency_plot_trial_betas.m: for plotting figure 4B

  1. PPI

TrHu_1stL_bigModel.m: 1st level analysis for ESD(d-1), delta-ES, urgency, including total current evidence (from Main MRI analysis)

RUN_extractVOI.m: obtain volume of interest from total ev- to be used in PPI analysis

TrHu_1stL_ppi.m: Conducts PPI analysis

About

Information gathering experiment (MR)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages