<?xml version="1.0"?>
<response><xml version="1.0" encoding="UTF-8"><resource xmlns="http://datacite.org/schema/kernel-4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4/metadata.xsd"><identifier identifierType="DOI">10.60964/rnd-1m60-zh48</identifier><creators><creator><creatorName nameType="Personal">H&#xE4;rmson O</creatorName><givenName>Oliver</givenName><familyName>H&#xE4;rmson</familyName><nameIdentifier nameIdentifierScheme="ORCID" schemeURI="https://orcid.org">https://orcid.org/0000-0003-0556-1539</nameIdentifier></creator><creator><creatorName nameType="Personal">Grennan I</creatorName><givenName>Isaac</givenName><familyName>Grennan</familyName></creator><creator><creatorName nameType="Personal">Perry B</creatorName><givenName>Brook</givenName><familyName>Perry</familyName></creator><creator><creatorName nameType="Personal">Toth R</creatorName><givenName>Robert</givenName><familyName>Toth</familyName><nameIdentifier nameIdentifierScheme="ORCID" schemeURI="https://orcid.org">https://orcid.org/0000-0003-4531-3337</nameIdentifier></creator><creator><creatorName nameType="Personal">Walton ME</creatorName><givenName>M E</givenName><familyName>Walton</familyName><nameIdentifier nameIdentifierScheme="ORCID" schemeURI="https://orcid.org">https://orcid.org/0000-0003-0117-2894</nameIdentifier></creator><creator><creatorName nameType="Personal">Manohar S</creatorName><givenName>Sanjay</givenName><familyName>Manohar</familyName><nameIdentifier nameIdentifierScheme="ORCID" schemeURI="https://orcid.org">https://orcid.org/0000-0003-0735-4349</nameIdentifier></creator><creator><creatorName nameType="Personal">Sharott A</creatorName><givenName>Andrew</givenName><familyName>Sharott</familyName><nameIdentifier nameIdentifierScheme="ORCID" schemeURI="https://orcid.org">https://orcid.org/0000-0002-1594-3349</nameIdentifier></creator></creators><titles><title xml:lang="en">Simultaneous single-unit recordings from five frontal and basal ganglia areas, with behaviour, and video tracking from rats performing a cost-benefit decision task.</title></titles><resourceType resourceTypeGeneral="Dataset">Simultaneous single-unit recordings from five frontal and basal ganglia areas, with behaviour, and video tracking from rats performing a cost-benefit decision task.</resourceType><publisher>University of Oxford</publisher><publicationYear>2026</publicationYear><dates><date dateType="Issued">2026</date></dates><language>en</language><rightsList><rights rightsURI="https://creativecommons.org/licenses/by-sa/4.0/legalcode">Creative Commons Attribution Share Alike 4.0 International</rights></rightsList><descriptions><description xml:lang="en" descriptionType="TechnicalInfo"><![CDATA[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 (&gt;= 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 ratesElectrophysiology 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 formatsProcessed tables (inputs to the statistics and figures):&nbsp; &nbsp; &nbsp;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)&nbsp; &nbsp; &nbsp;828817_spike_times.feather - the same for rejected trials (0.35 GB)&nbsp; &nbsp; &nbsp;382702_canonical_corr.feather - cross-validated canonical correlation analysis (CCA) between every pair of the five &nbsp;areas, per session, epoch and canonical dimension, with a permutation null&nbsp; &nbsp; &nbsp;746484_canonical_corr.feather - &nbsp;CCA over the decision window of accepted/rejected trials&nbsp; &nbsp; &nbsp;624290_regression.feather - decoding of reward, effort, trial number and running speed from the canonical components&nbsp; &nbsp; &nbsp;258066_regression.feather - decoder trained on accepted + rejected trials, scored separately for each&nbsp; &nbsp; &nbsp;258066_xy_table.feather - running speed per trial, epoch and bin for the accepted/rejected decoder&nbsp; &nbsp; &nbsp;781039_replacement_summary.csv summary of the replacing task variables&nbsp;Source files used to regenerate the running-speed table:&nbsp; &nbsp; &nbsp;958690_DinChannels.pbz2, 958690_FineBehaviour.pbz2, 958690_TrialBehaviour.pbz2, 958690_SpikeStats.pbz2 event channels, behavioural state sequences and trial tables of all recording stages&nbsp; &nbsp; &nbsp;809107_TrialBehaviour.pbz2 - trial-by-trial behaviour of the implanted animals&nbsp; &nbsp; &nbsp;773894_xy_tables/ &nbsp;- 663 DeepLabCut tracking tables (animal x/y position in pixels, 100 Hz), one per stageGeneral conventionsEvery 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 &lt;A&gt;_&lt;B&gt;, 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 = -1 marks a placeholder row for a session, epoch and area pair with no analysable data. For these rows n_unit_A = n_unit_B = 0 and every statistic column is NaN. Drop them before analysis (the project scripts filter rank != -1).In the regression tables, rank = -1 is the model intercept (predictor = 'Intercept'). Rows with rank from 0 to 9 are the coefficients of the corresponding canonical component in each area (cc_area_A_&lt;rank&gt; and cc_area_B_&lt;rank&gt;).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.&nbsp;VelocityRaw 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 velocity column 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, velocity is the speed for one trial (trial_idx) in one epoch window (bin) of one recording stage (stage). trial_group is accept or reject. In the regression tables, outcome = 'velocity' is this same quantity.&nbsp;Code requirementsPython 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.&nbsp;]]></description></descriptions><fundingReferences><fundingReference><funderName>The Clarendon Fund and Mary Somerville Clarendon Graduate Scholarship in conjunction with the Department of Experimental Psychology</funderName><awardNumber>SFF1819_CB2_MSD_ 1196514</awardNumber></fundingReference><fundingReference><funderName>Medical Research Council, UKRI</funderName><awardNumber>MC_UU_00003/6</awardNumber></fundingReference><fundingReference><funderName>Medical Research Council, UKRI</funderName><awardNumber>UKRI/MR/B000936/1</awardNumber></fundingReference><fundingReference><funderName>Medical Research Council, UKRI</funderName><awardNumber>MR/X022080/1</awardNumber></fundingReference></fundingReferences></resource></xml></response>
