Simultaneous single-unit recordings from five frontal and basal ganglia areas, with behaviour, and video tracking from rats performing a cost-benefit decision task.
Four rats (gh001, gh009, gh010, oh011) performed a cost-benefit decision task in which they accepted or rejected offers that varied in reward size and effort, while single units were recorded simultaneously from up to five areas of the right hemisphere:
- medial/ventral orbitofrontal cortex (MO/VO)
- anterior cingulate cortex (ACC)
- dorsomedial striatum (DMS)
- ventral pallidum (VP)
- subthalamic area (STA; labelled "stn" in the file names)
Recordings were made over 71 days between 4 December 2020 and 9 January 2022 (oh011: 4-17 Dec 2020, 14 days; gh001: 1-18 Jun 2021, 17 days; gh009: 19 Dec 2021 - 9 Jan 2022, 21 days; gh010: same period, 19 days).
70 of these days are used in the analyses (gh001 17, gh009 20, gh010 19, oh011 14). After the firing-rate criterion (>= 0.1 Hz) the analyses include 2,661 single units (MO/VO 429, ACC 505, DMS 1,184, VP 132, STA 411).
Each trial is divided into task epochs: PRE (pre-cue), CUE, NP_EX (nose-poke exit / action), CORR1 and CORR6 (corridor light gates 1 and 6) and DEL (pre-reward delay, accepted trials only).
Sampling rates
Electrophysiology 20 kHz; behavioural events (nose pokes, light gates, magazine entries) 1 kHz; overhead video and its DeepLabCut tracking 100 Hz; firing rates are binned at 25 ms.
File formats
Processed tables (inputs to the statistics and figures):
480152_spike_times.feather - firing rates of every unit (25 ms bins, causal exponential smoothing with tau = 50 ms) per epoch and trial, accepted trials (0.9 GB)
828817_spike_times.feather - the same for rejected trials (0.35 GB)
382702_canonical_corr.feather - cross-validated canonical correlation analysis (CCA) between every pair of the five areas, per session, epoch and canonical dimension, with a permutation null
746484_canonical_corr.feather - CCA over the decision window of accepted/rejected trials
624290_regression.feather - decoding of reward, effort, trial number and running speed from the canonical components
258066_regression.feather - decoder trained on accepted + rejected trials, scored separately for each
258066_xy_table.feather - running speed per trial, epoch and bin for the accepted/rejected decoder
781039_replacement_summary.csv summary of the replacing task variables
Source files used to regenerate the running-speed table:
958690_DinChannels.pbz2, 958690_FineBehaviour.pbz2, 958690_TrialBehaviour.pbz2, 958690_SpikeStats.pbz2 event channels, behavioural state sequences and trial tables of all recording stages
809107_TrialBehaviour.pbz2 - trial-by-trial behaviour of the implanted animals
773894_xy_tables/ - 663 DeepLabCut tracking tables (animal x/y position in pixels, 100 Hz), one per stage
General conventions
Every row of the tables is identified by subject_day (animal and recording date, e.g. gh001_210614), epoch, and area_pair. Area pairs are written <A>_<B>, with the first name as area A and the second as area B: acc = anterior cingulate cortex, mo = medial/ventral orbitofrontal cortex, str = dorsomedial striatum, stn = subthalamic nucleus, vp = ventral pallidum. Epochs are PRE (pre-cue), CUE, NP_EX (nose-poke exit), CORR1 and CORR6 (corridor light gates 1 and 6), DEL (pre-reward delay, accepted trials only), and DEC (decision window, project 746484 only).
bin. bin is the integer index of the epoch window. It is 0 for PRE, 1 for CUE, 2 for NP_EX, 3 for CORR1, 4 for CORR6 and 5 for DEL. It is always 0 in the decision-window table, where there is a single window. bin and epoch therefore carry the same information. Each window contributes one time bin. Windows run from the epoch event onset: PRE 300 ms, CUE 600 ms, NP_EX 500 ms, DEL 500 ms, and CORR1/CORR6 500 ms centred on the light-gate crossing (250 ms either side).
rank. rank is the index of the canonical dimension, starting at 0.
- In the canonical-correlation tables, rank 0 is the dimension with the strongest correlation in the training data. Rank 1 is the next, and so on, up to rank 9 (at most 10 dimensions). The number of ranks per session, epoch and area pair is at most the number of units in the smaller area.
- Special value
rank = -1. In the canonical-correlation tables,rank = -1marks a placeholder row for a session, epoch and area pair with no analysable data. For these rowsn_unit_A = n_unit_B = 0and every statistic column is NaN. Drop them before analysis (the project scripts filterrank != -1). - In the regression tables,
rank = -1is the model intercept (predictor = 'Intercept'). Rows withrankfrom 0 to 9 are the coefficients of the corresponding canonical component in each area (cc_area_A_<rank>andcc_area_B_<rank>).
n_trial_train (746484 only) is the number of trials used to fit the canonical weights in each cross-validation fold, averaged across the 10 folds, so it is not an integer. n_trial_val is the same for the held-out trials. Both repeat across ranks within a session, epoch and area pair, and are NaN on placeholder rows. NaN values. In the canonical-correlation tables, NaN occurs only on rank = -1 placeholder rows. The regression tables contain no NaNs.
Velocity
- Raw tracking (
773894_xy_tables/). These are the DeepLabCut x/y positions in video pixels at 100 Hz, one file per recording stage. - Calculation. For each trial window the position is smoothed with a 0.1 s (10-frame) moving average and sampled every 0.1 s, giving 10 Hz. Successive samples are differenced, converted from pixels to cm and divided by 0.1 s. The scale factors are 179 cm per 1,020 px along the apparatus (x) and 17.6 cm per 130 px across it (y). Speed is √(vx² + vy²), and the trial value is the mean speed over the window.
- Units and range. The
velocitycolumn is therefore running speed in cm/s, non-negative, and it is a window mean, not a signed velocity. The values run from about 0.02 to 763 cm/s, with a median of 2.7 cm/s. The code applies no outlier or tracking-likelihood filter, so the extreme values are probably tracking errors. - Which tables. In
258066_xy_table.feather,velocityis the speed for one trial (trial_idx) in one epoch window (bin) of one recording stage (stage).trial_groupisacceptorreject. In the regression tables,outcome = 'velocity'is this same quantity.
Code requirements
Python 3.10; numpy 1.24.4, pandas 1.5.3, scipy 1.11.4, statsmodels 0.14.5, matplotlib 3.8.4, seaborn 0.13.2, pingouin 0.5.5, pyarrow 21.0.0, scikit-image 0.22.0, pillow 11.3.0, ray 2.49.1 (environment.yml). About 10 GB of memory for the supplemental-figures script (it loads the 0.9 GB unit table); run times are under a minute for three of the scripts and about 15 minutes for the first run of the fourth (later runs use cached results in 'output/'). Input data for the code must match the files in this dataset (names and columns as supplied). Large files (the tracking tables, DinChannels, and the two unit tables; ~5 GB) are provided separately from the code repository.
We welcome researchers wishing to reuse our data to contact the creators of datasets. If you are unfamiliar with analysing the type of data we are sharing, have questions about the acquisition methodology, need additional help understanding a file format, or are interested in collaborating with us, please get in touch via email. Our current members have email addresses on our main site. The corresponding author of an associated publication, or the first or last creator of the dataset are likely to be able to assist, but in case of uncertainty on who to contact, email Ben Micklem, Research Support Manager at the MRC BNDU.
Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
This is a human-readable summary of (and not a substitute for) the licence.
You are free to:
Share — copy and redistribute the material in any medium or format
Adapt — remix, transform, and build upon the material for any purpose, even commercially.
This licence is acceptable for Free Cultural Works. The licensor cannot revoke these freedoms as long as you follow the license terms. Under the following terms:
Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
ShareAlike — If you remix, transform, or build upon the material, you must distribute your contributions under the same licence as the original.
No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the licence permits.

