OSCR

Adaptive behavior is guided by integrated representations of controlled and non-controlled information.

Code ↔ Paper

2 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 2 matches · all tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
  1. [1] § Methods › EEG data acquisition and preprocessing ↔ scripts/Preprocessing.m, the whole file · a weak match · score 0.92 · 0.1–50 Hz, 200–1500 ms, 500–1500 ms, EEGLAB, ICA, band
  2. [2] § Results › Decodable and separate representations of controlled and non-controlled associations ↔ scripts/Preprocessing.m, the whole file · a weak match · score 0.61 · linear discriminant, event, 1500 ms, ERP, channel, LDA

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 · 131 lines · 5.2 KB · no license · 2 matches

  1. clear;
  2. Datapath = ''; % edit to specify location
  3. eeglabPath = ''; % edit to specify location
  4. scriptPath = '';
  5. addpath(genpath(scriptPath))
  6. % of EEGlab
  7. addpath(genpath(eeglabPath))
  8. % run EEGlab
  9. [ALLEEG, EEG, CURRENTSET, ALLCOM] = eeglab;
  10. subjects = {'sub01', 'sub06', 'sub07', 'sub08', 'sub09', 'sub11', 'sub13', 'sub14', 'sub18', 'sub19', 'sub20', 'sub22', 'sub27', 'sub29', 'sub30', 'sub31', 'sub32', 'sub33', 'sub34', 'sub36', 'sub38', 'sub39', 'sub40', 'sub41'};
  11. %subjects = {'sub59', 'sub60'};
  12. %subjects = {'sub59'};
  13. event_types = {
  14. 'S1_MC_con',{'S111', 'S112'}; 'S1_MC_inc',{'S113', 'S114'};
  15. 'S1_MI_con',{'S125', 'S126'}; 'S1_MI_inc',{'S127', 'S128'};
  16. 'S2_MC_con',{'S215', 'S216'}; 'S2_MC_inc',{'S217', 'S218'};
  17. 'S2_MI_con',{'S221', 'S222'}; 'S2_MI_inc',{'S223', 'S224'};
  18. };
  19. correct_responses = {
  20. 'S1_MC_con',{'S131', 'S132'}; 'S1_MC_inc',{'S133', 'S134'};
  21. 'S1_MI_con',{'S145', 'S146'}; 'S1_MI_inc',{'S147', 'S148'};
  22. 'S2_MC_con',{'S235', 'S236'}; 'S2_MC_inc',{'S237', 'S238'};
  23. 'S2_MI_con',{'S241', 'S242'}; 'S2_MI_inc',{'S243', 'S244'};
  24. };
  25. filter = 1;
  26. filter_band = [0.1, 50]; % >0
  27. re_reference = 1;
  28. ica_epoch = 1;
  29. ica_epoch_interval = [-.5 1.5];
  30. ica = 1;
  31. epoch = 1;
  32. epoch_interval = [-.2 1.5];
  33. erps =[];
  34. for nsub=1:length(subjects)
  35. if filter
  36. dataFile = [subjects{nsub} '.vhdr'];
  37. EEG = pop_loadbv(Datapath, dataFile);
  38. EEG = pop_eegfilt( EEG, filter_band(1), 0, [], [0],[0],[0],['fir1'],[0]);
  39. EEG = pop_eegfilt( EEG, 0, filter_band(2), [], [0],[0],[0],['fir1'],[0]);
  40. EEG.filename = [subjects{nsub} '_filtered.set'];
  41. EEG.filepath = Datapath;
  42. EEG = pop_saveset(EEG, 'filename', EEG.filename, 'filepath', EEG.filepath);
  43. end;
  44. if re_reference
  45. dataFile = [subjects{nsub} '_filtered.set'];
  46. EEG = pop_loadset(dataFile, Datapath);
  47. %add a zero data channel
  48. EEG.data(end+1,:) = 0;
  49. EEG.nbchan = size(EEG.data,1);
  50. EEG.chanlocs(end+1).labels = 'Pz';
  51. %load chanloc information
  52. elecfile = 'D:\Apps\toolbox\eeglab2023.1\plugins\dipfit\standard_BESA\standard-10-5-cap385.elp';
  53. EEG = pop_chanedit(EEG, 'lookup',elecfile);
  54. %re-refer to average reference
  55. EEG = pop_reref( EEG, [], 'refstate',0);
  56. % elecfile = 'D:\Apps\toolbox\eeglab2023.1\plugins\dipfit\standard_BESA\standard-10-5-cap385.elp';
  57. % EEG = pop_chanedit(EEG, 'append',63,'changefield',{64,'labels','Pz'},'lookup',elecfile,'setref',{'1:64','Pz'});
  58. % EEG = pop_reref( EEG, [],'refloc',struct('labels',{'Pz'},'type',{'EEG'},'theta',{180},'radius',{0.25338},'X',{-60.7385},'Y',{-7.4383e-15},'Z',{59.4629},'sph_theta',{-180},'sph_phi',{44.392},'sph_radius',{85},'urchan',{64},'ref',{''},'datachan',{0}));
  59. %
  60. EEG.filename = [subjects{nsub} '_rerefered.set'];
  61. EEG.filepath = Datapath;
  62. EEG = pop_saveset(EEG, 'filename', EEG.filename, 'filepath', EEG.filepath);
  63. end;
  64. if ica_epoch
  65. dataFile = [subjects{nsub} '_rerefered.set'];
  66. EEG = pop_loadset(dataFile, Datapath);
  67. all_events ={};
  68. for n=1:length(event_types)
  69. all_events = [all_events{:} event_types{n,2}];
  70. end;
  71. EEG = pop_epoch( EEG, all_events, ica_epoch_interval, 'newname', EEG.comments, 'epochinfo', 'yes');
  72. % set the original trial index for single trial analysis
  73. for n=1:EEG.trials
  74. EEG.epoch(n).orig_trial_index = n;
  75. end;
  76. EEG.filename = [subjects{nsub} '_epoch_before_ica.set'];
  77. EEG.filepath = Datapath;
  78. EEG = pop_saveset(EEG, 'filename', EEG.filename, 'filepath', EEG.filepath);
  79. end;
  80. if ica
  81. dataFile = [subjects{nsub} '_epoch_before_ica.set'];
  82. EEG = pop_loadset(dataFile, Datapath);
  83. EEG = pop_runica( EEG, 'icatype', 'runica', 'extended', 1, 'stop', 1E-7);
  84. EEG.filename = [subjects{nsub} '_epoch_after_ica.set'];
  85. EEG.filepath = Datapath;
  86. EEG = pop_saveset(EEG, 'filename', EEG.filename, 'filepath', EEG.filepath);
  87. end;
  88. if epoch
  89. dataFile = [subjects{nsub} '_epoch_after_ica_deleted.set'];
  90. EEG = pop_loadset(dataFile, Datapath);
  91. epoch_EEG = EEG;
  92. % output the all trials except for extreme values
  93. all_trials_EEG = EEG;
  94. all_events ={};
  95. for n=1:length(event_types)
  96. all_events = [all_events{:} event_types{n,2}];
  97. end;
  98. EEG = pop_epoch(all_trials_EEG, all_events, epoch_interval, 'newname', EEG.comments, 'epochinfo', 'yes');
  99. for n=1:EEG.trials
  100. EEG.epoch(n).trial_index = n;
  101. end;
  102. % remove baseline
  103. EEG = pop_rmbase(EEG, [epoch_interval(1)*1000 0]);
  104. %Reject extreme values for linear discriminate analysis (LDA)
  105. rej_all_EEG = EEG;
  106. rejthresh = 80;
  107. [EEG extreme_indices] = pop_eegthresh(rej_all_EEG, 1, 1:64, -1*rejthresh, rejthresh, epoch_interval(1)*1000, epoch_interval(2)*1000, 0, 0);
  108. EEG = pop_rejepoch(rej_all_EEG, extreme_indices, 0);
  109. EEG.filename = [subjects{nsub} '_epoch_reject_extreme.set'];
  110. EEG.filepath = Datapath;
  111. EEG = pop_saveset(EEG, 'filename', EEG.filename, 'filepath', EEG.filepath);
  112. end;
  113. end;

Preprocessing.m, no license · at the source

Overview

  1. Department of Psychological and Brain Sciences, University of Iowa, Iowa City, United States
  2. Cognitive Control Collaborative, University of Iowa, Iowa City, United States
  3. Princeton Neuroscience Institute, Princeton University, Princeton, United States
  4. Centre for Neuroscience Studies, Queen’s University, Kingston, Canada
  5. Iowa Neuroscience Institute, University of Iowa, Iowa City, United States
Institutions: University of Iowa (United States); Princeton University (United States); Queen's University (Canada)
Journal: eLife, volume 14, article RP108673
Dates: published online 26 August 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.7554/elife.108673 · PMID 42647058 · PMCID PMC13516694 · OpenAlex W4414785560
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: EEG (modality), human (organism)
Methods: Spectral & time-frequency, Statistics, Smoothing, state filtering, decompositions, Machine learning, Preprocessing, Evoked potentials, Physiology & signal measures
Keywords: Human
MeSH: Adaptation, Psychological*, Brain*, Adult, Electroencephalography, Female, Humans, Male, Young Adult (* major topic)
Topic: Neural and Behavioral Psychology Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: NIMH NIH HHS (R01MH131559, R01 MH131559)
Citations: not cited yet (Europe PMC); 97 references in the paper

Abstract

Understanding how task knowledge is encoded neurally is crucial for uncovering the mechanisms underlying adaptive behavior. Here, we test the theory that all task information is integrated into a conjunctive task representation by investigating whether this representation simultaneously includes two types of associations that can guide behavior: stimulus–response (non-controlled) associations and stimulus–control (controlled) associations that inform how task focus should be adjusted to achieve goal-directed behavior. We extended the classic item-specific proportion congruency paradigm to dissociate the electroencephalographic (EEG) representations of controlled and non-controlled associations. Behavioral data replicated previous findings of association-driven adaptive behaviors. Decoding analyses of EEG data further showed that associations of controlled and non-controlled information were represented concurrently and differentially. Brain-behavioral analyses also showed that the strength of both associations was associated with faster responses. These findings provide initial evidence supporting the idea that controlled and non-controlled associations are governed by an integrated task representation to guide adaptive behaviors simultaneously.

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 2 matches between paragraphs and lines of code.

OSF tzcn8

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Languages: Python (4), MATLAB (1), Jupyter (1)
Size: 11 files, 6 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: Matplotlib (5 files), seaborn (5 files), NumPy (4 files), pandas (4 files), MNE-Python (2 files), SciPy (2 files), statsmodels (2 files), EEGLAB (1 file), lme4 (1 file), Pingouin (1 file), rpy2 (1 file), scikit-learn (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
6 files
At the source: osf.io/tzcn8/overview

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;
  • 2 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

Data and analysis scripts have been uploaded to https://osf.io/tzcn8/overview.

The following dataset was generated:

Huang B, Ritz H, Jiang J. 2026. Adaptive behavior is simultaneously guided by associations of controlled and non-controlled information. Open Science Framework. tzcn8

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, pages, dates, 3 authors, 1 keyword, 8 MeSH terms, 1 funder, 94 references.

Cite

This paper

Huang, B., Ritz, H., & Jiang, J. (2026). Adaptive behavior is guided by integrated representations of controlled and non-controlled information. eLife, 14, RP108673. https://doi.org/10.7554/elife.108673

BibTeX

@article{huang2026adaptive,
author = {Huang, Bingfang and Ritz, Harrison and Jiang, Jiefeng},
title = {{Adaptive behavior is guided by integrated representations of controlled and non-controlled information}},
journal = {eLife},
year = {2026},
month = aug,
volume = {14},
pages = {RP108673},
publisher = {eLife Sciences Publications, Ltd},
issn = {2050-084X},
doi = {10.7554/elife.108673},
url = {https://doi.org/10.7554/elife.108673},
pmid = {42647058},
pmcid = {PMC13516694}
}

RIS

TY - JOUR
AU - Huang, Bingfang
AU - Ritz, Harrison
AU - Jiang, Jiefeng
TI - Adaptive behavior is guided by integrated representations of controlled and non-controlled information
T2 - eLife
J2 - Elife
PY - 2026
DA - 2026/08/26
VL - 14
SP - RP108673
SN - 2050-084X
PB - eLife Sciences Publications, Ltd
DO - 10.7554/elife.108673
UR - https://doi.org/10.7554/elife.108673
LA - en
ER -

CSL-JSON

{
"id": "10.7554/elife.108673",
"type": "article-journal",
"title": "Adaptive behavior is guided by integrated representations of controlled and non-controlled information",
"container-title": "eLife",
"author": [
{
"family": "Huang",
"given": "Bingfang"
},
{
"family": "Ritz",
"given": "Harrison"
},
{
"family": "Jiang",
"given": "Jiefeng"
}
],
"container-title-short": "Elife",
"volume": "14",
"page": "RP108673",
"DOI": "10.7554/elife.108673",
"PMID": "42647058",
"PMCID": "PMC13516694",
"ISSN": "2050-084X",
"publisher": "eLife Sciences Publications, Ltd",
"URL": "https://doi.org/10.7554/elife.108673",
"language": "en",
"issued": {
"date-parts": [
[
2026,
8,
26
]
]
}
}

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.1093/cercor/bhag077 [code]
The longitudinal development of intrinsic timescales in infancy and their relation to alpha brain rhythm.
Journal: Cerebral cortex (New York, N.Y. : 1991)
In common: Pingouin, EEGLAB, MNE-Python, 8 other tools, EEG
[2] doi:10.1162/imag.a.105 [code]
Right posterior theta reflects human parahippocampal phase resetting by salient cues during goal-directed navigation
Journal: n/a
In common: Pingouin, EEGLAB, MNE-Python, 7 other tools, EEG
[3] doi:10.1371/journal.pone.0343722 [code]
Comprehensive methodology for sample enrichment in EEG biomarker studies for Alzheimer's risk classification.
Journal: PloS one
In common: rpy2, Pingouin, MNE-Python, 7 other tools, EEG
[4] doi:10.1038/s42003-026-10108-z [code]
Time-resolved EEG decoding reveals altered neural dynamics of affective semantic evaluation in depression and suicidality.
Journal: Communications biology
In common: EEGLAB, MNE-Python, statsmodels, 6 other tools, EEG, 2 references
[5] doi:10.34133/csbj.0042 [code]
Using Steady-State Visual Evoked Potentials to Characterize Wide-Ranging Retinopathy Linked to <i>CRB1</i>: Implications for Clinical Trials.
Journal: Computational and structural biotechnology journal
In common: Pingouin, MNE-Python, lme4, 7 other tools, EEG
[6] doi:10.1038/s41467-026-69853-8 [code]
Transcranial focused ultrasound induces source localizable cortical activation in resting state humans when applied concurrently with transcranial electric stimulation.
Journal: Nature communications
In common: rpy2, Pingouin, MNE-Python, 5 other tools, EEG
[7] doi:10.1038/s41467-026-74824-0 [code]
Learning regularities in noise engages both neural predictive activity and representational changes.
Journal: Nature communications
In common: Pingouin, MNE-Python, statsmodels, 5 other tools, 2 references
[8] doi:10.1371/journal.pcbi.1014302 [code]
Trial-level sequence modeling reveals hidden dynamics of dual-task interference.
Journal: PLoS computational biology
In common: MNE-Python, lme4, statsmodels, 6 other tools, EEG, 1 reference
[9] doi:10.7554/elife.107088 [code]
Development of auditory and spontaneous movement responses to music over the first postnatal year.
Journal: eLife
In common: EEGLAB, MNE-Python, lme4, 6 other tools, EEG, 1 reference
[10] doi:10.1038/s41467-026-74347-8 [code]
Compositionality of social gaze in the prefrontal-amygdala circuits.
Journal: Nature communications
In common: Pingouin, lme4, statsmodels, 6 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.