<?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-vx8p-ze87</identifier><creators><creator><creatorName nameType="Personal">Wang Y</creatorName><givenName>Yuhao</givenName><familyName>Wang</familyName><nameIdentifier nameIdentifierScheme="ORCID" schemeURI="https://orcid.org">https://orcid.org/0009-0007-1305-6838</nameIdentifier></creator><creator><creatorName nameType="Personal">Burgeno L</creatorName><givenName>Lauren</givenName><familyName>Burgeno</familyName><nameIdentifier nameIdentifierScheme="ORCID" schemeURI="https://orcid.org">https://orcid.org/0000-0001-9305-1621</nameIdentifier></creator><creator><creatorName nameType="Personal">Cerpa JC</creatorName><givenName>Juan</givenName><familyName>Cerpa</familyName><nameIdentifier nameIdentifierScheme="ORCID" schemeURI="https://orcid.org">https://orcid.org/0000-0003-0591-404X</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">Bogacz R</creatorName><givenName>Rafal</givenName><familyName>Bogacz</familyName><nameIdentifier nameIdentifierScheme="ORCID" schemeURI="https://orcid.org">https://orcid.org/0000-0002-8994-1661</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></creators><titles><title xml:lang="en">Code repository for processing and analysing behaviour and photometry data from trial-based choice task</title></titles><resourceType resourceTypeGeneral="Dataset">Code repository for processing and analysing behaviour and photometry data from trial-based choice 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">This code repository is tailored for the dataset "Behaviour and dorsal striatum photometry recordings of mice during choice task with non-stationary probabilistic reward outcomes", but can be adapted for use on datasets from other trial-based choice tasks, especially those generated with pyControl and pyPhotometry. This repository is also hosted and maintained at https://github.com/Bogacz-Group/DLS_APE, the DOI of this dataset relates to the 1.0.0 release.&#x201C;qualitative_analysis.ipynb&#x201D; contains code for loading the behavioural data and performing qualitative (model-free) analysis. &#x201C;behaviour_model_fitting.ipynb&#x201D; performs maximum-likelihood parameter optimisation with a stochastic algorithm and Bayesian model selection to compare the goodness of fit of different generative models on the same behavioural data. This notebook also generates latent variables from the best fitting model for use in analysis of photometry data.&#x201C;pre_processing.py&#x201D;, &#x201C;make_dataframe.py&#x201D; and &#x201C;simplify_data.py&#x201D; are code for pre-processing and filtering the raw photometry data, aligning photometry signals with behavioural events on each trial, and formatting the processed data for efficient regression analysis. &#x201C;mixed_effects.py&#x201D; performs regression analysis with mixed-effects models on the processed photometry data to find correlation between neural activity and behavioural variables.The &#x201C;README.md&#x201D; file within the repository provides further details on the functionality of the code, and more details on analysis methods will be published in a future research article.</description></descriptions><fundingReferences><fundingReference><funderName>Medical Research Council, UKRI</funderName><awardNumber>MC UU 00003/1</awardNumber></fundingReference><fundingReference><funderName>Medical Research Council, UKRI</funderName><awardNumber>MR/B000936/1</awardNumber></fundingReference><fundingReference><funderName>Medical Research Council, UKRI</funderName><awardNumber>MR/X022080/1</awardNumber></fundingReference><fundingReference><funderName>Wellcome Trust</funderName><awardNumber>202831/Z/16/Z</awardNumber></fundingReference><fundingReference><funderName>Biotechnology and Biological Sciences Research Council, UKRI</funderName><awardNumber>BB/S006338/1</awardNumber></fundingReference></fundingReferences></resource></xml></response>
