Neuronal dynamics, timing, and flow of sensory and choice-related information in auditory-prefrontal circuitry.
The 2 matches
- [1] § Methods › Flow of information ↔ InformationTransfer_Choice.m, lines 189–263 · score 0.73 · intrinsic temporal dependencies, autocorrelated, autoregressive, validate, lags, zero
- [2] § Methods › Flow of information ↔ InformationTransfer_Sensory.m, lines 191–265 · score 0.72 · intrinsic temporal dependencies, autocorrelated, autoregressive, validate, lags, zero
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 · 284 lines · 9.8 KB · no license · 1 match
- clearvars
- cd('C:\Users\giarroccof2\OneDrive - National Institutes of Health\Franco\Corrie Data\Task')
- load M1_PFC_Data_50ms_Tg.mat
- load M1_A1_Data_50ms_Tg.mat
- load M1_BehavioralData.mat
- load M1_BehavioralCodes.mat
- Times=-2100:50:1700;
- Times_fig=-2000:50:1700;
- Choice_Window=42:75;
- for s=1: size (M1_A1_Data_50ms_Tg,2)
- clearvars -except M1_PFC_Data_50ms_Tg M1_A1_Data_50ms_Tg Choice_Window ...
- Times Times_fig s R_s_Predictions M1_BehavioralData M1_BehavioralCodes
- size (M1_A1_Data_50ms_Tg,2) - s
- An_AC_Sess = M1_A1_Data_50ms_Tg{s};
- An_PFC_Sess = M1_PFC_Data_50ms_Tg{s};
- An_Behav_Sess = M1_BehavioralData{s};
- All_Trials = 1:size(An_AC_Sess,1);
- catchtr = M1_BehavioralCodes{s}.iscatch;
- Catch_Trials = find (catchtr==1);
- acc = M1_BehavioralCodes{s}.acc;
- acc_Nan = find(isnan(acc));
- RemovedTrials=[];
- RemovedTrials = union(Catch_Trials,acc_Nan);
- All_Trials(RemovedTrials) = [];
- Used_Trials = All_Trials;
- pos_acc=find(acc==1);
- acc_1= intersect(Used_Trials,pos_acc);
- neg_acc=find(acc==0);
- acc_0= intersect(Used_Trials,neg_acc);
- RTs_1= M1_BehavioralCodes{s}.t1rt ;
- RTs_1_Corr =RTs_1(Used_Trials);
- p33 = prctile(RTs_1_Corr(:,1), 33);
- p66 = prctile(RTs_1_Corr(:,1), 66);
- Trials_RT = nan(size(RTs_1_Corr,1),3);
- % Categorize the trials based on RT
- for i = 1:size(RTs_1_Corr,1)
- if RTs_1_Corr(i,1) <= p33
- Trials_RT(i,1) = RTs_1_Corr(i,1); % Collect trial numbers for short RTs
- elseif RTs_1_Corr(i,1) > p33 && RTs_1_Corr(i,1) <= p66
- Trials_RT(i,2) = RTs_1_Corr(i,1); % Collect trial numbers for short RTs
- else
- Trials_RT(i,3) = RTs_1_Corr(i,1); % Collect trial numbers for short RTs
- end
- end
- acc_RTs1=Used_Trials(find(isnan(Trials_RT(:,1))==0));
- acc_RTs2=Used_Trials(find(isnan(Trials_RT(:,2))==0));
- acc_RTs3=Used_Trials(find(isnan(Trials_RT(:,3))==0));
- acc_RTs={acc_RTs1,acc_RTs2,acc_RTs3};
- CueLocation = An_Behav_Sess.A(:,7);
- CueLocation(CueLocation==2) = -1;
- CueSide_Used_trials = CueLocation(Used_Trials);
- CueSide_Correct_trials = CueLocation(acc_1);
- TargetSide = M1_BehavioralCodes{s}.tside;
- TargetSide(TargetSide==2) = -1;
- TargetSide_Used_trials = TargetSide(Used_Trials);
- TargetSide_Correct_trials = TargetSide(acc_1);
- Match_Trials = zeros(size(TargetSide_Used_trials));
- Match = CueSide_Used_trials==TargetSide_Used_trials;
- idx_match = find(Match==1);
- idx_nonmatch = find(Match==0);
- Match_Trials (idx_match)= 1;
- Match_Trials (idx_nonmatch)= -1;
- Match_Corr_Trials = zeros(size(TargetSide_Correct_trials));
- Match_Corr = CueSide_Correct_trials==TargetSide_Correct_trials;
- idx_Match_Corr = find(Match_Corr==1);
- idx_nonMatch_Corr = find(Match_Corr==0);
- Match_Corr_Trials (idx_Match_Corr)= 1;
- Match_Corr_Trials (idx_nonMatch_Corr)= -1;
- AllDelayTimes = An_Behav_Sess.A(Used_Trials,8);
- Delay_1= find(AllDelayTimes==-1000);
- Delay_2= find(AllDelayTimes==-1300);
- Delay_3= find(AllDelayTimes==-1800);
- AllDelay_CorrTimes = An_Behav_Sess.A(acc_1,8);
- Delay_Corr_1= find(AllDelay_CorrTimes==-1000);
- Delay_Corr_2= find(AllDelay_CorrTimes==-1300);
- Delay_Corr_3= find(AllDelay_CorrTimes==-1800);
- RTs_1_Used_Trials =RTs_1(Used_Trials);
- RT_not_nan=find(isnan(RTs_1_Used_Trials)==0);
- Used_Trials_with_RTs=Used_Trials(RT_not_nan);
- RT_values_UsedTrials = RTs_1_Used_Trials(RT_not_nan);
- median_Used_Trials = median( RTs_1_Used_Trials, "omitnan");
- Slow_RTidx=find (RTs_1>median_Used_Trials);
- Fast_RTidx=find (RTs_1<median_Used_Trials);
- SlowRT_Used_Trials= intersect(Slow_RTidx,Used_Trials);
- FastRT_Used_Trials= intersect(Fast_RTidx,Used_Trials);
- Slow_RT=RTs_1 (SlowRT_Used_Trials);
- MnM_Label_SlowRT=Match_Trials(find(ismember(Used_Trials,SlowRT_Used_Trials)));
- MnM_Label_FastRT=Match_Trials(find(ismember(Used_Trials,FastRT_Used_Trials)));
- trials_For_Regression=Used_Trials;
- BetaCue_AC=[]; BetaTg_AC=[]; NormCue_AC=[]; NormTg_AC=[];
- %% First regression used to define 1D-dimension
- % A1 regression
- for AC_neu= 1 : size (An_AC_Sess,3) % # neurons
- AC_single_Neu=[]; AC_single_Neu = An_AC_Sess(:,:,AC_neu);
- for bin=1:size(AC_single_Neu,2)
- B = fitlm([Match_Trials],AC_single_Neu(trials_For_Regression,bin));
- BetaCue_AC(AC_neu,bin)=B.Coefficients{2,1};
- end
- end
- BetaCue_PFC=[]; BetaTg_PFC=[]; NormCue_PFC=[]; NormTg_PFC=[];
- % PFC regression
- for PFC_neu= 1 : size (An_PFC_Sess,3) % # neurons
- PFC_single_Neu=[]; PFC_single_Neu = An_PFC_Sess(:,:,PFC_neu);
- for bin=1:size(PFC_single_Neu,2)
- B = fitlm([Match_Trials],PFC_single_Neu(trials_For_Regression,bin));
- BetaCue_PFC(PFC_neu,bin)=B.Coefficients{2,1};
- end
- end
- %% Define 1D-dimension
- NormCue_AC=vecnorm(BetaCue_AC);
- Max_Norm_Cue(s,1)=max(NormCue_AC(Choice_Window));
- bin_betaCue_AC=find(NormCue_AC==max(NormCue_AC(Choice_Window)));
- BetaCue_Vector_AC=BetaCue_AC(:,bin_betaCue_AC(1));
- NormCue_PFC=vecnorm(BetaCue_PFC);
- bin_betaCue_PFC=find(NormCue_PFC==max(NormCue_PFC(Choice_Window)));
- BetaCue_Vector_PFC=BetaCue_PFC(:,bin_betaCue_PFC(1)); %?
- Max_Norm_Cue(s,2)=max(NormCue_PFC(Choice_Window));
- betas(s,1)=Times(bin_betaCue_AC);
- betas(s,2)=Times(bin_betaCue_PFC);
- AC_PFC_Data= {permute(An_AC_Sess, [3 2 1]), permute(An_PFC_Sess, [3 2 1])} ;
- IT_Micro_Tg_MnM_Values_All_Trials_2= [Max_Norm_Cue betas ];
- BetaCue_Vectors= {BetaCue_Vector_AC,BetaCue_Vector_PFC };
- % NormTg_AC=vecnorm(BetaTg_AC);
- % bin_betaTg_AC=find(NormTg_AC==max(NormTg_AC(Choice_Window)));
- % BetaTg_Vector_AC=BetaTg_AC(:,bin_betaTg_AC(1));
- %% Targeted dimensionality reduction
- n_areas=2;
- Proj_B_Cue=nan( size(trials_For_Regression,2), size(AC_PFC_Data{1,1},2), size(AC_PFC_Data,2)); % Trials x bin x Areas
- for n_Areas= 1:n_areas
- PermData=[]; PermData=AC_PFC_Data{1,n_Areas};
- for Trial_Beta=1:size(trials_For_Regression,2)
- for tb=1:size (PermData,2)
- Proj_B_Cue(Trial_Beta,tb,n_Areas)=dot(PermData(:,tb,trials_For_Regression(Trial_Beta)),BetaCue_Vectors{1,n_Areas});
- end
- end
- end
- %% To remove same area intrinsic temporal dependencies within each area
- Residual_SameArea=[];
- for n_Areas= 1:n_areas
- Area_Feature= Proj_B_Cue(:,:,n_Areas);
- for b= 1:size(Proj_B_Cue,2)-1
- Self_Prediction=fitlm(Area_Feature(:,b),Area_Feature(:,b+1));
- Residual_SameArea(:,b,n_Areas)=Self_Prediction.Residuals{:,2} ;
- end
- end
- % %%%%%
- % %%%%% to validate the previous autocorrelation model...
- % %%%%%
- % %%%%%
- % residuals = Residual_SameArea(:,:,1);
- %
- % max_lag = 5; %%%%% Define the maximum lag to test
- % num_trials = size(residuals, 1); %%%%% Number of trials
- % num_lags = 2 * max_lag + 1; %%%%%% Lags from -max_lag to max_lag
- % xcorr_vals = zeros(num_trials, num_lags); %%%%%% Store cross-correlations
- %
- % for trial = 1:num_trials
- % xcorr_vals(trial, :) = xcorr(residuals(trial, :), max_lag, 'coeff'); %%%%%%% Compute xcorr for each trial
- % end
- %
- % %%%%%%%% Average across trials to obtain session-level cross-correlation
- % mean_xcorr = mean(xcorr_vals, 1);
- %
- % %%%%%%%% Plot results
- % lags = -max_lag:max_lag;
- %
- %
- % %%%%%%%%% this is to plot the autocorrelation to ensure that the previous
- % %%%%%%%%% autoregression whitened the time series
- % figure;
- % stem(lags,mean_xcorr)
- % xlabel('Lag');
- % ylabel('Autocorrelation coefficient');
- % hold off;
- %
- % %%%%%%% residuals: matrix of size (nTrials x nTimeBins)
- % %%%%%%% Each row is one trial's residual time series
- %
- % maxLag = 5; %%%%%%%% Maximum lag to evaluate
- % numTrials = size(residuals, 1);
- %
- % %%%%%%%% Preallocate to store the xcorr results for each trial
- % ccVals = zeros(numTrials, 2*maxLag + 1);
- %
- % for tr = 1:numTrials
- % %%%%%%%% Compute xcorr for one trial, up to maxLag, normalized by 'coeff'
- % [cc, lags] = xcorr(residuals(tr, :), maxLag, 'coeff');
- % ccVals(tr, :) = cc; %%%%%%%% Store the cross-correlation values
- % end
- %
- % %%%%%%% Average across trials
- % meanCC = mean(ccVals, 1);
- % semCC = std(ccVals, [], 1) / sqrt(numTrials); %%%%%%%% Optional SEM
- %
- % %%%%%%%%%% Plot the mean cross-correlation
- % figure;
- % errorbar(lags, meanCC, semCC, '-o', 'LineWidth', 2, 'MarkerFaceColor','black');
- % xlabel('Lag');
- % ylabel('Autocorrelation coefficient');
- % grid on;
- %
- % alpha = 0.05;
- % for i = 1:length(lags)
- % if lags(i) ~= 0
- % [~, p] = ttest(ccVals(:, i), 0, 'Alpha', alpha);
- % fprintf('Lag %d -> p = %.4f\n', lags(i), p);
- % end
- % end
- %%%%%%%%%
- %%%%%%%%% end of autocorrelation validation
- %%%%%%%%%
- %% Perform Cross-area prediction
- for n_Areas= 1:n_areas
- if n_Areas==1
- TargetAreas=1; SourceAreas=2;
- elseif n_Areas==2
- TargetAreas=2; SourceAreas=1;
- end
- for b= 1:size(Residual_SameArea,2)-1
- IT_Prediction=fitlm(Residual_SameArea(:,b,SourceAreas),Residual_SameArea(:,b+1,TargetAreas));
- R_s_Predictions(s,b,n_Areas)=IT_Prediction.Rsquared.Adjusted;
- end
- end
- end
InformationTransfer_Choice.m at commit 4600c23, no license · at the source
Overview
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) 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, with 2 matches between paragraphs and lines of code.
GiarroccoFranco/Auditory_Decision_Making
4600c233c3a974f279255a7b30d180ef0c366e36, 4 May 2025Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
19 files
- BehaviorM1.m, MATLAB, 255 lines
- BehaviorM2.m, MATLAB, 255 lines
- Decoding_Choice_M1.m, MATLAB, 261 lines
- Decoding_Choice_M2.m, MATLAB, 261 lines
- Decoding_M1.m, MATLAB, 260 lines
- Decoding_M2.m, MATLAB, 262 lines
- InformationTransfer_Choi
ce.m , MATLAB, 284 lines, 1 match - InformationTransfer_Sens
ory.m , MATLAB, 305 lines, 1 match - Neurons_Count.m, MATLAB, 18 lines
- PerformDecoding_Auditory
Task.m , MATLAB, 20 lines - Population_Euclidian_Dis
tance_M1.m , MATLAB, 506 lines - Population_Euclidian_Dis
tance_M2.m , MATLAB, 503 lines - Population_PCAandTraject
ories_M1.m , MATLAB, 443 lines - Population_PCAandTraject
ories_M2.m , MATLAB, 445 lines - Stats_Choice.m, MATLAB, 221 lines
- Stats_Sensory.m, MATLAB, 114 lines
- plot_areaerrorbarAC.m, MATLAB, 38 lines
- plot_areaerrorbarPFC.m, MATLAB, 37 lines
- README.md, Text, 2 lines
Code availability statement
The paper has a code availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to the authors' code: GiarroccoFranco/
Auditory_Decision_Making
Read it in the paper: doi.org/10.1038/s41467-026-75349-2.
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;
- 18 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
Datasets cited
- figshare:28861268, at figshare; found in “Data availability”
Code and data availability statement
The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to a dataset: figshare 28861268
- it points to the authors' code: GiarroccoFranco/
Auditory_Decision_Making
Read it in the paper: doi.org/10.1038/s41467-026-75349-2.
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, 2 authors, 2 keywords, 11 MeSH terms, 1 funder, 75 references.
Cite
This paper
Giarrocco, F., & Averbeck, B. B. (2026). Neuronal dynamics, timing, and flow of sensory and choice-related information in auditory-prefrontal circuitry. Nature communications, 17(1), 8443. https://
BibTeX
@article{giarrocco2026ne
author = {Giarrocco, Franco and Averbeck, Bruno B.},
title = {{Neuronal dynamics, timing, and flow of sensory and choice-related information in auditory-prefrontal circuitry}},
journal = {Nature communications},
year = {2026},
month = jul,
volume = {17},
number = {1},
pages = {8443},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/
url = {https://
pmid = {42420269},
pmcid = {PMC13478149}
}
RIS
TY - JOUR
AU - Giarrocco, Franco
AU - Averbeck, Bruno B.
TI - Neuronal dynamics, timing, and flow of sensory and choice-related information in auditory-prefrontal circuitry
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/
VL - 17
IS - 1
SP - 8443
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Neuronal dynamics, timing, and flow of sensory and choice-related information in auditory-prefrontal circuitry",
"container-title": "Nature communications",
"author": [
{
"family": "Giarrocco",
"given": "Franco"
},
{
"family": "Averbeck",
"given": "Bruno B."
}
],
"container-title-short":
"volume": "17",
"issue": "1",
"page": "8443",
"DOI": "10.1038/
"PMID": "42420269",
"PMCID": "PMC13478149",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
8
]
]
}
}
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.3003707 [code]
- Behavioral engagement facilitates auditory neuron responses beyond their receptive fields.Journal: PLoS biologyIn common: Statistics and Machine Learning Toolbox, non-human primate, 4 references
- [2] doi:10.1126/sciadv.aef3715
- A cortical output channel for perceptual categorization.Journal: Science advancesIn common: 5 references
- [3] doi:10.1126/sciadv.aeb3005 [code]
- Neural competition between prefrontal and auditory cortex constrains novel sound strategy learning.Journal: Science advancesIn common: Statistics and Machine Learning Toolbox, 4 references
- [4] doi:10.1371/journal.pbio.3003966 [code]
- Behavioral engagement and stimulus regularities coordinate auditory-prefrontal network activity.Journal: PLoS biologyIn common: Statistics and Machine Learning Toolbox, non-human primate, 3 references
- [5] doi:10.1038/s41467-026-76104-3 [code]
- Sensorimotor remapping drives task specialization in prefrontal cortex.Journal: Nature communicationsIn common: non-human primate, 4 references
- [6] doi:10.1038/s41467-026-71725-0 [code]
- Interactions across hemispheres in prefrontal cortex reflect global cognitive processing.Journal: Nature communicationsIn common: Statistics and Machine Learning Toolbox, non-human primate, 3 references
- [7] doi:10.1038/s41467-026-73540-z [code]
- Predictive acoustical processing in human cortical layers.Journal: Nature communicationsIn common: Statistics and Machine Learning Toolbox, 3 references
- [8] doi:10.1038/s41467-026-73906-3 [code]
- A synaptic mechanism for encoding the learned value of action-derived safety.Journal: Nature communicationsIn common: author Bruno B. Averbeck
- [9] doi:10.1038/s41467-026-76098-y [code]
- A single computational objective can produce specialization of streams in visual cortex.Journal: Nature communicationsIn common: Statistics and Machine Learning Toolbox, 3 references
- [10] doi:10.1038/s41467-026-71270-w [code]
- Spatiotemporal dynamics of the human cortical functional hierarchy across the lifespan.Journal: Nature communicationsIn common: Statistics and Machine Learning Toolbox, 3 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, 18 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:e80eb40de5ad686a…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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.
