Learning dynamically regulates stimulus discrimination of ventral striatal D1 receptor expressing neurons.
2 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 3 matches · 2 of them tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
- [1] § RESULTS › D1 MSN activation on CS- trials impairs stimulus discrimination ↔ AnalyzeBehavior.m, the whole file · a weak match · score 0.62 · lick probability, ChR2, CS licking, lick selectivity, discrimination, Behavior · block
oscr:b:MG9H9DEC9TP3J-K· Report a mismatch - [2] § MATERIALS AND METHODS › Quantification and statistical analysis ↔ AnalyzeNeuralActivity.m, lines 1 to 20 · score 0.57 · modulated cells, cue modulation, firing rate, neural activity, trial blocks, tagged · block
oscr:b:TRZDYHGF6463R-6· Report a mismatch - [3] § RESULTS › Mice learn a stimulus discrimination task in a single session ↔ AnalyzeBehavior.m, the whole file · a weak match · score 0.53 · CS lick probabilities, lick selectivity, trial block, delay, mice, discriminate · block
oscr:b:MG9H9DEC9TP3J-K· Report a mismatch
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
MATLAB · 106 lines · 4.3 KB · CC-BY-4.0 · 2 matches
- function [lickProb_cue1_perSub,lickProb_cue2_perSub,lickSelectivity_perSub] = AnalyzeBehavior(group,trials,bins)
- % Cue discrimination: analysis of behavior
- % Calculates lick probability and selectivity
- % Inputs:
- % group: 'D1', 'D2', 'All', 'ChR2 (laser)', 'ChR2 (no laser)', 'Control (laser)', or 'Control (no laser)'
- % trials: default is one 25-trial block (1:25, 26:50, 51:75, or 76:100)
- % bins: isi (12:35), cue (12:20), delay (22:35), post-reward (36:40)
- % Outputs:
- % lickProb_cue1_perSub: lick probability to CS+ (per subject)
- % lickProb_cue2_perSub: lick probability to CS- (per subject)
- % lickSelectivity: lick selectivity in Hz (per subject)
- load('Data_Behavior.mat')
- startTime = (bins(1) - 11) * 0.1; % converts first bin to seconds
- endTime = (bins(end) - 10) * 0.1; % converts last bin to seconds and extends 100 ms
- %% Selected data
- if isequal(group,'D1')
- cue1times_perSub = cue1times_D1; % D1 CS+ times
- cue2times_perSub = cue2times_D1; % D1 CS- times
- lickTimes_perSub = lickTimes_D1;
- elseif isequal(group,'D2')
- cue1times_perSub = cue1times_D2; % D2 CS+ times
- cue2times_perSub = cue2times_D2; % D2 CS- times
- lickTimes_perSub = lickTimes_D2;
- elseif isequal(group,'All')
- cue1times_perSub = [cue1times_D1; cue1times_D2]; % D2 CS+ times
- cue2times_perSub = [cue2times_D1; cue2times_D2]; % D2 CS- times
- lickTimes_perSub = [lickTimes_D1 lickTimes_D2];
- elseif isequal(group,'ChR2 (laser)')
- cue1times_perSub = cue1times_optoLaser;
- cue2times_perSub = cue2times_optoLaser;
- lickTimes_perSub = lickTimes_optoLaser;
- elseif isequal(group,'ChR2 (no laser)')
- cue1times_perSub = cue1times_optoNoLaser;
- cue2times_perSub = cue2times_optoNoLaser;
- lickTimes_perSub = lickTimes_optoNoLaser;
- elseif isequal(group,'Control (laser)')
- cue1times_perSub = cue1times_controlLaser;
- cue2times_perSub = cue2times_controlLaser;
- lickTimes_perSub = lickTimes_controlLaser;
- elseif isequal(group,'Control (no laser)')
- cue1times_perSub = cue1times_controlNoLaser;
- cue2times_perSub = cue2times_controlNoLaser;
- lickTimes_perSub = lickTimes_controlNoLaser;
- end
- numSubs = size(cue1times_perSub,1); % number of subjects (mice)
- numTrials = length(trials);
- totalTime = endTime - startTime;
- %% Loop through subjects to calculate lick responses
- lickProb_cue1_perSub = zeros(numSubs,1); lickProb_cue2_perSub = lickProb_cue1_perSub;
- lickNum_cue1_perSub = lickProb_cue1_perSub; lickNum_cue2_perSub = lickProb_cue1_perSub;
- for nSub = 1:numSubs
- lickTimes = lickTimes_perSub{nSub}; % raw lick times for single subject
- for nCue = 1:2
- if nCue==1
- cueTimes = cue1times_perSub(nSub,:); % CS+
- cueTimes = cueTimes(trials);
- elseif nCue==2
- cueTimes = cue2times_perSub(nSub,:); % CS-
- cueTimes = cueTimes(trials);
- end
- lickNum_perTrial = zeros(1,numTrials);
- for nTrial = 1:numTrials
- eventTime = cueTimes(nTrial);
- lick_ind = find(lickTimes < (eventTime + endTime) & lickTimes > eventTime + startTime);
- lickNum_perTrial(nTrial) = length(lick_ind);
- end
- lickProb = length(find(lickNum_perTrial>0))/numTrials; % lick probability
- mean_lickNum = mean(lickNum_perTrial); % lick number
- if nCue==1 % CS+
- lickProb_cue1_perSub(nSub) = lickProb;
- lickNum_cue1_perSub(nSub) = mean_lickNum;
- elseif nCue==2 % CS-
- lickProb_cue2_perSub(nSub) = lickProb;
- lickNum_cue2_perSub(nSub) = mean_lickNum;
- end
- end
- end
- lickSelectivity_perSub = (lickNum_cue1_perSub - lickNum_cue2_perSub)/totalTime;
- lickProb_cue1 = mean(lickProb_cue1_perSub);
- % lickNum_cue1 = mean(lickNum_cue1_perSub);
- lickProb_cue2 = mean(lickProb_cue2_perSub);
- % lickNum_cue2 = mean(lickNum_cue2_perSub);
- lickSelectivity = mean(lickSelectivity_perSub);
- % Results summary
- cue1_str = ['CS+ lick probability: ' num2str(round(lickProb_cue1,2)) '.\n'];
- cue2_str = ['CS- lick probability: ' num2str(round(lickProb_cue2,2)) '.\n'];
- selectivity_str = ['Lick selectivity: ' num2str(round(lickSelectivity,2)) ' Hz.\n'];
- fprintf('***************************************************************\n')
- fprintf([group ' subjects, trials ' num2str(trials(1)) '-' num2str(trials(end)) ':\n'])
- fprintf(cue1_str)
- fprintf(cue2_str)
- fprintf(selectivity_str)
- end
AnalyzeBehavior.m, under CC-BY-4.0 · at the source
Overview
- Molecular, Cellular, and Integrative Physiology Graduate Program, University of California, Los Angeles, CA, USA
- Department of Neurobiology, University of California, Los Angeles, CA, USA
- Department of Bioengineering, University of California, Los Angeles, CA, USA
- California Nanosystems Institute, University of California, Los Angeles, CA, USA
Abstract
Animals encounter a barrage of sensory stimuli, but only a subset of these are associated with appetitive outcomes. Thus, mechanisms for learning to distinguish reward-paired from unpaired cues are essential for reward-seeking behavior. The ventral striatum plays a critical role in reinforcement learning and stimulus discrimination, but the effect of learning on the selectivity of different cell types remains unclear. We examined ventral striatal D1 and D2 medium spiny neuron (MSN) firing properties as mice learned to distinguish between reward-paired and unpaired cues. As learning progressed within a single session, D1 MSN selectivity increased linearly with behavioral selectivity, while D2 MSNs exhibited modest, behaviorally uncorrelated changes in activity. Altered D1 MSN selectivity was primarily attributed to attenuated excitatory responses to the unrewarded cue, and increasing D1 MSN activity during the unrewarded cue impaired behavioral selectivity. Together, these findings reveal significantly more dynamic contributions of D1 MSNs to stimulus discrimination learning.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 3 matches between paragraphs and lines of code.
Zenodo 19024141
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
6 files
- AnalyzeBehavior.m, MATLAB, 106 lines, 2 matches
- AnalyzeNeuralActivity.m, MATLAB, 202 lines, 1 match
- CalculateAuroc.m, MATLAB, 126 lines
- CueDiscrimination.m, MATLAB, 58 lines
- DefaultFigProperties.m, MATLAB, 32 lines
- FindConsecutiveBins.m, MATLAB, 24 lines
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 6 scripts, each with its path and the digest of its content;
- 3 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Data, code, and materials availability
All data and code needed to evaluate and reproduce the results in the paper are available at https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 4 authors, 13 MeSH terms, 1 funder, 53 references.
Cite
This paper
Daw, T. B., Cao, J., Li, R., & Masmanidis, S. C. (2026). Learning dynamically regulates stimulus discrimination of ventral striatal D1 receptor expressing neurons. Science advances, 12(29), eaee3529. https://
BibTeX
@article{daw2026learning
author = {Daw, Tierney B. and Cao, Jiayi and Li, Ruoxian and Masmanidis, Sotiris C.},
title = {{Learning dynamically regulates stimulus discrimination of ventral striatal D1 receptor expressing neurons}},
journal = {Science advances},
year = {2026},
month = jul,
volume = {12},
number = {29},
pages = {eaee3529},
publisher = {American Association for the Advancement of Science},
issn = {2375-2548},
doi = {10.1126/
url = {https://
pmid = {42455948},
pmcid = {PMC13371909}
}
RIS
TY - JOUR
AU - Daw, Tierney B.
AU - Cao, Jiayi
AU - Li, Ruoxian
AU - Masmanidis, Sotiris C.
TI - Learning dynamically regulates stimulus discrimination of ventral striatal D1 receptor expressing neurons
T2 - Science advances
J2 - Sci Adv
PY - 2026
DA - 2026/
VL - 12
IS - 29
SP - eaee3529
SN - 2375-2548
PB - American Association for the Advancement of Science
DO - 10.1126/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1126/
"type": "article-journal",
"title": "Learning dynamically regulates stimulus discrimination of ventral striatal D1 receptor expressing neurons",
"container-title": "Science advances",
"author": [
{
"family": "Daw",
"given": "Tierney B."
},
{
"family": "Cao",
"given": "Jiayi"
},
{
"family": "Li",
"given": "Ruoxian"
},
{
"family": "Masmanidis",
"given": "Sotiris C."
}
],
"container-title-short":
"volume": "12",
"issue": "29",
"page": "eaee3529",
"DOI": "10.1126/
"PMID": "42455948",
"PMCID": "PMC13371909",
"ISSN": "2375-2548",
"publisher": "American Association for the Advancement of Science",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
15
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.7554/elife.92821 [code]
- Dopamine lesions alter the striatal encoding of single-limb gait.Journal: eLifeIn common: mouse, cellular / molecular, 10 references, author Sotiris C. Masmanidis
- [2] doi:10.1016/j.isci.2025.114138 [code]
- Complementary cortical and striatal encoding of locomotor preparation and performance.Journal: iScienceIn common: 8 references, author Sotiris C. Masmanidis
- [3] doi:10.1016/j.isci.2022.104245 [code]
- Striatal direct pathway neurons play leading roles in accelerating rotarod motor skill learning.Journal: iScienceIn common: 9 references
- [4] doi:10.1038/s41593-025-01902-9 [code]
- Dopamine in the tail of the striatum facilitates avoidance in threat-reward conflicts.Journal: Nature neuroscienceIn common: mouse, cellular / molecular, 8 references
- [5] doi:10.1038/s41467-022-35601-x [code]
- Continuous cholinergic-dopaminergic
updating in the nucleus accumbens underlies approaches to reward-predicting cues. Journal: Nature communicationsIn common: mouse, 8 references - [6] doi:10.1126/sciadv.aea3935 [code]
- Complementary cortical and thalamic contributions to cell type-specific striatal activity dynamics during movement.Journal: Science advancesIn common: mouse, 8 references
- [7] doi:10.1371/journal.pbio.3001338 [code]
- Context coding in the mouse nucleus accumbens modulates motivationally relevant information.Journal: PLoS biologyIn common: mouse, 7 references
- [8] doi:10.1038/s41467-024-55269-9 [code]
- Dynamic representation of appetitive and aversive stimuli in nucleus accumbens shell D1- and D2-medium spiny neurons.Journal: Nature communicationsIn common: mouse, 7 references
- [9] doi:10.1016/j.celrep.2022.110380
- Distinct role of nucleus accumbens D2-MSN projections to ventral pallidum in different phases of motivated behavior.Journal: Cell reportsIn common: 7 references
- [10] doi:10.1126/sciadv.aeb5352 [code]
- Indirect pathway neurons in the tail of the striatum regulate inhibitory control over sensory driven behavior.Journal: Science advancesIn common: mouse, 7 references
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 6 scripts, and 3 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:729d3e3e27da97b9…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.1126/sciadv.aee3529)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1126/sciadv.aee3529.svg
:target: https://openscicode.org/badge/doi/10.1126/sciadv.aee3529
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1126/sciadv.aee3529"><img src="https://openscicode.org/badge/doi/10.1126/sciadv.aee3529.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
