OSCR

Acetylcholine demixes heterogeneous dopamine signals for learning and moving.

Code ↔ Paper

21 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 21 matches · 12 of them tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
  1. [1] § Methods › Logistic regression model ↔ DMS_AChDA/vis/plot_fig6h.m, lines 32 to 117 · score 0.88 · logistic regression, classification error, cross validate, 0–0.5 s, fitclinear, ridge · Report a mismatch
  2. [2] § Results › Dopamine predicts learning when it lags cholinergic dips ↔ DMS_AChDA/vis/plot_fig3g_left.m, lines 1 to 81 · score 0.77 · model predicted RPE, 0–0.5 s, model simulation, dopamine AUC, DA rats, reward cue · Report a mismatch
  3. [3] § Results › Dopamine fails to predict learning when it precedes cholinergic dips ↔ DMS_AChDA/vis/plot_fig4i_left.m, lines 1 to 46 · score 0.72 · short delay, delay period, reward delay distribution, top quartile, long delay, reward port · Report a mismatch
  4. [4] § Results › Dopamine predicts movement vigor when coincident with cholinergic bursts ↔ DMS_AChDA/vis/plot_fig6h.m, lines 32 to 117 · score 0.72 · logistic regression, cross validated, 0–0.5 s, contralateral trial, reward port, speed · Report a mismatch
  5. [5] § Results › Dopamine predicts learning when it lags cholinergic dips ↔ DMS_AChDA/vis/plot_fig3ab_xcorr.m, the whole file · a weak match · score 0.71 · cross correlation, ACh rats, reward delay quartiles, DA rats, reward cue, lag · Report a mismatch
  6. [6] § Results › Dopamine predicts learning when it lags cholinergic dips ↔ DMS_AChDA/vis/plot_fig3ab_xcorr.m, the whole file · a weak match · score 0.69 · Cross correlation, ACh rats, reward delay quartiles, DA rats, reward cue, lag · Report a mismatch
  7. [7] § Methods › Behavioral model ↔ DMS_AChDA/vis/plot_fig3f.m, the whole file · a weak match · score 0.67 · qualitatively best, RPE model, trial initiation, simulate, delay · Report a mismatch
  8. [8] § Methods › Behavioral model ↔ DMS_AChDA/vis/plot_fig3c.m, the whole file · a weak match · score 0.65 · qualitatively best, RPE model, trial initiation, simulate, volume · Report a mismatch
  9. [9] § Methods › Electrophysiology experiment › Neuropixels data acquisition ↔ CorticostriatalProjectionNeurons/Utils/make_ops.m, the whole file · a weak match · score 0.64 · DAQmx, Neuropix PXI, NI, Spike, event · Report a mismatch
  10. [10] § Results › Dopamine predicts movement vigor when coincident with cholinergic bursts ↔ EstrousRPEPaper/process/ProcessData_Figure2.m, the whole file · a weak match · score 0.64 · Wilcoxon signed rank, 0–0.5 s, DA rats, population, accuracy, port · Report a mismatch
  11. [11] § Methods › Electrophysiology experiment › Neuropixels data acquisition ↔ CorticostriatalProjectionNeurons/Utils/extractControllerClock.m, the whole file · a weak match · score 0.61 · Neuropix PXI, OpenEphys, NI · Report a mismatch
  12. [12] § Methods › Trial initiation versus dopamine AUC analysis ↔ EstrousRPEPaper/process/ProcessData_ExtendedData6.m, the whole file · a weak match · score 0.61 · 0–0.5 s, baseline corrected, Event aligned, offer cue, AUC · Report a mismatch
  13. [13] § Methods › Trial initiation versus dopamine AUC analysis ↔ DMS_AChDA/vis/plot_fig3e_right.m, lines 1 to 78 · score 0.61 · 0–0.5 s, dopamine AUC, offer cue, bins, initiation · Report a mismatch
  14. [14] § Results › Evidence for in vivo plasticity ↔ DMS_AChDA/vis/plot_fig5g.m, the whole file · a weak match · score 0.59 · negligible RPE, cells aligned, negative RPE, offer cue, consecutive, FR · Report a mismatch
  15. [15] § Results › Evidence for in vivo plasticity ↔ DMS_AChDA/vis/plot_fig5g.m, the whole file · a weak match · score 0.56 · negligible RPE, negative RPE, firing rate, offer cue, consecutive, DA · Report a mismatch
  16. [16] § Methods › Event-aligned photometry signals ↔ DMS_AChDA/vis/plot_fig2f.m, the whole file · a weak match · score 0.55 · reward port side, Event aligned, baseline correction, split, signals, photometry · Report a mismatch
  17. [17] § Methods › Behavior training and task logic ↔ rat_behavior/Figures/Figure3.m, lines 47 to 109 · score 0.55 · exponential distribution, catch trials, chosen, 15 %, uniform, 25 % · Report a mismatch
  18. [18] § Methods › Logistic regression model ↔ DMS_AChDA/vis/plot_fig6d.m, lines 1 to 66 · score 0.54 · 0–0.5 s, top quartile, reward port, fast, reaction, DMS · Report a mismatch
  19. [19] § Results › Dopamine and acetylcholine show distinct dynamics at reward-associated and movement-associated events ↔ DMS_AChDA/vis/plot_fig2f.m, the whole file · a weak match · score 0.53 · event aligned dopamine, release split, baseline corrected, ipsi, Contra, sensors · Report a mismatch
  20. [20] § Results › Dopamine predicts learning when it lags cholinergic dips ↔ DMS_AChDA/vis/plot_fig3ab_latency.m, lines 1 to 81 · score 0.53 · ACh rats, DA rats, trough, reward cue, offer cue, peak · Report a mismatch
  21. [21] § Results › Dopamine predicts learning when it lags cholinergic dips ↔ DMS_AChDA/vis/plot_fig3ab_latency.m, lines 1 to 81 · score 0.52 · ACh rats, DA rats, trough, reward cue, offer cue, peak · 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 · 121 lines · 3.2 KB · MIT · 2 matches

  1. function plot_fig6h(datadir)
  2. % Plot average cross-validated classification accuracy of a logistic
  3. % regression decoder. N = 18 sessions from 8 rats.
  4. %
  5. % INPUTS
  6. % datadir: file path of data downloaded from Zenodo. Link to download can
  7. % be found in README.
  8. fpath = fullfile(datadir, 'data-published/NpxData/npx_DMS.mat');
  9. load(fpath, 'S', 'SU');
  10. [cvPerf, ~] = decodeSpeed(SU, S);
  11. figure
  12. set(gcf, units='inches', renderer='painter', ...
  13. position=[9,5,1.6,1.9])
  14. tiledlayout('flow');
  15. nexttile;
  16. hold on
  17. jitx = rand(size(cvPerf,1),1)*0.1;
  18. jitx(1:end/2) = -jitx(1:end/2);
  19. plot(1+jitx, cvPerf(:,1), 'ko')
  20. errorbar(1, mean(cvPerf(:,1), 'omitnan'), std(cvPerf(:,1), 'omitnan'), ...
  21. 'k_', capsize=0, linewidth=1.5)
  22. yline(50, 'k--')
  23. xlim([0.5 1.5])
  24. ylabel('Cross-validated accuracy (%)')
  25. xticks([])
  26. set(gca, tickdir='out', xtick=1, fontsize=8)
  27. end
  28. function [cvPerf, ridgeWeights] = decodeSpeed(SU, S)
  29. % calculate cross-validated logistic regression linear classifier error
  30. % of predicting fast vs slow trials from firing rate at Reward Port On.
  31. % Contralateral trials only.
  32. twin = [0 0.5];
  33. cvErr = nan(length(SU),1);
  34. ridgeWeights = nan(length(SU),1);
  35. for sess=1:length(S)
  36. if length(SU{sess}) < 5 % exclude sessions with fewer than 5 cells
  37. continue
  38. else
  39. ratName = S{sess}.RatName;
  40. % get contralateral trials
  41. if sum(strcmpi(ratName, {'j081', 'j076'}))>0
  42. recHemi = 'R';
  43. else
  44. recHemi = 'L';
  45. end
  46. isContra = cellfun(@(x) ~strcmpi(x, recHemi), S{sess}.RewardedSide)';
  47. % For Reward Port On:
  48. % get reaction time
  49. RT = S{sess}.slrt;
  50. % filter outliers
  51. thresh = [];
  52. thres(1) = prctile(RT, 1); % lower threshold
  53. thresh(2) = prctile(RT, 99); % upper threshold
  54. RT(RT<=thresh(1)) = nan;
  55. RT(RT>=thresh(2)) = nan;
  56. % nan ipsi trials
  57. RT(~isContra) = nan;
  58. % bin reaction times
  59. quantiles = [0 1/4 2/4 3/4 1];
  60. bins = quantile(log2(RT), quantiles);
  61. % get fast vs slow trials
  62. isFast = log2(RT)>=bins(1) & log2(RT)<=bins(2);
  63. isSlow = log2(RT)>=bins(end-1) & log2(RT)<=bins(end);
  64. fprintf('Slow: %i trials, Fast: %i trials\n', ...
  65. sum(isSlow), sum(isFast))
  66. % create true/false vector
  67. y = find(isFast | isSlow);
  68. y(ismember(y,find(isFast))) = 1;
  69. y(ismember(y,find(isSlow))) = 0;
  70. % construct trial x neuron x T tensor
  71. X = [];
  72. T = SU{sess}{1}.xvec.SON;
  73. [~,t1] = min(abs(T-twin(1)));
  74. [~,t2] = min(abs(T-twin(2)));
  75. for n=1:length(SU{sess})
  76. these = isFast | isSlow;
  77. X(:,n,:) = SU{sess}{n}.hmat.SON(these,t1:t2);
  78. end
  79. % flatten
  80. X = reshape(X, sum(these), []);
  81. % fit model
  82. Lambda = logspace(-4,-0.2,11);
  83. mdl = fitclinear(X', y, ...
  84. 'ObservationsIn', 'columns', ...
  85. 'CrossVal', 'on', 'Learner', 'logistic', ...
  86. 'Regularization', 'ridge', 'Lambda', Lambda);
  87. [cvErr(sess,1), ridgeWeights(sess,1)] = min(kfoldLoss(mdl));
  88. end
  89. end
  90. %
  91. rmv = isnan(cvErr(:,1));
  92. cvErr(rmv,:) = [];
  93. ridgeWeights(rmv,:) = [];
  94. cvPerf = 100*(1-cvErr);
  95. end

plot_fig6h.m at commit b7b68ca, under MIT · at the source

Overview

Authors: Hee Jae Jang1, Royall McMahon Ward1, Carla E M Golden1, Christine M Constantinople1
  1. Center for Neural Science, New York University, New York City, NY USA
Institutions: New York University (United States)
Journal: Nature neuroscience, volume 29, issue 4, pages 840-850
Dates: received 10 October 2025; accepted 27 January 2026; published online 25 March 2026; in print 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s41593-026-02227-x · PMID 41882194 · PMCID PMC13061617 · OpenAlex W7140303701
Open access: hybrid, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: rat (organism), cognitive (subfield)
Methods: Connectivity, Machine learning, Statistics, Preprocessing, Evoked potentials, fMRI & imaging, Single-unit activity, calcium imaging
Keywords: Reward, Basal ganglia, Motivation, Neural circuits
MeSH: Acetylcholine*, Corpus Striatum*, Dopamine*, Learning*, Animals, Dopaminergic Neurons, Male, Movement, Rats, Rats, Long-Evans, Reward (* major topic)
Topic: Neurotransmitter Receptor Influence on Behavior (Cellular and Molecular Neuroscience, Neuroscience), according to OpenAlex
Funding: U.S. Department of Health & Human Services | National Institutes of Health (NIH) (R01MH136272); Alfred P. Sloan Foundation; U.S. Department of Health &amp; Human Services | National Institutes of Health (R01MH136272)
Citations: cited by 17 papers (Europe PMC); 80 references in the paper

Abstract

The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.

Repository

Its files are read in the Code ↔ Paper reader above, with 21 matches between paragraphs and lines of code.

constantinoplelab/published

License: MIT
State: the link answers, verified on 31 October 2026
Evidence: files inventoried
Commit: b7b68ca8c107d8ce4a061e16da214307f175c3e5, 25 September 2026
Languages: MATLAB (449), Shell (3)
Size: 499 files, 452 scripts
Software Heritage: archived
Found in: “Code availability”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 2 checks, the latest on 31 October 2026: the link answers
  • 31 October 2026: the link answers
  • 30 September 2026: the link answers
454 files

Code availability statement

The paper has a code availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1038/s41593-026-02227-x.

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;
  • 452 scripts, each with its path and the digest of its content;
  • 21 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

Datasets cited

Data availability statement

The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1038/s41593-026-02227-x.

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, 30 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 4 authors, 4 keywords, 11 MeSH terms, 3 funders, 73 references.

Cite

This paper

Jang, H. J., McMahon Ward, R., Golden, C. E. M., & Constantinople, C. M. (2026). Acetylcholine demixes heterogeneous dopamine signals for learning and moving. Nature neuroscience, 29(4), 840-850. https://doi.org/10.1038/s41593-026-02227-x

BibTeX

@article{jang2026acetylcholine,
author = {Jang, Hee Jae and McMahon Ward, Royall and Golden, Carla E M and Constantinople, Christine M},
title = {{Acetylcholine demixes heterogeneous dopamine signals for learning and moving}},
journal = {Nature neuroscience},
year = {2026},
month = mar,
volume = {29},
number = {4},
pages = {840--850},
publisher = {Nature Portfolio},
issn = {1097-6256},
doi = {10.1038/s41593-026-02227-x},
url = {https://doi.org/10.1038/s41593-026-02227-x},
pmid = {41882194},
pmcid = {PMC13061617}
}

RIS

TY - JOUR
AU - Jang, Hee Jae
AU - McMahon Ward, Royall
AU - Golden, Carla E M
AU - Constantinople, Christine M
TI - Acetylcholine demixes heterogeneous dopamine signals for learning and moving
T2 - Nature neuroscience
J2 - Nat Neurosci
PY - 2026
DA - 2026/03/25
VL - 29
IS - 4
SP - 840
EP - 850
SN - 1097-6256
PB - Nature Portfolio
DO - 10.1038/s41593-026-02227-x
UR - https://doi.org/10.1038/s41593-026-02227-x
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41593-026-02227-x",
"type": "article-journal",
"title": "Acetylcholine demixes heterogeneous dopamine signals for learning and moving",
"container-title": "Nature neuroscience",
"author": [
{
"family": "Jang",
"given": "Hee Jae"
},
{
"family": "McMahon Ward",
"given": "Royall"
},
{
"family": "Golden",
"given": "Carla E M"
},
{
"family": "Constantinople",
"given": "Christine M"
}
],
"container-title-short": "Nat Neurosci",
"volume": "29",
"issue": "4",
"page": "840-850",
"DOI": "10.1038/s41593-026-02227-x",
"PMID": "41882194",
"PMCID": "PMC13061617",
"ISSN": "1097-6256",
"publisher": "Nature Portfolio",
"URL": "https://doi.org/10.1038/s41593-026-02227-x",
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
25
]
]
}
}

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.1038/s41593-025-02104-z [code]
Estrogen modulates reward prediction errors and reinforcement learning.
Journal: Nature neuroscience
In common: Violinplot-Matlab, shadedErrorBar, Optimization Toolbox, 2 other tools, rat, 14 references, 2 authors
[2] doi:10.1038/s41467-022-35601-x [code]
Continuous cholinergic-dopaminergic updating in the nucleus accumbens underlies approaches to reward-predicting cues.
Journal: Nature communications
In common: 15 references
[3] doi:10.1038/s41467-026-73994-1 [code]
Prediction error correlates in the striosome-dopamine circuit emerge from information gain.
Journal: Nature communications
In common: Optimization Toolbox, Statistics and Machine Learning Toolbox, cognitive, 14 references
[4] doi:10.1038/s41586-023-06492-9 [code]
Dopamine and glutamate regulate striatal acetylcholine in decision-making.
Journal: Nature
In common: cognitive, 13 references
[5] doi:10.1523/jneurosci.1527-22.2023
Anticipation of Appetitive Operant Action Induces Sustained Dopamine Release in the Nucleus Accumbens.
Journal: The Journal of neuroscience : the official journal of the Society for Neuroscience
In common: rat, cognitive, 13 references
[6] doi:10.1126/sciadv.adv8224
State-dependent modulation of spiny projection neurons controls levodopa-induced dyskinesia in a mouse model of Parkinson's disease.
Journal: Science advances
In common: 13 references
[7] doi:10.1038/s41593-025-01906-5 [code]
An axonal brake on striatal dopamine output by cholinergic interneurons.
Journal: Nature neuroscience
In common: 12 references
[8] doi:10.7554/elife.76111 [code]
Dopamine D2Rs coordinate cue-evoked changes in striatal acetylcholine levels.
Journal: eLife
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 10 references
[9] doi:10.1016/j.isci.2026.115324
The GPCR Smoothened on cholinergic interneurons modulates dopamine-associated acetylcholine dynamics, learning, and effort management.
Journal: iScience
In common: 11 references
[10] doi:10.1038/s41593-023-01401-9 [code]
Unique functional responses differentially map onto genetic subtypes of dopamine neurons.
Journal: Nature neuroscience
In common: Statistics and Machine Learning Toolbox, 12 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.

Add the badge to the code's README

OSCR: the badge of this paper

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 -->
[![OSCR](https://openscicode.org/badge/doi/10.1038/s41593-026-02227-x.svg)](https://openscicode.org/badge/doi/10.1038/s41593-026-02227-x)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1038/s41593-026-02227-x.svg
   :target: https://openscicode.org/badge/doi/10.1038/s41593-026-02227-x
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41593-026-02227-x"><img src="https://openscicode.org/badge/doi/10.1038/s41593-026-02227-x.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".

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)

Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.