Arousal-driven critical roaming reproduces human functional connectivity dynamics.
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 › FC, FCD, and FCD Speed ↔ dfc-walk/TS2dFCstream.m, the whole file · a weak match · score 0.54 · TS2FC, TS2dFCstream, frame, matrix · block
oscr:b:8HHQ98CGM8A8Z-X· Report a mismatch - [2] § Methods › FC, FCD, and FCD Speed ↔ dfc-walk/TS2dFCstream.m, the whole file · a weak match · score 0.53 · sliding window, FC matrices, overlapping · block
oscr:b:8HHQ98CGM8A8Z-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 · 85 lines · 2.4 KB · CC-BY-4.0 · 2 matches
- function dFCstream = TS2dFCstream(TS, W, lag, format)
- % FUNCTION dFCstream = TS2dFCstream(TS, W, lag, format)
- % takes time-series (TS), size of window (W), and value of shift of window
- % (lag) as input and calculates dynamic functional connectivity stream
- % (dFCstream) as output.
- %
- % inputs: TS(t,n) --> rows are t different time-points;
- % columns are n different regions;
- % W --> size of window to slide;
- % lag --> shifting value, default is lag=W;
- % format --> '2D' (default) provides a [l]x[F] dFCstream
- % (FC vector over time) where l=n(n-1)/2 is the number
- % of links for n regions and F is the number of frames
- % depending on values of (t,W,lag);
- % '3D' provides a [n]x[n]x[F] dFCstream (FC matrix
- % over time).
- %
- % Example: dfcstream = TS2dFCstream(ts,10,10,'2D')
- % Example: dfcstream = TS2dFCstream(ts,10,[],'2D')
- % computes the dFCstream with window size 10 and without overlap between
- % windows. Since lag assumes a value equal to the default one and the
- % default is '2D', the syntax above is equivalent to the simpler syntax below:
- % Example: dfcstream = TS2dFCstream(ts,10)
- if ~exist('W','var') || isempty(W)
- disp('Provide at least a window size!!!')
- return
- end
- if ~exist('lag','var') || isempty(lag)
- lag = W; % default value for the size of sliding window if no argument for it is given
- end
- if ~exist('format','var') || isempty(format)
- format = '2D';
- end
- t = size(TS,1);
- n = size(TS,2);
- l = n*(n-1)/2;
- % calculate F
- wstart = 1;
- wstop = W;
- k = 0;
- while (wstop <= t)
- k = k+1;
- wstart = wstart + lag;
- wstop = wstop + lag;
- end
- kmax = k;
- % preallocate the dFCstream
- if (strcmp(format, '3D'))
- dFCstream = zeros(n,n,kmax);
- else
- dFCstream = zeros(l,kmax);
- end
- if (strcmp(format, '3D'))
- wstart = 1;
- wstop = W;
- k = 0;
- while (wstop <= t)
- k = k+1;
- % compute FC matrix for each lag column between wstart and wstop
- dFCstream(1:n, 1:n, k) = TS2FC(TS(wstart:wstop, :), '2D');
- wstart = wstart + lag;
- wstop = wstop + lag;
- end
- else
- wstart = 1;
- wstop = W;
- k = 0;
- while (wstop <= t)
- k = k+1;
- % compute FC vector for each lag column between wstart and wstop
- dFCstream(:, k) = TS2FC(TS(wstart:wstop, :), '1D');
- wstart = wstart + lag;
- wstop = wstop + lag;
- end
- end
TS2dFCstream.m, under CC-BY-4.0 · at the source
Overview
Abstract
Ongoing brain activity displays rich temporal variability associated with efficient cognition, with functional connectivity (FC) continually reconfiguring over time. The resulting functional connectivity dynamics (FCD) specifically show complex, fat-tailed statistics that alternate between persistent epochs and faster reconfiguration transients. While nonlinear whole-brain models tuned nearby a critical point have reproduced some aspects of FCD, they fall short of capturing its full temporal complexity. We propose that slow fluctuations in arousal offer a biologically plausible mechanism for exploring critical regimes in large-scale brain dynamics and thus enrich FCD. Using a connectome-based model of coupled cortical populations, we identified phase boundaries where system dynamics transition between regimes of faster or slower FCD. We then phenomenologically incorporated arousal changes, modeling them as stochastic fluctuations in key parameters such as cortical excitability, input gain, and noise amplitude. This explicitly time-dependent formulation enables the system to roam dynamically across regime boundaries, flexibly tuning its distance from critical transition lines and producing intermittent transitions that mirror the stochastic evolution observed in empirical FCD. Fitting these models to human resting-state fMRI and performing model comparison, we find that arousal-driven models more accurately reproduce the distinctive quantitative features of FCD, with the greatest improvements coming from the previously poorly accounted fat-tailed portions of the distributions. Together, these results suggest that arousal fluctuations—likely mediated by changes in neuromodulatory tone—shape the brain’s attractor landscape over time, expanding the repertoire of accessible functional network states and providing a mechanistic basis for the complexity of spontaneous functional dynamics.
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 2 matches between paragraphs and lines of code.
Zenodo 20798972
Availability: 1 check, the latest on 26 September 2026: the link answers (HTTP 200)
- 26 September 2026: the link answers (HTTP 200)
29 files
- ParamSweepGit/
WongWangFluc.m , MATLAB, 51 lines - ParamSweepGit/
main_script.m , MATLAB, 59 lines - dfc-walk/
BuildSpeedHistogram.m , MATLAB, 59 lines - dfc-walk/
DFA_fun.m , MATLAB, 60 lines - dfc-walk/
ExtractTrimerStrengths.m , MATLAB, 41 lines - dfc-walk/
Matrix2Vec.m , MATLAB, 20 lines - dfc-walk/
Mutual_Information_Label , MATLAB, 66 liness.m - dfc-walk/
PhaseRand_surrogates.m , MATLAB, 96 lines - dfc-walk/
Pick_MCModuleStream.m , MATLAB, 43 lines - dfc-walk/
Pick_StarStream.m , MATLAB, 53 lines - dfc-walk/
Pick_SubgraphStream.m , MATLAB, 53 lines - dfc-walk/
PlotSpeedHisto.m , MATLAB, 15 lines - dfc-walk/
TS2FC.m , MATLAB, 34 lines - dfc-walk/
TS2dFCstream.m , MATLAB, 85 lines, 2 matches - dfc-walk/
TS2eFC.m , MATLAB, 28 lines - dfc-walk/
Which_Link_ThisMCIndex.m , MATLAB, 24 lines - dfc-walk/
Which_MCIndex_ThisLink.m , MATLAB, 23 lines - dfc-walk/
Which_StreamIndex_ThisLi , MATLAB, 25 linesnk.m - dfc-walk/
Which_StreamIndices_This , MATLAB, 64 linesMCmodule.m - dfc-walk/
community_louvain.m , MATLAB, 198 lines - dfc-walk/
dFC_Speeds.m , MATLAB, 70 lines - dfc-walk/
dFCstream2MC.m , MATLAB, 135 lines - dfc-walk/
dFCstream2dFC.m , MATLAB, 31 lines - filter-lib/
FilterAllChannels.m , MATLAB, 7 lines - filter-lib/
bandpasshopf.m , MATLAB, 31 lines - filter-lib/
convert_back_to_time.m , MATLAB, 24 lines - fld-dim/
MA_EEG_Man_Dim_Flui.m , MATLAB, 41 lines - fld-dim/
extremal_Sueveges.m , MATLAB, 11 lines - README.md, Text, 1 line
juanitacabral/NetworkModel_Toolbox
f044a937ba64743935de790c79a74669ac8b4064, 21 January 2019Availability: 1 check, the latest on 26 September 2026: the link answers
- 26 September 2026: the link answers
8 files
- BOLDs.m, MATLAB, 51 lines
- CompareNeuroimaging.m, MATLAB, 68 lines
- Kuramoto_Delays_Run.m, MATLAB, 106 lines
- Kuramoto_Delays_Run.py, Python, 113 lines
- RunAnalyse_Simulations.m
, MATLAB, 153 lines - RunAnalyse_Simulations.p
y , Python, 134 lines - bandpass.m, MATLAB, 37 lines
- convert_back_to_time.m, MATLAB, 24 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:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 36 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
The code used for all analyses and simulations is publicly available at https://
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, issue, pages, dates, 2 authors, 7 MeSH terms, 2 funders, 78 references, 1 integrity notice.
Cite
This paper
Pathak, A., & Battaglia, D. (2026). Arousal-driven critical roaming reproduces human functional connectivity dynamics. PLoS biology, 24(9), e3003916. https://
BibTeX
@article{pathak2026arous
author = {Pathak, Anagh and Battaglia, Demian},
title = {{Arousal-driven critical roaming reproduces human functional connectivity dynamics}},
journal = {PLoS biology},
year = {2026},
month = sep,
volume = {24},
number = {9},
pages = {e3003916},
publisher = {Public Library of Science},
issn = {1544-9173},
doi = {10.1371/
url = {https://
pmid = {42678916},
pmcid = {PMC13533355}
}
RIS
TY - JOUR
AU - Pathak, Anagh
AU - Battaglia, Demian
TI - Arousal-driven critical roaming reproduces human functional connectivity dynamics
T2 - PLoS biology
J2 - PLoS Biol
PY - 2026
DA - 2026/
VL - 24
IS - 9
SP - e3003916
SN - 1544-9173
PB - Public Library of Science
DO - 10.1371/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1371/
"type": "article-journal",
"title": "Arousal-driven critical roaming reproduces human functional connectivity dynamics",
"container-title": "PLoS biology",
"author": [
{
"family": "Pathak",
"given": "Anagh"
},
{
"family": "Battaglia",
"given": "Demian"
}
],
"container-title-short":
"volume": "24",
"issue": "9",
"page": "e3003916",
"DOI": "10.1371/
"PMID": "42678916",
"PMCID": "PMC13533355",
"ISSN": "1544-9173",
"publisher": "Public Library of Science",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
9,
1
]
]
}
}
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.1038/s41598-024-83542-w [code]
- Symmetry breaking organizes the brain's resting state manifold.Journal: Scientific reportsIn common: 15 references
- [2] doi:10.1371/journal.pcbi.1012795 [code]
- DySCo: A general framework for dynamic functional connectivity.Journal: PLoS computational biologyIn common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, SciPy, 2 other tools, fMRI, 10 references
- [3] doi:10.1038/s41593-026-02205-3 [code]
- Competitive interactions shape mammalian brain network dynamics and computation.Journal: Nature neuroscienceIn common: Parallel Computing Toolbox, Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 3 other tools, 9 references
- [4] doi:10.1002/alz.71547
- Cortical synchrony is reduced in Alzheimer's disease and relates to arousal state.Journal: Alzheimer's & dementia : the journal of the Alzheimer's AssociationIn common: fMRI, 11 references
- [5] doi:10.7554/elife.106194 [code]
- Virtual Brain Inference (VBI), a flexible and integrative toolkit for efficient probabilistic inference on whole-brain models.Journal: eLifeIn common: SciPy, Matplotlib, NumPy, 10 references
- [6] doi:10.1073/pnas.2532072123 [code]
- Spatially structured heterogeneity shapes large-scale cortical dynamics in a model of the human cortex.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: SciPy, Matplotlib, NumPy, 10 references
- [7] doi:10.1162/imag_a_00113 [code]
- EiDA: A lossless approach for dynamic functional connectivity; application to fMRI data of a model of ageing.Journal: Imaging neuroscience (Cambridge, Mass.)In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, fMRI, systems, 8 references
- [8] doi:10.1016/j.neuroimage.2023.120236 [code]
- Multi-modal and multi-model interrogation of large-scale functional brain networks.Journal: NeuroImageIn common: SciPy, Matplotlib, NumPy, 9 references
- [9] doi:10.1073/pnas.2109380118 [code]
- Modular origins of high-amplitude cofluctuations in fine-scale functional connectivity dynamics.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, fMRI, 9 references
- [10] doi:10.1162/netn_a_00410 [code]
- Neural mass modeling for the masses: Democratizing access to whole-brain biophysical modeling with FastDMF.Journal: Network neuroscience (Cambridge, Mass.)In common: Signal Processing Toolbox, SciPy, NumPy, 9 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: 2 repositories of the authors' code, each at its verified commit and with its license, 36 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:bd5e8c4e357ddc20…
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.1371/journal.pbio.3003916)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1371/journal.pbio.3003916.svg
:target: https://openscicode.org/badge/doi/10.1371/journal.pbio.3003916
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1371/journal.pbio.3003916"><img src="https://openscicode.org/badge/doi/10.1371/journal.pbio.3003916.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.
