This repository contains the code necessary for generating figures related to the manuscript titled "Trial-history biases in evidence accumulation can give rise to apparent lapses."
The associated data for this manuscript can be found at dx.doi.org/10.6084/m9.figshare.24113793
To reproduce the figures presented in the paper, follow these steps:
-
Clone this repository to your local machine using your preferred method.
-
Download the required data from the figshare link provided above.
-
Edit the following paths in the
master_startup.m
file:- Base directory (
path.base
) - Data directory (
path.data_save
) - Source data directory (`path.mat_save')
- Directory for saving figures (
path.fig_save
)
- Base directory (
-
Run the
make_figures.m
script to generate the main figures. Supplementary figure code can be found in their respective folders.
This should take less than 10 minutes to run on a Mac with 96GB memory.
The fits to accumulator models were performed using code developed within the Julia package available at https://github.com/Brody-Lab/PulseInputDDM.
If you are interested in using this code or have any questions, please feel free to get in touch with us at [email protected].
This code has been tested with Matlab R2020a on Mac OS 13.2.
For any inquiries related to the manuscript or this repository, don't hesitate to reach out.