OSCR

Identity-specific reward expectations in orbitofrontal cortex guide goal-directed choices.

Code ↔ Paper

The paper beside its authors' code: matches between them have not been computed for this paper yet.

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 · 89 lines · 3.2 KB · no license

  1. function aligned_condition_searchlight(data_directory, subject)
  2. load(fullfile(data_directory, subject, 'whole_brain_data.mat'))
  3. [a,x,y,z]=size(data(1).pav_volume);
  4. precision=3.2;
  5. x_coordinate=1:x;
  6. y_coordinate=1:y;
  7. z_coordinate=1:z;
  8. [xi, yi, zi] = ndgrid(x_coordinate, y_coordinate, z_coordinate);
  9. index=sub2ind( [x,y,z], xi(:), yi(:),zi(:));
  10. brain_indexes = [xi(:), yi(:), zi(:) index];
  11. training_pairs=[1,3;2,4;];
  12. testing_pairs=[1,3;2,4;5,10];
  13. training_data=[];
  14. training_numeric_label=[];
  15. for v=2:(length(data)-2)
  16. training_data=[training_data; data(v).pav_volume];
  17. training_numeric_label=[training_numeric_label;data(v).pav_numeric_label'];
  18. end
  19. testing_data=[];
  20. testing_numeric_label=[];
  21. for run=1:length(data)
  22. testing_data=[testing_data; data(run).test_volume];
  23. testing_numeric_label=[testing_numeric_label; data(run).test_numeric_label'];
  24. end
  25. training_subset=training_data(ismember(training_numeric_label,training_pairs(:)), :, :, :);
  26. training_subset_labels=training_numeric_label(ismember(training_numeric_label,training_pairs(:)));
  27. training_subset_labels_standardized=double(ismember(training_subset_labels,training_pairs(:,1)));
  28. testing_data=testing_data(ismember(testing_numeric_label,testing_pairs(:)), :, :, :);
  29. testing_numeric_label=testing_numeric_label(ismember(testing_numeric_label, testing_pairs));
  30. testing_numeric_label=double(ismember(testing_numeric_label, testing_pairs(:,1)));
  31. accuracy_array=nan(length(brain_indexes), 1);
  32. display(['Starting subject ' subject])
  33. parfor ind=1:length(index)
  34. iX=brain_indexes(ind,1);iY=brain_indexes(ind,2);iZ=brain_indexes(ind,3);
  35. voxel_distances_to_center=sqrt(sum((brain_indexes(:, 1:3)- [iX iY iZ]).^2, 2));
  36. within_radius_voxel=brain_indexes(voxel_distances_to_center<precision, 1:3);
  37. within_radius_voxel_indicies=sub2ind([x,y,z], within_radius_voxel(:,1), within_radius_voxel(:,2), within_radius_voxel(:,3));
  38. training_slab=training_subset(:,:);
  39. training_slab = training_slab(:, within_radius_voxel_indicies);
  40. testing_slab=testing_data(:,:);
  41. testing_slab = testing_slab(:, within_radius_voxel_indicies);
  42. nanVox=any(isnan(training_slab)) | any(isnan(testing_slab));
  43. zeroVox=any(training_slab==0) | any(testing_slab==0) ;
  44. if (sum(~nanVox & ~zeroVox))<10
  45. continue
  46. else
  47. label_1_mean=nanmean(training_slab(training_subset_labels_standardized==1,:), 1);
  48. label_2_mean=nanmean(training_slab(training_subset_labels_standardized==0,:), 1);
  49. mean_training_subset=[label_1_mean; label_2_mean];
  50. z_training_slab=zscore(mean_training_subset(:, (~nanVox & ~zeroVox)), 0, 2);
  51. z_testing_slab=zscore(testing_slab(:, (~nanVox & ~zeroVox)), 0, 2);
  52. distance_from_templates=pdist2(z_training_slab, z_testing_slab, 'correlation');
  53. test_matrix=[1-testing_numeric_label';testing_numeric_label'];
  54. accuracy=corr(distance_from_templates(:), test_matrix(:));
  55. accuracy_array(ind)=atanh(accuracy);
  56. end
  57. end
  58. decoding_volume=nan(x,y,z);
  59. decoding_volume(index)=accuracy_array;
  60. save(fullfile(data_directory, subject, 'decoded_whole_brain_volume.mat'), 'decoding_volume');

aligned_condition_searchlight.m, no license · at the source

Overview

Authors: Phillip P Witkowski1, Noelle Henein2, Nicole Moussa3, Geoffrey Schoenbaum1, Thorsten Kahnt1
ORCID iDs: Thorsten Kahnt
  1. National Institute on Drug Abuse Intramural Research Program, National Institutes of Health, Baltimore, Maryland, United States of America
  2. West Virginia School of Osteopathic Medicine, Lewisburg, West Virginia, United States of America
  3. Department of Psychology, University of Maryland, College Park, Maryland, United States of America
Journal: PLoS biology, volume 24, issue 7, article e3003829
Dates: received 9 February 2026; accepted 15 May 2026; published online 9 July 2026
Type: Research article · Language: English
License: none stated
Identifiers: DOI 10.1371/journal.pbio.3003829 · PMID 42424266 · PMCID PMC13349123 · OpenAlex W7167822084
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: human (organism), cognitive (subfield)
Methods: Preprocessing, Connectivity, Statistics, fMRI & imaging, Single-unit activity, calcium imaging, Machine learning
MeSH: Choice Behavior*, Goals*, Prefrontal Cortex*, Reward*, Adult, Brain Mapping, Cues, Decision Making, Female, Humans, Magnetic Resonance Imaging, Male, Motivation, Nucleus Accumbens, Outcome Expectations (* major topic)
Topic: Neural and Behavioral Psychology Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: Intramural NIH HHS (ZIA DA000587, ZIA DA000642)
Citations: cited by 1 paper (Europe PMC); 65 references in the paper
Notices: A comment on this paper has been published (42430285, from Europe PMC)

Abstract

The abstract is not reproduced here: the paper's license (none stated) 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.

OSF 24dkw

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Languages: MATLAB (3), Jupyter (1)
Size: 14 files, 4 scripts
Software Heritage: not checked
Found in: “Data Availability”
Holds: 1 notebook
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Statistics and Machine Learning Toolbox (3 files), Matplotlib (1 file), NiBabel (1 file), Nilearn (1 file), NumPy (1 file), pandas (1 file), SciPy (1 file), seaborn (1 file), statsmodels (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
4 files

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;
  • 4 scripts, each with its path and the digest of its content;
  • no match between paragraphs and code yet;
  • 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

Code and data availability statement

The paper has a code and data availability statement. Its license (none stated) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1371/journal.pbio.3003829.

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, 5 authors, 15 MeSH terms, 1 funder, 64 references, 1 integrity notice.

Cite

This paper

Witkowski, P. P., Henein, N., Moussa, N., Schoenbaum, G., & Kahnt, T. (2026). Identity-specific reward expectations in orbitofrontal cortex guide goal-directed choices. PLoS biology, 24(7), e3003829. https://doi.org/10.1371/journal.pbio.3003829

BibTeX

@article{witkowski2026identity,
author = {Witkowski, Phillip P and Henein, Noelle and Moussa, Nicole and Schoenbaum, Geoffrey and Kahnt, Thorsten},
title = {{Identity-specific reward expectations in orbitofrontal cortex guide goal-directed choices}},
journal = {PLoS biology},
year = {2026},
month = jul,
volume = {24},
number = {7},
pages = {e3003829},
publisher = {PLOS},
issn = {1544-9173},
doi = {10.1371/journal.pbio.3003829},
url = {https://doi.org/10.1371/journal.pbio.3003829},
pmid = {42424266},
pmcid = {PMC13349123}
}

RIS

TY - JOUR
AU - Witkowski, Phillip P
AU - Henein, Noelle
AU - Moussa, Nicole
AU - Schoenbaum, Geoffrey
AU - Kahnt, Thorsten
TI - Identity-specific reward expectations in orbitofrontal cortex guide goal-directed choices
T2 - PLoS biology
J2 - PLoS Biol
PY - 2026
DA - 2026/07/09
VL - 24
IS - 7
SP - e3003829
SN - 1544-9173
PB - PLOS
DO - 10.1371/journal.pbio.3003829
UR - https://doi.org/10.1371/journal.pbio.3003829
LA - en
ER -

CSL-JSON

{
"id": "10.1371/journal.pbio.3003829",
"type": "article-journal",
"title": "Identity-specific reward expectations in orbitofrontal cortex guide goal-directed choices",
"container-title": "PLoS biology",
"author": [
{
"family": "Witkowski",
"given": "Phillip P"
},
{
"family": "Henein",
"given": "Noelle"
},
{
"family": "Moussa",
"given": "Nicole"
},
{
"family": "Schoenbaum",
"given": "Geoffrey"
},
{
"family": "Kahnt",
"given": "Thorsten"
}
],
"container-title-short": "PLoS Biol",
"volume": "24",
"issue": "7",
"page": "e3003829",
"DOI": "10.1371/journal.pbio.3003829",
"PMID": "42424266",
"PMCID": "PMC13349123",
"ISSN": "1544-9173",
"publisher": "PLOS",
"URL": "https://doi.org/10.1371/journal.pbio.3003829",
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
9
]
]
}
}

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-024-45880-1 [code]
Midbrain signaling of identity prediction errors depends on orbitofrontal cortex networks.
Journal: Nature communications
In common: Statistics and Machine Learning Toolbox, cognitive, 9 references, author Thorsten Kahnt
[2] doi:10.1038/s42003-024-07253-8
Modality-specific and modality-general representations of subjective value in frontal cortex.
Journal: Communications biology
In common: 13 references
[3] doi:10.1038/s41467-026-69330-2 [code]
Persistent representation of a prior schema in the orbitofrontal cortex facilitates learning of a conflicting schema.
Journal: Nature communications
In common: statsmodels, seaborn, pandas, 3 other tools, cognitive, 8 references
[4] doi:10.7554/elife.107566
The influence of nucleus accumbens shell D1 and D2 neurons on outcome-specific Pavlovian instrumental transfer.
Journal: eLife
In common: 10 references
[5] doi:10.7554/elife.101841 [code]
Neural mechanisms of credit assignment for delayed outcomes during contingent learning.
Journal: eLife
In common: Statistics and Machine Learning Toolbox, cognitive, 10 references
[6] doi:10.1038/s42003-025-07588-w [code]
The medial and lateral orbitofrontal cortex jointly represent the cognitive map of task space.
Journal: Communications biology
In common: Nilearn, NiBabel, seaborn, 4 other tools, cognitive, 5 references
[7] doi:10.1162/imag_a_00362 [code]
Leveraging multi-echo EPI to enhance BOLD sensitivity in task-based olfactory fMRI.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: Nilearn, statsmodels, NiBabel, 5 other tools, cognitive, 2 references
[8] doi:10.1038/s41467-025-65766-0 [code]
Interaction and functional specialization across a distributed neural circuit for flexible task control in macaques.
Journal: Nature communications
In common: Statistics and Machine Learning Toolbox, 7 references
[9] doi:10.1038/s41467-026-73001-7 [code]
Separable and integrated pleasantness coding for appetitive and aversive odors across olfactory and ventral prefrontal cortices.
Journal: Nature communications
In common: Statistics and Machine Learning Toolbox, cognitive, 3 references, author Thorsten Kahnt
[10] doi:10.1016/j.cub.2022.08.010 [code]
Distinct neural representations for prosocial and self-benefiting effort.
Journal: Current biology : CB
In common: Nilearn, NiBabel, seaborn, 5 other tools, 2 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.1371/journal.pbio.3003829.svg)](https://openscicode.org/badge/doi/10.1371/journal.pbio.3003829)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1371/journal.pbio.3003829.svg
   :target: https://openscicode.org/badge/doi/10.1371/journal.pbio.3003829
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1371/journal.pbio.3003829"><img src="https://openscicode.org/badge/doi/10.1371/journal.pbio.3003829.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.