Adaptive behavior is guided by integrated representations of controlled and non-controlled information.
One block of code here has 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 2 matches · all tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
- [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 · block
oscr:b:VEPG05VBGAZQ3-X· Report a mismatch - [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 · block
oscr:b:VEPG05VBGAZQ3-X· 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 · 131 lines · 5.2 KB · no license · 2 matches
- clear;
- Datapath = ''; % edit to specify location
- eeglabPath = ''; % edit to specify location
- scriptPath = '';
- addpath(genpath(scriptPath))
- % of EEGlab
- addpath(genpath(eeglabPath))
- % run EEGlab
- [ALLEEG, EEG, CURRENTSET, ALLCOM] = eeglab;
- 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'};
- %subjects = {'sub59', 'sub60'};
- %subjects = {'sub59'};
- event_types = {
- 'S1_MC_con',{'S111', 'S112'}; 'S1_MC_inc',{'S113', 'S114'};
- 'S1_MI_con',{'S125', 'S126'}; 'S1_MI_inc',{'S127', 'S128'};
- 'S2_MC_con',{'S215', 'S216'}; 'S2_MC_inc',{'S217', 'S218'};
- 'S2_MI_con',{'S221', 'S222'}; 'S2_MI_inc',{'S223', 'S224'};
- };
- correct_responses = {
- 'S1_MC_con',{'S131', 'S132'}; 'S1_MC_inc',{'S133', 'S134'};
- 'S1_MI_con',{'S145', 'S146'}; 'S1_MI_inc',{'S147', 'S148'};
- 'S2_MC_con',{'S235', 'S236'}; 'S2_MC_inc',{'S237', 'S238'};
- 'S2_MI_con',{'S241', 'S242'}; 'S2_MI_inc',{'S243', 'S244'};
- };
- filter = 1;
- filter_band = [0.1, 50]; % >0
- re_reference = 1;
- ica_epoch = 1;
- ica_epoch_interval = [-.5 1.5];
- ica = 1;
- epoch = 1;
- epoch_interval = [-.2 1.5];
- erps =[];
- for nsub=1:length(subjects)
- if filter
- dataFile = [subjects{nsub} '.vhdr'];
- EEG = pop_loadbv(Datapath, dataFile);
- EEG = pop_eegfilt( EEG, filter_band(1), 0, [], [0],[0],[0],['fir1'],[0]);
- EEG = pop_eegfilt( EEG, 0, filter_band(2), [], [0],[0],[0],['fir1'],[0]);
- EEG.filename = [subjects{nsub} '_filtered.set'];
- EEG.filepath = Datapath;
- EEG = pop_saveset(EEG, 'filename', EEG.filename, 'filepath', EEG.filepath);
- end;
- if re_reference
- dataFile = [subjects{nsub} '_filtered.set'];
- EEG = pop_loadset(dataFile, Datapath);
- %add a zero data channel
- EEG.data(end+1,:) = 0;
- EEG.nbchan = size(EEG.data,1);
- EEG.chanlocs(end+1).labels = 'Pz';
- %load chanloc information
- elecfile = 'D:\Apps\toolbox\eeglab2023.1\plugins\dipfit\standard_BESA\standard-10-5-cap385.elp';
- EEG = pop_chanedit(EEG, 'lookup',elecfile);
- %re-refer to average reference
- EEG = pop_reref( EEG, [], 'refstate',0);
- % elecfile = 'D:\Apps\toolbox\eeglab2023.1\plugins\dipfit\standard_BESA\standard-10-5-cap385.elp';
- % EEG = pop_chanedit(EEG, 'append',63,'changefield',{64,'labels','Pz'},'lookup',elecfile,'setref',{'1:64','Pz'});
- % 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}));
- %
- EEG.filename = [subjects{nsub} '_rerefered.set'];
- EEG.filepath = Datapath;
- EEG = pop_saveset(EEG, 'filename', EEG.filename, 'filepath', EEG.filepath);
- end;
- if ica_epoch
- dataFile = [subjects{nsub} '_rerefered.set'];
- EEG = pop_loadset(dataFile, Datapath);
- all_events ={};
- for n=1:length(event_types)
- all_events = [all_events{:} event_types{n,2}];
- end;
- EEG = pop_epoch( EEG, all_events, ica_epoch_interval, 'newname', EEG.comments, 'epochinfo', 'yes');
- % set the original trial index for single trial analysis
- for n=1:EEG.trials
- EEG.epoch(n).orig_trial_index = n;
- end;
- EEG.filename = [subjects{nsub} '_epoch_before_ica.set'];
- EEG.filepath = Datapath;
- EEG = pop_saveset(EEG, 'filename', EEG.filename, 'filepath', EEG.filepath);
- end;
- if ica
- dataFile = [subjects{nsub} '_epoch_before_ica.set'];
- EEG = pop_loadset(dataFile, Datapath);
- EEG = pop_runica( EEG, 'icatype', 'runica', 'extended', 1, 'stop', 1E-7);
- EEG.filename = [subjects{nsub} '_epoch_after_ica.set'];
- EEG.filepath = Datapath;
- EEG = pop_saveset(EEG, 'filename', EEG.filename, 'filepath', EEG.filepath);
- end;
- if epoch
- dataFile = [subjects{nsub} '_epoch_after_ica_deleted.set'];
- EEG = pop_loadset(dataFile, Datapath);
- epoch_EEG = EEG;
- % output the all trials except for extreme values
- all_trials_EEG = EEG;
- all_events ={};
- for n=1:length(event_types)
- all_events = [all_events{:} event_types{n,2}];
- end;
- EEG = pop_epoch(all_trials_EEG, all_events, epoch_interval, 'newname', EEG.comments, 'epochinfo', 'yes');
- for n=1:EEG.trials
- EEG.epoch(n).trial_index = n;
- end;
- % remove baseline
- EEG = pop_rmbase(EEG, [epoch_interval(1)*1000 0]);
- %Reject extreme values for linear discriminate analysis (LDA)
- rej_all_EEG = EEG;
- rejthresh = 80;
- [EEG extreme_indices] = pop_eegthresh(rej_all_EEG, 1, 1:64, -1*rejthresh, rejthresh, epoch_interval(1)*1000, epoch_interval(2)*1000, 0, 0);
- EEG = pop_rejepoch(rej_all_EEG, extreme_indices, 0);
- EEG.filename = [subjects{nsub} '_epoch_reject_extreme.set'];
- EEG.filepath = Datapath;
- EEG = pop_saveset(EEG, 'filename', EEG.filename, 'filepath', EEG.filepath);
- end;
- end;
Preprocessing.m, no license · at the source
Overview
- Department of Psychological and Brain Sciences, University of Iowa, Iowa City, United States
- Cognitive Control Collaborative, University of Iowa, Iowa City, United States
- Princeton Neuroscience Institute, Princeton University, Princeton, United States
- Centre for Neuroscience Studies, Queen’s University, Kingston, Canada
- Iowa Neuroscience Institute, University of Iowa, Iowa City, United States
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
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
6 files
- scripts/
Behav_data_analysis.ipyn , Jupyter, 304 linesb - scripts/
Decoding.py , Python, 358 lines - scripts/
LMM.py , Python, 280 lines - scripts/
MDS.py , Python, 124 lines - scripts/
Preprocessing.m , MATLAB, 131 lines, 2 matches - scripts/
RSA.py , Python, 363 lines
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://
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://
BibTeX
@article{huang2026adapti
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/
url = {https://
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/
VL - 14
SP - RP108673
SN - 2050-084X
PB - eLife Sciences Publications, Ltd
DO - 10.7554/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.7554/
"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":
"volume": "14",
"page": "RP108673",
"DOI": "10.7554/
"PMID": "42647058",
"PMCID": "PMC13516694",
"ISSN": "2050-084X",
"publisher": "eLife Sciences Publications, Ltd",
"URL": "https://
"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.1371/journal.pbio.3003613 [code]
- Neural traces of composite tasks in complex task representation in the human brain reflects learning performance.Journal: PLoS biologyIn common: rpy2, scikit-learn, pandas, 2 other tools, EEG, 9 references, author Jiefeng Jiang
- [2] doi:10.1016/j.isci.2025.113375 [code]
- Neural dynamics of proactive and reactive cognitive control in medial and lateral prefrontal cortex.Journal: iScienceIn common: EEGLAB, MNE-Python, lme4, 6 other tools, 4 references
- [3] doi:10.1038/s41467-025-66849-8 [code]
- The effects of task similarity during representation learning in brains and neural networks.Journal: Nature communicationsIn common: MNE-Python, seaborn, scikit-learn, 4 other tools, 6 references
- [4] doi:10.1162/opmi_a_00143 [code]
- Toward the Emergence of Intelligent Control: Episodic Generalization and Optimization.Journal: Open mind : discoveries in cognitive scienceIn common: Pingouin, scikit-learn, pandas, 2 other tools, 7 references
- [5] doi:10.1371/journal.pcbi.1012521 [code]
- EEG microstate transition cost correlates with task demands.Journal: PLoS computational biologyIn common: MNE-Python, statsmodels, seaborn, 4 other tools, EEG, 5 references
- [6] doi:10.1038/s41467-024-54244-8 [code]
- Lateral prefrontal theta oscillations causally drive a computational mechanism underlying conflict expectation and adaptation.Journal: Nature communicationsIn common: EEGLAB, lme4, EEG, 7 references
- [7] doi:10.1371/journal.pbio.3002987 [code]
- Cost-benefit tradeoff mediates the transition from rule-based to memory-based processing during practice.Journal: PLoS biologyIn common: 5 references, author Jiefeng Jiang
- [8] doi:10.1162/imag.a.1134 [code]
- Oscillatory and gaze signatures of socio-emotional speech processing, visuo-spatial cognition, and their interaction in a near-realistic dual-task MEG study.Journal: Imaging neuroscience (Cambridge, Mass.)In common: rpy2, Pingouin, MNE-Python, 7 other tools, 2 references
- [9] doi:10.1038/s42003-023-04692-7
- A neurophysiological perspective on the integration between incidental learning and cognitive control.Journal: Communications biologyIn common: EEG, 7 references
- [10] doi:10.1093/braincomms/fcad327 [code]
- Impaired proactive cognitive control in Parkinson's disease.Journal: Brain communicationsIn common: EEGLAB, pandas, NumPy, 6 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.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 6 scripts, and 2 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:b32bb2b3df7ec228…
Add the badge to the code's README
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 -->
[](https://openscicode.org/badge/doi/10.7554/elife.108673)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.7554/elife.108673.svg
:target: https://openscicode.org/badge/doi/10.7554/elife.108673
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.7554/elife.108673"><img src="https://openscicode.org/badge/doi/10.7554/elife.108673.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.
