OSCR

Sensorimotor transformation of number in the primate parietal cortex.

Code ↔ Paper

3 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.

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
  1. [1] § Results › Behavioral relevance of motor planning activity for the motor counting process ↔ visualization_ErrorTrials.m, lines 17 to 71 · score 0.76 · incorrect trials, numerical distance, tuning curves, normalized activity, firing rate, boxplots · block oscr:b:Z0MSBYZQ4MS0N-M · Report a mismatch
  2. [2] § Methods › Error trial analysis ↔ visualization_ErrorTrials.m, lines 17 to 71 · score 0.59 · incorrect trials, error trials, firing rates, activity, position · block oscr:b:Z0MSBYZQ4MS0N-M · Report a mismatch
  3. [3] § Methods › Time-resolved population analyses ↔ visualization_TempDecoding.m, lines 212 to 241 · score 0.53 · cross phase, motor preparation, decoding, trained, instruction, accuracy · block oscr:b:ZS1X5NYXYNDF5-2 · 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 · 170 lines · 6.7 KB · CC-BY-4.0 · 2 matches

  1. clear, clc
  2. load('data_ErrorActivity')
  3. load('data_SVMDecodingError.mat')
  4. fig = figure('Units','centimeters', 'Position',[2 2 20 22], 'Color','w');
  5. %% Define variables
  6. dist = -4:4;
  7. bx_col =[0.5 0.5 0.5; 0 0 0];
  8. m_col = { '-k','-w'};
  9. dirbx_col = [.7 .7 .7;.7 .7 .7;1 1 1;0 0 0;1 1 1];
  10. colbar = [1 1 1;.6 .6 .6;.6 .6 .6;1 1 1];
  11. colPL = [0.55 0.728 0.106; 0.3271 0.569 0.7819; 0.79 0 0];
  12. %% Error Analysis
  13. % Tuning curves correct and incorrect trials
  14. axDistErrTun = axes('Units','centimeters', 'Position',[1.5 13.5 8 6]);
  15. hold on
  16. % mean error tuning
  17. plot(dist, DistErrorTuning.meanErrTun, '-','Linewidth', 2, 'Color',[.5 .5 .5])
  18. errorbar(dist, DistErrorTuning.meanErrTun, DistErrorTuning.semErrTun,'Color',[.5 .5 .5],'LineStyle',...
  19. 'none','CapSize',0, 'LineWidth',1.5)
  20. % mean correct tuning
  21. plot(dist, DistErrorTuning.meanCorrTun,'k-','Linewidth',2)
  22. errorbar(dist, DistErrorTuning.meanCorrTun, DistErrorTuning.semCorrTun,'k','LineStyle','none',...
  23. 'CapSize',0,'LineWidth',1.5)
  24. % axis properties
  25. set(axDistErrTun, 'Box','off','TickDir','out', 'XLim',[-4.25 4.25],...
  26. 'YTick',.4:.2:1,'YLim',[.2 1.1 ], 'LineWidth', 2, 'XColor', [0 0 0], 'YColor', [0 0 0])
  27. xlabel('Numerical Distance', 'FontSize', 12)
  28. ylabel('Normalized Activity', 'FontSize', 12)
  29. % Create legend
  30. legend('Error', '', 'Correct', 'FontSize', 12)
  31. % Add average firing rate during correct and incorrect trials
  32. axAvAct = axes('Units', 'centimeters', 'Position',[5 14 1.3 2.6]);
  33. hold on
  34. boxplot(DistErrorTuning.avFR, 'PlotStyle','traditional','Symbol','','Widths',.5, 'Positions',[1,2])
  35. % get object handles and modify them
  36. boxes = findobj(gcf, 'type', 'line', 'Tag', 'Box');
  37. medians = findobj(gcf, 'type', 'line', 'Tag', 'Median');
  38. outliers = findobj(gcf, 'type', 'line', 'Tag', 'Outliers');
  39. whiskers_up = findobj(gcf, 'type', 'line', 'Tag', 'Upper Whisker');
  40. whiskers_dn = findobj(gcf, 'type', 'line', 'Tag', 'Lower Whisker');
  41. for box=1:length(boxes)
  42. patch(get(boxes(box),'XData'),get(boxes(box),'YData'),...
  43. bx_col(box,:),'FaceAlpha',.9, 'linew', 2);
  44. plot(medians(box).XData,medians(box).YData, m_col{box},'LineWidth',2);
  45. end
  46. set([whiskers_up;whiskers_dn], 'LineStyle','-', 'lineWidth', 2)
  47. delete(outliers)
  48. delete(medians)
  49. % Show significance
  50. line(axAvAct, [1 2], [31 31], 'LineWidth', 1.5, 'Color','k')
  51. text(axAvAct, 0.35, 0.95, '***', 'Units', 'normalized', 'FontSize', 12, 'FontWeight', 'bold')
  52. % axis properties
  53. set(axAvAct, 'Box','off','TickDir','out','XLim',[.5 2.5],...
  54. 'XTick',1:2,'XTickLabel',{'Correct','Error'},'YTick',0:5:30,...
  55. 'YLim',[0 35],'LineWidth', 2, 'XColor', [0 0 0], 'YColor', [0 0 0])
  56. ylabel(axAvAct, 'FR [Hz]')
  57. %% Error analysis based on direction of error made
  58. axDirErr = axes('Units','centimeters', 'Position',[11.5 13.5 8 6]);
  59. hold on
  60. % direction error
  61. boxplot(DirectionErr.peakActDirErr, [1.5,2.5], 'PlotStyle','traditional', 'Symbol','',...
  62. 'Widths',.3,'Labels',{'error(n-1)','error(n+1)'}, 'Positions',[1.5,2.5])
  63. % correct trials
  64. boxplot(DirectionErr.peakActCorr, [1:3],'PlotStyle','traditional','Symbol','',...
  65. 'Widths',.3,'Labels',{'n-1','n','n+1'},'Positions',1:3)
  66. % get object handles and modify them
  67. boxes = findobj(gca, 'type', 'line', 'Tag', 'Box');
  68. medians = findobj(gca, 'type', 'line', 'Tag', 'Median');
  69. outliers = findobj(gca, 'type', 'line', 'Tag', 'Outliers');
  70. whiskers_up = findobj(gca, 'type', 'line', 'Tag', 'Upper Whisker');
  71. whiskers_dn = findobj(gca, 'type', 'line', 'Tag', 'Lower Whisker');
  72. for box=1:length(boxes)
  73. patch(get(boxes(box),'XData'),get(boxes(box),'YData'),...
  74. dirbx_col((size(dirbx_col,1)+1)-box,:),'FaceAlpha',.9, 'lineWidth', 2);
  75. plot(medians(box).XData,medians(box).YData,'-k','LineWidth',2);
  76. end
  77. set([whiskers_up; whiskers_dn],'LineStyle','-','lineWidth',2)
  78. delete(outliers)
  79. delete(medians)
  80. % Significance minus
  81. line(axDirErr, [1 1.5], [1.3 1.3], 'LineWidth', 1.5, 'Color','k')
  82. text(axDirErr, 0.33, 0.83, '**', 'Units', 'normalized', 'FontSize', 14, 'FontWeight', 'bold')
  83. % Significance plus
  84. line(axDirErr, [2.5 3], [1.3 1.3], 'LineWidth', 1.5, 'Color','k')
  85. text(axDirErr, 0.75, 0.87, 'n.s.', 'Units', 'normalized', 'FontSize', 12, 'FontWeight', 'bold')
  86. % axis properties
  87. y_lim = ceil(max(max([DirectionErr.peakActDirErr'; DirectionErr.peakActCorr']))*10)/10;
  88. set(axDirErr, 'TickDir', 'out', 'Box', 'off', 'YLim', [0 1.6], 'YTick',.25:.25:1.5,...
  89. 'LineWidth', 2, 'XColor', [0 0 0], 'YColor', [0 0 0])
  90. xlabel('Preferred Number', 'FontSize', 12)
  91. ylabel('Normalized Activity', 'FontSize', 12)
  92. %% Decoding of error trials
  93. axErrDec = axes('Units','centimeters', 'Position',[1.5 1.5 5 10]);
  94. hold on
  95. errorbar([1,3],[ErrorDecoding.meanCorr, ErrorDecoding.meanErr],...
  96. [ErrorDecoding.semCorr, ErrorDecoding.semErr],...
  97. 'Marker','none','Color','k','CapSize',8,'LineWidth',1.5,...
  98. 'LineStyle','none')
  99. bar_h2 = bar([1,3],[ErrorDecoding.meanCorr, ErrorDecoding.meanErr],0.6,'FaceColor','flat');
  100. bar_h2.CData = colbar(1:2,:);
  101. plot([0, 4],[ErrorDecoding.ShflCorr, ErrorDecoding.ShflCorr], ...
  102. '--', 'Color',[.3 .3 .3],'LineWidth',2)
  103. % axis properties
  104. set(axErrDec,'YLim',[0,70],'TickDir','out','Box','off','XLim',[-.5;4.5],...
  105. 'XTick',[1,3],'XTickLabel',{'Correct','Error'},'YTick',10:20:70,...
  106. 'LineWidth', 2, 'XColor', [0 0 0], 'YColor', [0 0 0])
  107. ylabel(axErrDec,'Accuracy [%]', 'FontSize',12)
  108. xlabel(axErrDec,sprintf('Trial Prediction'), 'FontSize', 12)
  109. %% Decoding of direction of error
  110. axDirErrDec = polaraxes('Units','centimeters', 'Position',[11 1.5 6 10]);
  111. hold on
  112. % Circular plot
  113. thetas = linspace(0,2*pi,4);
  114. gridlines = 20:20:60;
  115. plt_h = zeros(3,1);
  116. for gl = 1:length(gridlines)
  117. polarplot(axDirErrDec,thetas,repmat(gridlines(gl),[4,1]),...
  118. 'LineWidth',.5,'LineStyle','-','Color',[.75 .75 .75])
  119. end
  120. % results of shuffled labels
  121. plt_h(4) = polarplot(axDirErrDec, thetas,[DirectionErrorDecoding.Shfl DirectionErrorDecoding.Shfl(1)],...
  122. 'LineWidth',1.5,'LineStyle',':','Color','k');
  123. for tt3 = 1:3
  124. plt_h(tt3) = polarplot(axDirErrDec, thetas,[DirectionErrorDecoding.meanConfMat(tt3,:), DirectionErrorDecoding.meanConfMat(tt3,1)],...
  125. 'LineWidth',2,'Color', colPL(tt3,:),'Marker','none');
  126. end
  127. % axis properties
  128. set(axDirErrDec,'ThetaZeroLocation','top','ThetaDir','clockwise','ThetaTick',...
  129. [0,120,240],'ThetaTickLabel',{'Correct','+1 Error','-1 Error'},...
  130. 'TickDir','out','RLim',[10, 65],'RGrid','off', 'GridAlpha',.5,...
  131. 'RTick',gridlines,'RTickLabel',sprintfc('%i',gridlines), ...
  132. 'RColor', [0 0 0], 'Linewidth', 2, 'Fontsize', 12)
  133. % legend properties
  134. legend(plt_h,{'Correct','+1 Error','-1 Error','Shuffle'}, 'Units','centimeters', 'Position',...
  135. [8.5 9 3 2])

visualization_ErrorTrials.m, under CC-BY-4.0 · at the source

Overview

Authors: Laura E Seidler1, Stephanie Westendorff1, Andreas Nieder1
  1. Animal Physiology Unit, Institute of Neurobiology, University of Tübingen, Tübingen, Germany
Institutions: University of Tübingen (Germany)
Journal: Nature communications, volume 17, issue 1, article 4227
Dates: received 21 July 2025; accepted 28 April 2026; published online 11 May 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s41467-026-73037-9 · PMID 42115156 · PMCID PMC13161402 · OpenAlex W7160831768
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: non-human primate (organism)
Methods: Spectral & time-frequency, Connectivity, Statistics, Machine learning, Preprocessing, Single-unit activity, calcium imaging
Keywords: Cognitive control, Intelligence
MeSH: Parietal Lobe*, Animals, Cognition, Macaca mulatta, Male, Neurons, Photic Stimulation, Psychomotor Performance, Visual Perception (* major topic)
Topic: Cognitive and developmental aspects of mathematical skills (Developmental and Educational Psychology, Psychology), according to OpenAlex
Funding: Deutsche Forschungsgemeinschaft (German Research Foundation) (NI 618/13-1 (FOR 5159))
Citations: not cited yet (Europe PMC); 52 references in the paper

Abstract

The neuronal mechanisms by which the brain flexibly transforms perceived numerical values into corresponding numbers of self-generated actions remain poorly understood. Here, we investigated this sensorimotor transformation process in the parietal cortex of two male rhesus macaques performing a manual counting task. Monkeys viewed visual numerical cues and produced a corresponding number of hand movements. Single-neuron recordings from the ventral intraparietal area (VIP)—a region known to represent perceived numerosity—revealed tuning to the number of intended actions during motor planning. These neurons showed both sustained and transient activity patterns, reflecting static and dynamic codes that support numerical sensorimotor transformation. Population decoding confirmed that VIP encoded intended action number and reflected systematic over- and underestimation errors. Our findings reveal a neural mechanism by which the primate brain converts abstract numerical input into goal-directed motor output, providing insight into the sensorimotor foundations of numerical cognition.

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.

figshare 31096300

License: CC-BY-4.0
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Languages: MATLAB (6)
Size: 14 files, 6 scripts
Software Heritage: not checked
Found in: “Code availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
  • 28 September 2026: the link answers (HTTP 200)
7 files
At the source:

Code availability

The data and code that support the findings of this study are available from Figshare (10.6084/m9.figshare.31096300).

Reproduced under the paper's license (CC BY), from the paper cited above.

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

Data links

Data availability

Source data are provided with this paper Source data are provided with this paper.

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

Recorded: type, language, journal, volume, issue, pages, dates, 3 authors, 2 keywords, 9 MeSH terms, 1 funder, 49 references.

Cite

This paper

Seidler, L. E., Westendorff, S., & Nieder, A. (2026). Sensorimotor transformation of number in the primate parietal cortex. Nature communications, 17(1), 4227. https://doi.org/10.1038/s41467-026-73037-9

BibTeX

@article{seidler2026sensorimotor,
author = {Seidler, Laura E and Westendorff, Stephanie and Nieder, Andreas},
title = {{Sensorimotor transformation of number in the primate parietal cortex}},
journal = {Nature communications},
year = {2026},
month = may,
volume = {17},
number = {1},
pages = {4227},
publisher = {Nature Portfolio},
issn = {2041-1723},
doi = {10.1038/s41467-026-73037-9},
url = {https://doi.org/10.1038/s41467-026-73037-9},
pmid = {42115156},
pmcid = {PMC13161402}
}

RIS

TY - JOUR
AU - Seidler, Laura E
AU - Westendorff, Stephanie
AU - Nieder, Andreas
TI - Sensorimotor transformation of number in the primate parietal cortex
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/05/11
VL - 17
IS - 1
SP - 4227
SN - 2041-1723
PB - Nature Portfolio
DO - 10.1038/s41467-026-73037-9
UR - https://doi.org/10.1038/s41467-026-73037-9
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-73037-9",
"type": "article-journal",
"title": "Sensorimotor transformation of number in the primate parietal cortex",
"container-title": "Nature communications",
"author": [
{
"family": "Seidler",
"given": "Laura E"
},
{
"family": "Westendorff",
"given": "Stephanie"
},
{
"family": "Nieder",
"given": "Andreas"
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "4227",
"DOI": "10.1038/s41467-026-73037-9",
"PMID": "42115156",
"PMCID": "PMC13161402",
"ISSN": "2041-1723",
"publisher": "Nature Portfolio",
"URL": "https://doi.org/10.1038/s41467-026-73037-9",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
11
]
]
}
}

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/s41467-022-34457-5
Number selective sensorimotor neurons in the crow translate perceived numerosity into number of actions.
Journal: Nature communications
In common: 21 references, author Andreas Nieder
[2] doi:10.1371/journal.pbio.3002520 [code]
Sequential neuronal processing of number values, abstract decision, and action in the primate prefrontal cortex.
Journal: PLoS biology
In common: Statistics and Machine Learning Toolbox, 4 references, author Andreas Nieder
[3] doi:10.1098/rstb.2020.0529 [code]
The evolution of quantitative sensitivity.
Journal: Philosophical transactions of the Royal Society of London. Series B, Biological sciences
In common: 4 references, author Andreas Nieder
[4] doi:10.1038/s41467-024-55599-8 [code]
Hierarchical representations of relative numerical magnitudes in the human frontoparietal cortex.
Journal: Nature communications
In common: 7 references
[5] doi:10.1126/sciadv.adh8685
The neuronal implementation of representational geometry in primate prefrontal cortex.
Journal: Science advances
In common: non-human primate, 3 references, author Andreas Nieder
[6] doi:10.1038/s41467-022-29030-z [code]
Numerosity tuning in human association cortices and local image contrast representations in early visual cortex.
Journal: Nature communications
In common: Statistics and Machine Learning Toolbox, 5 references
[7] doi:10.1038/s42003-025-09041-4 [code]
Numerosity adaptation suppresses early visual responses.
Journal: Communications biology
In common: Statistics and Machine Learning Toolbox, 5 references
[8] doi:10.1038/s42003-025-08395-z [code]
Distinct neural representational geometries of numerosity in early visual and association regions across visual streams.
Journal: Communications biology
In common: Statistics and Machine Learning Toolbox, 5 references
[9] doi:10.1038/s42003-026-09752-2 [code]
Population coding for visual and auditory quantity in human numerotopic maps.
Journal: Communications biology
In common: Statistics and Machine Learning Toolbox, 2 references, author Andreas Nieder
[10] doi:10.1093/cercor/bhac108 [code]
A connectome-based neuromarker of nonverbal number acuity and arithmetic skills.
Journal: Cerebral cortex (New York, N.Y. : 1991)
In common: 5 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/s41467-026-73037-9.svg)](https://openscicode.org/badge/doi/10.1038/s41467-026-73037-9)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1038/s41467-026-73037-9.svg
   :target: https://openscicode.org/badge/doi/10.1038/s41467-026-73037-9
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41467-026-73037-9"><img src="https://openscicode.org/badge/doi/10.1038/s41467-026-73037-9.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.