https://github.com/brody-lab/trialhistory_lapses_ea
This repository contains code for generating figures for the manuscript "Trial-history biases in evidence accumulation can give rise to apparent lapses"
https://github.com/brody-lab/trialhistory_lapses_ea
Last synced: 6 months ago
JSON representation
This repository contains code for generating figures for the manuscript "Trial-history biases in evidence accumulation can give rise to apparent lapses"
- Host: GitHub
- URL: https://github.com/brody-lab/trialhistory_lapses_ea
- Owner: Brody-Lab
- License: apache-2.0
- Created: 2023-09-09T11:09:59.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-20T17:04:19.000Z (over 2 years ago)
- Last Synced: 2025-04-02T12:37:49.480Z (over 1 year ago)
- Language: MATLAB
- Homepage:
- Size: 144 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Trialhistory_lapses_EA
[](https://doi.org/10.5281/zenodo.10161052)
## Overview
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
## Usage Instructions
To reproduce the figures presented in the paper, follow these steps:
1. Clone this repository to your local machine using your preferred method.
2. Download the required data from the figshare link provided above.
3. 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`)
4. 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.
## Accumulator Model Fits
The fits to accumulator models were performed using code developed within the Julia package available at [https://github.com/Brody-Lab/PulseInputDDM](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 diksha.gupta@ucl.ac.uk.
## Software
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.