Targeting insulo-frontal pathway to reduce stress-evoked cognitive rigidity.
3 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 5 matches · all tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
- [1] § Methods › Miniscope Ca imaging with optogenetic manipulation ↔ findResponsiveNeuron/ROCanalysis.m, the whole file · a weak match · score 0.64 · auROC, behavioral event, variable, inhibited, neuron, window · block
oscr:b:K8FMQYCV7M0RS-L· Report a mismatch - [2] § Methods › Fiber photometry Ca recording ↔ convergence/periEventSigArray.m, the whole file · a weak match · score 0.61 · frame rate, behavioral events, field, duration, window, dig · block
oscr:b:NVMHG9XTVVB8M-L· Report a mismatch - [3] § Results › The aIC → mPFC neurons carry outcome information ↔ findResponsiveNeuron/periEventSigArray.m, the whole file · a weak match · score 0.56 · peri event, Behavioral events, eat, calcium, reward, neurons · block
oscr:b:NK03CGM9PJ7MX-R· Report a mismatch - [4] § Results › The aIC → mPFC neurons carry outcome information ↔ convergence/periEventSigArray.m, the whole file · a weak match · score 0.56 · peri event, Behavioral events, eat, calcium, reward, dig · block
oscr:b:NVMHG9XTVVB8M-L· Report a mismatch - [5] § Methods › Fiber photometry Ca recording ↔ findResponsiveNeuron/periEventSigArray.m, the whole file · a weak match · score 0.54 · frame rate, behavioral events, duration, neurons, window, dig · block
oscr:b:NK03CGM9PJ7MX-R· 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 · 127 lines · 4.6 KB · MIT · 2 matches
- function sigArray = periEventSigArray(dn,behEvtTbls)
- % This functions organizes ca signals into an periEvent array
- % Inputs:
- % dn: ca signal structure
- % .ca: calcium signal matrix: nFrame x nCell
- % .time: timestamps of each frame
- % .sttFrameT: table for the start time of each session of interest
- % behEvtTbls: structure with session name as field
- % behavior event table: nEvent x nFeature
- % Outputs:
- % sigArray: a structure with subfields for signals and metadata
- % .caA: calcium signals arranged in a 4d array
- % .Events: structure for behavior variables and event times organized by trial
- % .dimension = {'neuron','framePerWindow','eventWindow','trial'};
- %% organize multi-session signals
- sessionNames = fieldnames(behEvtTbls);
- nSession = length(sessionNames);
- %% extract ca signals corresponding to sessions
- % find the row (frame) index for the start of each session
- sessionStartIdx = zeros(nSession,1);
- for k = 1:nSession
- rowIdx = strcmp(dn.sttFrameT.session,sessionNames{k});
- sessionStartIdx(k) = find(dn.time==dn.sttFrameT.sttT(rowIdx));
- end
- sig = dn.ca(sessionStartIdx(1):end,:);
- time = dn.time(sessionStartIdx(1):end); % in sec
- fps = 1./diff(time(1:2)); % calcium frame rate ~10 Hz
- %% excluding start transients
- [~,nNeuron] = size(sig);
- % mask recording start caused transients in ca signal
- maskWin = round(3*fps); % 3 sec mask
- sigM = mean(sig,2);
- movieStartIdx = find(sigM == 0); % movie starts have 0 intensity
- transientFrame = movieStartIdx + (0:maskWin); % nStart x nWin
- transientFrame = transientFrame(:); % linearize
- sigN = sig;
- sigN(transientFrame,:) = NaN;
- sigN(sigN<0) = 0; % negative numbers are small and related to start transient in CNMFe
- % fill NaN in sigN by interpolation
- nanId = isnan(sigN(:,1));
- sigN = interp1(time(~nanId),sigN(~nanId,:),time);
- %% peri-event time windows
- tau = 2; %2 sec
- tWin = round(tau*fps);
- %% behavior variables to decode by trials: current and prior reward
- % event markers in behEvtTbls
- markerName = {'TrialStart','Approach','Dig','Outcome'};
- nMarker = length(markerName);
- % structures for behavior event times and labels, organized by trial
- EvtFrame = struct;
- TrialLabel = struct;
- counter = 1;
- for k = 1:nSession
- % single session behavior event table
- behEvtTbl = behEvtTbls.(sessionNames{k});
- uniqueTrials = unique(behEvtTbl.Trial);
- nTrial = length(uniqueTrials);
- % event index
- evtIdx = [];
- evtIdx.TrialStart = contains(behEvtTbl.Behavior,'TrialStart');
- evtIdx.Approach = contains(behEvtTbl.Behavior,'Approach');
- evtIdx.Dig = contains(behEvtTbl.Behavior,'Dig') & contains(behEvtTbl.Status,'START');
- evtIdx.Outcome = contains(behEvtTbl.Behavior,'Dig') & contains(behEvtTbl.Status,'STOP');
- for i = 1:nTrial
- trialIdx = behEvtTbl.Trial == uniqueTrials(i);
- if any(trialIdx & evtIdx.Dig) % exclude no dig (decision) trial
- % calculate event frames in ca movies
- for j = 1:nMarker
- markerIdx = trialIdx & evtIdx.(markerName{j});
- markerIdx = find(markerIdx,1,'last'); % keep last approach
- markerFrame = behEvtTbl.caFrame(markerIdx);
- EvtFrame.(markerName{j})(counter,1) = markerFrame;
- end
- TrialLabel.CurrRwd(counter,1) = any(contains(behEvtTbl.Behavior(trialIdx),'Eat'));
- TrialLabel.Trial(counter,1) = i;
- TrialLabel.Session(counter,1) = sessionNames(k);
- counter = counter+1;
- end
- end
- end
- TrialLabel.PriorRwd = [true;TrialLabel.CurrRwd(1:end-1)]; % first trial, true for prior reward
- %% calcium activity organized by nNeuron x tWin x nWin x nTrial
- winName = {'preSta','posSta','preApp','posApp','preDec','posDec','preOut','posOut'};
- nWin = length(winName);
- totalTrial = length(TrialLabel.Trial);
- caA = zeros(nNeuron,tWin,nWin,totalTrial); % ca signal array
- for i = 1:totalTrial
- for j = 1:nMarker
- caFrame = EvtFrame.(markerName{j})(i);
- caA(:,:,2*j-1,i) = sigN(caFrame-tWin : caFrame-1,:)';
- caA(:,:,2*j,i) = sigN(caFrame : caFrame+tWin-1,:)';
- end
- end
- % interpolate caA to 10Hz
- xq = linspace(1,tWin,round(tau*10));
- tWinIn = length(xq);
- caL = reshape(permute(caA,[2 1 3 4]),tWin,nNeuron*nWin*totalTrial);
- caL = interp1(1:tWin,caL,xq);
- caA = permute(reshape(caL,[tWinIn nNeuron nWin totalTrial]),[2 1 3 4]); % [nNeuron,tWin,nWin,nTrial]
- %% output structure
- sigArray.caA = caA;
- sigArray.dimension = {'neuron','framePerWindow','eventWindow','trial'};
- sigArray.TrialLabel = TrialLabel;
- sigArray.winName = winName;
- sigArray.winDurationSec = tau;
- sigArray.fpsOrigin = fps;
- sigArray.fps = 10;
- end
periEventSigArray.m at commit 843e8d0, under MIT · at the source
Overview
- Department of Molecular, Cell and Developmental Biology, University of California Santa Cruz,Santa Cruz, CA USA
- Department of Neuroscience, University of Rochester Medical Center,Rochester, NY USA
Abstract
Cognitive rigidity often follows chronic stress and is prevalent in stress-related psychiatric disorders, yet the underlying neural circuit mechanisms remain unclear. Using attentional set-shifting tasks (AST) in mice, we identified projection from the anterior insular cortex to the medial prefrontal cortex (aIC→mPFC) as key regulators of adaptive decision-making. The aIC→mPFC neurons show heightened activity following incorrect, but not correct, trials. This elevated activity persists into subsequent trials, providing a salience signal that enhances mPFC outcome-dependent updating and promotes convergence of neural activity patterns across trials. Optogenetic manipulation of aIC→mPFC projections during the pre-decision phase disrupts mPFC updating and impairs AST performance. Moreover, chronic stress disrupts the outcome-dependence of aIC activity and impairs cognitive flexibility. Crucially, selectively reinforcing aIC→mPFC activity after incorrect trials via optogenetics enhances mPFC updating, improves neural activity convergence across trials, and restores cognitive flexibility in stressed mice. These findings revealed a previously unrecognized role of the aIC→mPFC circuit in linking trial outcomes to adaptive decision-making and identified this pathway as a promising target for treating stress-induced cognitive rigidity.
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 5 matches between paragraphs and lines of code.
ZuoLabUCSC/Targeting-insulo-frontal-pathway-to-reduce-stress-evoked-cognitive-rigidity
843e8d01c2273bb10213a8f45a2b51aa6adf58da, 19 March 2026Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
10 files
- convergence/
Master_script_AST.m , MATLAB, 22 lines - convergence/
PopulationDistanceDirect , MATLAB, 180 lines.m - convergence/
green_white_magenta.m , MATLAB, 33 lines - convergence/
periEventSigArray.m , MATLAB, 127 lines, 2 matches - findResponsiveNeuron/
ROCanalysis.m , MATLAB, 58 lines, 1 match - findResponsiveNeuron/
findResponsCell.m , MATLAB, 20 lines - findResponsiveNeuron/
periEventSigArray.m , MATLAB, 86 lines, 2 matches - photometryPrimaryProcess
/ , MATLAB, 82 linesphotometryPriProcess.m - LICENSE, License, 21 lines
- README.md, Text, 10 lines
Code availability
All custom code used in this study is available at https://
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;
- 8 scripts, each with its path and the digest of its content;
- 5 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
Datasets cited
- doi:10.5061/
dryad.2rbnzs857 , at Dryad; found in DataCite
Data availability
Source Data includes all plotted data in individual Excel sheets and is 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, 30 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 3 authors, 2 keywords, 15 MeSH terms, 3 funders, 58 references.
Cite
This paper
Ma, S., Wang, K. H., & Zuo, Y. (2026). Targeting insulo-frontal pathway to reduce stress-evoked cognitive rigidity. Nature communications, 17(1), 5791. https://
BibTeX
@article{ma2026targeting
author = {Ma, Shaorong and Wang, Kuan Hong and Zuo, Yi},
title = {{Targeting insulo-frontal pathway to reduce stress-evoked cognitive rigidity}},
journal = {Nature communications},
year = {2026},
month = apr,
volume = {17},
number = {1},
pages = {5791},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/
url = {https://
pmid = {42045196},
pmcid = {PMC13332065}
}
RIS
TY - JOUR
AU - Ma, Shaorong
AU - Wang, Kuan Hong
AU - Zuo, Yi
TI - Targeting insulo-frontal pathway to reduce stress-evoked cognitive rigidity
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/
VL - 17
IS - 1
SP - 5791
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Targeting insulo-frontal pathway to reduce stress-evoked cognitive rigidity",
"container-title": "Nature communications",
"author": [
{
"family": "Ma",
"given": "Shaorong"
},
{
"family": "Wang",
"given": "Kuan Hong"
},
{
"family": "Zuo",
"given": "Yi"
}
],
"container-title-short":
"volume": "17",
"issue": "1",
"page": "5791",
"DOI": "10.1038/
"PMID": "42045196",
"PMCID": "PMC13332065",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
27
]
]
}
}
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.1016/j.celrep.2025.115850
- The mouse posterior insular cortex encodes expressive and receptive aspects of courtship vocalizations.Journal: Cell reportsIn common: mouse, 7 references
- [2] doi:10.1093/cercor/bhac169 [code]
- How distinct functional insular subdivisions mediate interacting neurocognitive systems.Journal: Cerebral cortex (New York, N.Y. : 1991)In common: Statistics and Machine Learning Toolbox, 5 references
- [3] doi:10.7554/elife.83897
- Cholecystokinin facilitates motor skill learning by modulating neuroplasticity in the motor cortex.Journal: eLifeIn common: mouse, 2 references, author Kuan Hong Wang
- [4] doi:10.1016/j.celrep.2022.111534
- The locus coeruleus mediates behavioral flexibility.Journal: Cell reportsIn common: mouse, 5 references
- [5] doi:10.3389/fnmol.2021.704219 [code]
- Perinatal Penicillin Exposure Affects Cortical Development and Sensory Processing.Journal: Frontiers in molecular neuroscienceIn common: mouse, 1 reference, author Yi Zuo
- [6] doi:10.1016/j.celrep.2024.114027 [code]
- Stereotyped goal-directed manifold dynamics in the insular cortex.Journal: Cell reportsIn common: mouse, 5 references
- [7] doi:10.1371/journal.pbio.3003738 [code]
- Altered salience network structure-function integration underlies the decline in cognitive flexibility during aging.Journal: PLoS biologyIn common: Statistics and Machine Learning Toolbox, 5 references
- [8] doi:10.1016/j.isci.2023.106985
- Dissection of insular cortex layer 5 reveals two sublayers with opposing modulatory roles in appetitive drinking behavior.Journal: iScienceIn common: mouse, 4 references
- [9] doi:10.1038/s41467-025-63314-4 [code]
- Dopaminergic signaling regulates microglial surveillance and adolescent plasticity in the mouse frontal cortex.Journal: Nature communicationsIn common: Statistics and Machine Learning Toolbox, mouse, author Kuan Hong Wang
- [10] doi:10.1016/j.isci.2023.107653 [code]
- Decision and response monitoring during working memory are sequentially represented in the human insula.Journal: iScienceIn common: Statistics and Machine Learning Toolbox, 4 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, 8 scripts, and 5 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:49b0323f71279c86…
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.1038/s41467-026-72221-1)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1038/s41467-026-72221-1.svg
:target: https://openscicode.org/badge/doi/10.1038/s41467-026-72221-1
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41467-026-72221-1"><img src="https://openscicode.org/badge/doi/10.1038/s41467-026-72221-1.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
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)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
