OSCR

An abstract relational map emerges in the human medial prefrontal cortex with consolidation.

Code ↔ Paper

10 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 10 matches · 7 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
  1. [1] § Method Details › fMRI data acquisition and pre-processing ↔ utilities/freesurfer/ssbloch.m, the whole file · a weak match · score 0.88 · echo planar imaging, field inhomogeneities, flip angle, coil, transverse, TE
  2. [2] § Method Details › fMRI data acquisition and pre-processing ↔ Scripts/RSA_analyses/utilities/rsaToolbox/+rsa/+fmri/spatiallySmooth4DfMRI_mm.m, the whole file · a weak match · score 0.71 · Gaussian kernel, fMRI, mm, monitor, box, slices
  3. [3] § Quantification and Statistical Analysis › fMRI data analysis: Representational Similarity Analysis ↔ irrelDist_vs_mPfcSwitchStrength.m, the whole file · a weak match · score 0.70 · beta maps, switch trials, mPFC, irrelevant distances, MNI, scanning
  4. [4] § Quantification and Statistical Analysis › fMRI data analysis: Repetition suppression ↔ irrelDist_vs_mPfcSwitchStrength.m, the whole file · a weak match · score 0.67 · parametric modulators, switch trials, SPM, onsets, preceding, regressor
  5. [5] § Quantification and Statistical Analysis › Representations of the relevant and irrelevant graphs ↔ rsa/rsaAlonWrapper.m, lines 84–188 · score 0.66 · FWE correction, Brodmann, peak, entorhinal, Activations, ROIs
  6. [6] § Results › Representations of both the relevant and irrelevant graphs in the MTL ↔ rsa/volMniRsa/collapseRdm_roi.m, the whole file · a weak match · score 0.61 · diagonal elements, symmetric matrix, distance matrices, RDM, ROI, RSA
  7. [7] § Results › Representations of both the relevant and irrelevant graphs in the MTL ↔ rsa/volMniRsa/collapseRdm1324_roi.m, the whole file · a weak match · score 0.61 · diagonal elements, symmetric matrix, distance matrices, ROI, RSA, RDM
  8. [8] § Quantification and Statistical Analysis › fMRI data analysis: Representational Similarity Analysis ↔ utilities/runRSA_withinCluster.m, the whole file · a weak match · score 0.59 · MNI space, correlation distances, cluster, GLM, betas, RSA
  9. [9] § Results › Subjects learn and flexibly switch between two graphs with the same structure ↔ Scripts/Figure2.m, lines 244–376 · score 0.57 · Wilcoxon signed rank, 1–2, dz, Cohen, CI, correlated
  10. [10] § Quantification and Statistical Analysis › Representations of the relevant and irrelevant graphs ↔ utilities/surfing/python/afni_surface_alphasim.py, lines 430–473 · score 0.52 · uncorrected threshold, survived, anatomical, temporal, cluster, masks

Paper

Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

MATLAB · 100 lines · 5.8 KB · no license · 2 matches

  1. clear
  2. close all
  3. spmPath = '/vols/Scratch/abaram/MATLAB/spm12';
  4. addpath(spmPath);
  5. root='/home/fs0/mgarvert/scratch/ManyMaps/imagingData';
  6. subs = {'1','2','3','4','5','6','7','8','9','10','11','12','13','14',...
  7. '16','19','20','21','22','23','24','25'};
  8. for s = 1:length(subs)
  9. subStr = ['Subj_' subs{s}];
  10. for session = 1:2
  11. sessionStr = ['session_' num2str(session)];
  12. load(strtrim(ls(['/vols/Scratch/mgarvert/ManyMaps/scan_1.1/datafiles/Subj_',subs{s},'/*_session_',num2str(session),'/data_',subs{s},'_',num2str(session),'.mat'])))
  13. for r = 1:4
  14. runStr = ['run_' num2str(r)];
  15. d = data.scan{r}.objDiff;
  16. objTr = data.scan{r}; % object trials
  17. % get irrelevant distance, indexed in object trials
  18. % Exclude first trial: doesn't have a preceding object
  19. ix = 2:length(objTr.map); % ignore first trial because it doesn't have a preceding object
  20. curr_obj = data.scan{r}.seq(1,ix);
  21. prev_obj = data.scan{r}.seq(1,ix-1);
  22. curr_obj(curr_obj>17) = curr_obj(curr_obj>17) -17; % subtract 17 if context 2
  23. prev_obj(prev_obj>17) = prev_obj(prev_obj>17) -17; % subtract 17 if context 2
  24. for i = 1:length(curr_obj) % go through all the objects
  25. m = objTr.map(i);
  26. dRel(i) = data.map{m,m}(curr_obj(i),prev_obj(i)); % compute the distance between the two stimuli on the irrelevant$
  27. dIrrel(i) = data.map{m,mod(m,2)+1}(curr_obj(i),prev_obj(i)); % compute the distance between the two stimuli on the irrelev$
  28. end
  29. % add back the first trial so that the trial indeces match
  30. dRel = [nan dRel];
  31. dIrrel = [nan dIrrel];
  32. % get switch trials, indexed in Obj trials
  33. switchTrials = find([false objTr.map(2:end) ~= objTr.map(1:end-1)]);
  34. stayTrials = find([false objTr.map(2:end) == objTr.map(1:end-1)]);
  35. stayWithPrecedingSwitchInds = stayTrials(ismember(stayTrials-1,switchTrials));
  36. stayWithoutPrecedingSwitchInds = setdiff(stayTrials,stayWithPrecedingSwitchInds);
  37. switchWithSuccedingStayInds = switchTrials(ismember(switchTrials+1,stayTrials)); % same as stayWithPrecedingSwitch-1
  38. irrelDistInValidStayTrials = dIrrel(stayWithPrecedingSwitchInds);
  39. % load onsets of all objects
  40. onsetsAllObj = load(fullfile(root,subStr,sessionStr,'behaviour','EVs',[subStr '_' sessionStr '_' runStr],'allObjects.txt'));
  41. % get onsets of valid stay trials
  42. onsetsStayWithPrecedingSwitch = onsetsAllObj(stayWithPrecedingSwitchInds,:);
  43. stayWithPrecedingSwitch_irrelDist = onsetsStayWithPrecedingSwitch;
  44. stayWithPrecedingSwitch_irrelDist(:,3) = irrelDistInValidStayTrials;
  45. onsetsStayWithoutPrecedingSwitch = onsetsAllObj(stayWithoutPrecedingSwitchInds,:);
  46. % get all non valid stay trials onsets
  47. % get parameteric modulator of mPFC signal in preceding switch
  48. % trials
  49. % get mask
  50. mask = 'spmT_switch_stay_session_2_0001_mask_1p5_mPFC'; %switchMinusStay from design_322
  51. mask_file = fullfile(root,'masks',[mask, '.nii']);
  52. mask_nii = spm_vol(mask_file);
  53. mask_data = spm_read_vols(mask_nii);
  54. % single-trial betas spmDir
  55. spmDirMni = fullfile(root,subStr,sessionStr,'1stLevel','design_401_noSmooth','MNI');
  56. nRegsPerRun = 144; % including nuisance regressors - choiceTrials, buttonPress, 6*motionParams
  57. stayWithPrecedingSwitch_switchMPfc = stayWithPrecedingSwitch_irrelDist; % get the onsets and the 3-col structure
  58. for iValidStay = 1:length(stayWithPrecedingSwitchInds)
  59. % for each valid stay trial, load single-trial beta map of the
  60. % preceding switch trial
  61. betaNum = (r-1)*nRegsPerRun + switchWithSuccedingStayInds(iValidStay);
  62. betaNumStr = sprintf('%0*d', 4, betaNum);
  63. betaFile = fullfile(spmDirMni,['MNI_beta_' betaNumStr '.nii']);
  64. beta_nii = spm_vol(betaFile);
  65. beta_data = spm_read_vols(beta_nii);
  66. meanSignalInMask = mean(beta_data(mask_data ~= 0),'omitnan');
  67. % update in 3-col regressor
  68. stayWithPrecedingSwitch_switchMPfc(iValidStay,3) = meanSignalInMask;
  69. end
  70. % caculate the interaction regressor of the two regressors
  71. % get the 3-col structure and onsets
  72. stayWithPrecedingSwitch_switchMPfc_X_irrelDis = stayWithPrecedingSwitch_switchMPfc;
  73. % demean the original regs and calculate interaction
  74. stayWithPrecedingSwitch_switchMPfc_X_irrelDis(:,3) = (stayWithPrecedingSwitch_switchMPfc(:,3)-mean(stayWithPrecedingSwitch_switchMPfc(:,3))) .* (stayWithPrecedingSwitch_irrelDist(:,3)-mean(stayWithPrecedingSwitch_irrelDist(:,3)));
  75. % save 3-col regressor txt files
  76. dlmwrite(fullfile(root,subStr,sessionStr,'behaviour','EVs',[subStr '_' sessionStr '_' runStr],'stayWithPrecedingSwitch_switchMPfc.txt'), stayWithPrecedingSwitch_switchMPfc, 'delimiter', ' ');
  77. dlmwrite(fullfile(root,subStr,sessionStr,'behaviour','EVs',[subStr '_' sessionStr '_' runStr],'stayWithPrecedingSwitch_irrelDist.txt'), stayWithPrecedingSwitch_irrelDist, 'delimiter', ' ');
  78. dlmwrite(fullfile(root,subStr,sessionStr,'behaviour','EVs',[subStr '_' sessionStr '_' runStr],'stayWithPrecedingSwitch_switchMPfc_X_irrelDis.txt'), stayWithPrecedingSwitch_switchMPfc_X_irrelDis, 'delimiter', ' ');
  79. dlmwrite(fullfile(root,subStr,sessionStr,'behaviour','EVs',[subStr '_' sessionStr '_' runStr],'stayWithoutPrecedingSwitch.txt'), onsetsStayWithPrecedingSwitch, 'delimiter', ' ');
  80. end
  81. end
  82. end

irrelDist_vs_mPfcSwitchStrength.m at commit a2b92bb, no license · at the source

Overview

Authors: Alon B Baram1, Hamed Nili1,2, Ines Barreiros1, Veronika Samborska1, Timothy EJ Behrens1,3, Mona M Garvert1,4
  1. Oxford Centre for Integrative Neuroimaging, FMRIB, Nuffield Department of Clinical Neurosciences, University of Oxford, John Radcliffe Hospital, Headington, Oxford OX3 9DA, UK
  2. Institute for Neural Information Processing, Center for Molecular Neurobiology (ZMNH), University Medical Center Hamburg-Eppendorf (UKE), Falkenried 94, 20251 Hamburg, Germany
  3. Sainsbury Wellcome Centre for Neural Circuits and Behaviour, UCL, 25 Howland St, London W1T 4JG, UK
  4. Junior professorship of Neuroscience, Faculty of Human Sciences, Julius-Maximilians-University of Würzburg, Sanderring 2, 97070 Würzburg, Germany
Journal: Current biology : CB, volume 36, issue 13, pages 3315-3325.e4
Dates: published online 24 June 2026; in print 6 July 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1016/j.cub.2026.05.068 · PMID 42341750 · PMCID PMC7619258 · OpenAlex W4403329510
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: fMRI (modality), human (organism), systems (subfield)
Methods: Statistics, Machine learning, fMRI & imaging
Keywords: fMRI, abstraction, Consolidation, Schemas, Relational Representation, Cognitive Maps, Medial Pfc
MeSH: Learning*, Prefrontal Cortex*, Adult, Brain Mapping, Female, Humans, Magnetic Resonance Imaging, Male, Young Adult (* major topic)
Topic: Memory and Neural Mechanisms (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: Wellcome Trust (203147/Z/16/Z, 219627/Z/19/Z, 203139/Z/16/Z); European Research Council (101221509); Gatsby Charitable Foundation; Universität Würzburg; James S. McDonnell Foundation
Citations: cited by 2 papers (Europe PMC); 74 references in the paper
Research resources: Matlab RRID:SCR_001622, FSL RRID:SCR_002823, Python RRID:SCR_008394

Abstract

Understanding the structure of a problem, such as the relationships between stimuli, supports fast learning and flexible reasoning. Rodent work has suggested that the abstraction of structure away from sensory details occurs over the course of multiple days in the cortex. However, direct evidence of such explicit relational representations in humans is scarce, and it is unclear whether they emerge on similar timescales. Here, we combine a graph-learning paradigm with functional magnetic resonance imaging (fMRI) to look for such a relational map in the human brain. We first trained participants on two associative graphs with the same structure. We then scanned participants twice while they used this knowledge, with several days between scanning sessions. Using fMRI repetition suppression, we found an abstract relational representation in the medial prefrontal cortex (mPFC) that emerged across the two scanning sessions. This finding was also replicated using representational similarity analysis (RSA). These results shed new light on how neural representations organizing relational knowledge change with time.

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

Repositories

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

alonbaram2/many-maps-alon

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: a2b92bb483103c4a0c43d9cae9e1815a636ef3db, 19 May 2026
Languages: MATLAB (902), C/C++ (89), C++ (45), Python (17), C (16), Shell (14)
Size: 1,510 files, 1,083 scripts
Software Heritage: not archived
Found in: the resources table
Holds: tests, documentation
Not found: README, license file, CITATION.cff, environment file, continuous integration
Tools: Statistics and Machine Learning Toolbox (94 files), SPM (82 files), FreeSurfer (57 files), FSL (17 files), NumPy (11 files), Image Processing Toolbox (10 files), GIfTI library for MATLAB (6 files), NiBabel (5 files), Signal Processing Toolbox (2 files), SciPy (2 files), AFNI (1 file), Optimization Toolbox (1 file), Matplotlib (1 file), Tools for NIfTI and ANALYZE image (MATLAB) (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
1,083 files

alonbaram2/CurrentBiology2026

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 7885bc7d22f64171565e4bdf6e323ebdd26e0e62, 28 May 2026
Languages: MATLAB (249), Jupyter (3), C (3)
Size: 1,225 files, 255 scripts
Software Heritage: not archived
Found in: “Data and code availability”
Holds: README, documentation, 3 notebooks
Not found: license file, CITATION.cff, environment file, tests, continuous integration
Tools: Statistics and Machine Learning Toolbox (36 files), SPM (21 files), Matplotlib (3 files), NumPy (3 files), pandas (3 files), seaborn (3 files), FSL (2 files), GIfTI library for MATLAB (2 files), SciPy (2 files), statsmodels (2 files), FreeSurfer (1 file), Image Processing Toolbox (1 file), Signal Processing Toolbox (1 file), Tools for NIfTI and ANALYZE image (MATLAB) (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
256 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:

  • 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 1,338 scripts, each with its path and the digest of its content;
  • 10 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 Availability Statement

This study did not generate any new material contributions.

The subject-specific neuroimaging data reported in this study cannot be deposited in a public repository because consent for public data sharing was not obtained at the time of data collection due to the ethics guidelines at the time (2017). Summary statistics describing these data, pseudonymized behavioral data, and all original code have been deposited at https://github.com/alonbaram2/CurrentBiology2026. Any additional information required to reanalyze the data reported in this paper is available from one of the corresponding authors upon request.

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 2, 28 September 2026

  • Publisher: n/a → Elsevier BV

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 6 authors, 7 keywords, 9 MeSH terms, 5 funders, 74 references, 3 RRIDs.

Cite

This paper

Baram, A. B., Nili, H., Barreiros, I., Samborska, V., Behrens, T. E., & Garvert, M. M. (2026). An abstract relational map emerges in the human medial prefrontal cortex with consolidation. Current biology : CB, 36(13), 3315-3325.e4. https://doi.org/10.1016/j.cub.2026.05.068

BibTeX

@article{baram2026abstract,
author = {Baram, Alon B and Nili, Hamed and Barreiros, Ines and Samborska, Veronika and Behrens, Timothy EJ and Garvert, Mona M},
title = {{An abstract relational map emerges in the human medial prefrontal cortex with consolidation}},
journal = {Current biology : CB},
year = {2026},
month = jun,
volume = {36},
number = {13},
pages = {3315--3325.e4},
publisher = {Elsevier BV},
issn = {0960-9822},
doi = {10.1016/j.cub.2026.05.068},
url = {https://doi.org/10.1016/j.cub.2026.05.068},
pmid = {42341750},
pmcid = {PMC7619258}
}

RIS

TY - JOUR
AU - Baram, Alon B
AU - Nili, Hamed
AU - Barreiros, Ines
AU - Samborska, Veronika
AU - Behrens, Timothy EJ
AU - Garvert, Mona M
TI - An abstract relational map emerges in the human medial prefrontal cortex with consolidation
T2 - Current biology : CB
J2 - Curr Biol
PY - 2026
DA - 2026/06/24
VL - 36
IS - 13
SP - 3315
EP - 3325.e4
SN - 0960-9822
PB - Elsevier BV
DO - 10.1016/j.cub.2026.05.068
UR - https://doi.org/10.1016/j.cub.2026.05.068
LA - en
ER -

CSL-JSON

{
"id": "10.1016/j.cub.2026.05.068",
"type": "article-journal",
"title": "An abstract relational map emerges in the human medial prefrontal cortex with consolidation",
"container-title": "Current biology : CB",
"author": [
{
"family": "Baram",
"given": "Alon B"
},
{
"family": "Nili",
"given": "Hamed"
},
{
"family": "Barreiros",
"given": "Ines"
},
{
"family": "Samborska",
"given": "Veronika"
},
{
"family": "Behrens",
"given": "Timothy EJ"
},
{
"family": "Garvert",
"given": "Mona M"
}
],
"container-title-short": "Curr Biol",
"volume": "36",
"issue": "13",
"page": "3315-3325.e4",
"DOI": "10.1016/j.cub.2026.05.068",
"PMID": "42341750",
"PMCID": "PMC7619258",
"ISSN": "0960-9822",
"publisher": "Elsevier BV",
"URL": "https://doi.org/10.1016/j.cub.2026.05.068",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
24
]
]
}
}

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.1371/journal.pbio.3003755 [code]
Action information is integrated into entorhinal representations of conceptual space and is reflected in eye movements.
Journal: PLoS biology
In common: statsmodels, NiBabel, seaborn, 4 other tools, 14 references
[2] doi:10.1038/s41467-026-71151-2 [code]
Common and distinct neural correlates of social interaction processing and theory of mind in narratives.
Journal: Nature communications
In common: AFNI, GIfTI library for MATLAB, Optimization Toolbox, 13 other tools
[3] doi:10.1016/j.neuron.2026.04.011 [code]
Precision fMRI reveals densely interdigitated network patches with conserved motifs in the lateral prefrontal cortex.
Journal: Neuron
In common: AFNI, GIfTI library for MATLAB, Tools for NIfTI and ANALYZE image (MATLAB), 9 other tools, fMRI, systems, 2 references
[4] doi:10.1038/s41586-026-10631-3 [code]
A prognostic human brain network for diffuse midline glioma.
Journal: Nature
In common: GIfTI library for MATLAB, Tools for NIfTI and ANALYZE image (MATLAB), Optimization Toolbox, 12 other tools, 1 reference
[5] doi:10.1038/s41467-026-73668-y [code]
Convergent and divergent brain-cognition development in early adolescence.
Journal: Nature communications
In common: AFNI, GIfTI library for MATLAB, Tools for NIfTI and ANALYZE image (MATLAB), 12 other tools, fMRI
[6] doi:10.1038/s41467-026-76452-0 [code]
Music evokes shared neural representations of imagined narratives across sensory modalities.
Journal: Nature communications
In common: AFNI, GIfTI library for MATLAB, Tools for NIfTI and ANALYZE image (MATLAB), 12 other tools
[7] doi:10.1371/journal.pbio.3003856 [code]
Aging and metabolism contribute separately to brain-body health.
Journal: PLoS biology
In common: AFNI, GIfTI library for MATLAB, Tools for NIfTI and ANALYZE image (MATLAB), 12 other tools
[8] doi:10.1038/s42003-026-10276-y [code]
The cellular correlates and adolescent reorganisation of cortical myelination networks in the common marmoset.
Journal: Communications biology
In common: AFNI, GIfTI library for MATLAB, Optimization Toolbox, 12 other tools
[9] doi:10.1002/hbm.70577 [code]
Disgust Propensity, Not Disgust Sensitivity, Shapes the Reactivity of a Subjective Disgust Circuit in Humans.
Journal: Human brain mapping
In common: AFNI, GIfTI library for MATLAB, Optimization Toolbox, 9 other tools, fMRI, systems, 1 reference
[10] doi:10.1002/hbm.70602 [code]
Neuroimaging Correlates of Post-Stroke Pain After Ischemic Stroke: Secondary Analysis of the INSPiRE-TMS Trial.
Journal: Human brain mapping
In common: GIfTI library for MATLAB, Tools for NIfTI and ANALYZE image (MATLAB), Optimization Toolbox, 11 other tools, 1 reference

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.

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: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.

Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.

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