OSCR

Arousal-driven critical roaming reproduces human functional connectivity dynamics.

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 › FC, FCD, and FCD Speed ↔ dfc-walk/TS2dFCstream.m, the whole file · a weak match · score 0.54 · TS2FC, TS2dFCstream, frame, matrix
  2. [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

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 · 85 lines · 2.4 KB · CC-BY-4.0 · 2 matches

  1. function dFCstream = TS2dFCstream(TS, W, lag, format)
  2. % FUNCTION dFCstream = TS2dFCstream(TS, W, lag, format)
  3. % takes time-series (TS), size of window (W), and value of shift of window
  4. % (lag) as input and calculates dynamic functional connectivity stream
  5. % (dFCstream) as output.
  6. %
  7. % inputs: TS(t,n) --> rows are t different time-points;
  8. % columns are n different regions;
  9. % W --> size of window to slide;
  10. % lag --> shifting value, default is lag=W;
  11. % format --> '2D' (default) provides a [l]x[F] dFCstream
  12. % (FC vector over time) where l=n(n-1)/2 is the number
  13. % of links for n regions and F is the number of frames
  14. % depending on values of (t,W,lag);
  15. % '3D' provides a [n]x[n]x[F] dFCstream (FC matrix
  16. % over time).
  17. %
  18. % Example: dfcstream = TS2dFCstream(ts,10,10,'2D')
  19. % Example: dfcstream = TS2dFCstream(ts,10,[],'2D')
  20. % computes the dFCstream with window size 10 and without overlap between
  21. % windows. Since lag assumes a value equal to the default one and the
  22. % default is '2D', the syntax above is equivalent to the simpler syntax below:
  23. % Example: dfcstream = TS2dFCstream(ts,10)
  24. if ~exist('W','var') || isempty(W)
  25. disp('Provide at least a window size!!!')
  26. return
  27. end
  28. if ~exist('lag','var') || isempty(lag)
  29. lag = W; % default value for the size of sliding window if no argument for it is given
  30. end
  31. if ~exist('format','var') || isempty(format)
  32. format = '2D';
  33. end
  34. t = size(TS,1);
  35. n = size(TS,2);
  36. l = n*(n-1)/2;
  37. % calculate F
  38. wstart = 1;
  39. wstop = W;
  40. k = 0;
  41. while (wstop <= t)
  42. k = k+1;
  43. wstart = wstart + lag;
  44. wstop = wstop + lag;
  45. end
  46. kmax = k;
  47. % preallocate the dFCstream
  48. if (strcmp(format, '3D'))
  49. dFCstream = zeros(n,n,kmax);
  50. else
  51. dFCstream = zeros(l,kmax);
  52. end
  53. if (strcmp(format, '3D'))
  54. wstart = 1;
  55. wstop = W;
  56. k = 0;
  57. while (wstop <= t)
  58. k = k+1;
  59. % compute FC matrix for each lag column between wstart and wstop
  60. dFCstream(1:n, 1:n, k) = TS2FC(TS(wstart:wstop, :), '2D');
  61. wstart = wstart + lag;
  62. wstop = wstop + lag;
  63. end
  64. else
  65. wstart = 1;
  66. wstop = W;
  67. k = 0;
  68. while (wstop <= t)
  69. k = k+1;
  70. % compute FC vector for each lag column between wstart and wstop
  71. dFCstream(:, k) = TS2FC(TS(wstart:wstop, :), '1D');
  72. wstart = wstart + lag;
  73. wstop = wstop + lag;
  74. end
  75. end

TS2dFCstream.m, under CC-BY-4.0 · at the source

Overview

Authors: Anagh Pathak1, Demian Battaglia1
ORCID iDs: Anagh Pathak
  1. Laboratoire de Neurosciences Cognitives et Adaptatives (LNCA), Université de Strasbourg, CNRS, UMR 7364, Strasbourg, France
Journal: PLoS biology, volume 24, issue 9, article e3003916
Dates: received 24 January 2026; accepted 8 July 2026; published online 1 September 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1371/journal.pbio.3003916 · PMID 42678916 · PMCID PMC13533355 · OpenAlex W7204943783
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: fMRI (modality), human (organism), systems (subfield)
Methods: Connectivity, Smoothing, state filtering, decompositions, Machine learning, Preprocessing, Statistics, fMRI & imaging, Single-unit activity, calcium imaging
MeSH: Arousal*, Brain*, Nerve Net*, Connectome, Humans, Magnetic Resonance Imaging, Models, Neurological (* major topic)
Journal subjects: Computer and Information Sciences, Systems Science, Dynamical Systems, Physical Sciences, Mathematics, Nonlinear Dynamics, Biology and Life Sciences, Neuroscience, Brain Mapping, Functional Magnetic Resonance Imaging, Medicine and Health Sciences, Diagnostic Medicine, Diagnostic Radiology, Magnetic Resonance Imaging, Research and Analysis Methods, Imaging Techniques, Radiology and Imaging, Neuroimaging, Probability Theory, Statistical Distributions, Neural Networks, Mathematical and Statistical Techniques, Cluster Analysis, K Means Clustering, Population Biology, Population Dynamics, Cognitive Science, Cognitive Neuroscience, Cognitive Neurology, Cognitive Impairment, Neurology
Topic: Functional Brain Connectivity Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Citations: cited by 1 paper (Europe PMC); 87 references in the paper
Notices: A comment on this paper has been published (42685012, from Europe PMC)

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

License: CC-BY-4.0
State: the link answers, verified on 26 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: “Data Availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 26 September 2026: the link answers (HTTP 200)
  • 26 September 2026: the link answers (HTTP 200)
29 files

juanitacabral/NetworkModel_Toolbox

License: none: the authors keep all their rights
State: the link answers, verified on 26 September 2026
Evidence: files inventoried
Commit: f044a937ba64743935de790c79a74669ac8b4064, 21 January 2019
Languages: MATLAB (6), Python (2)
Size: 12 files, 8 scripts
Software Heritage: not archived
Found in: the text, “Neural mass modeling”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NumPy (2 files), Signal Processing Toolbox (1 file), Matplotlib (1 file), SciPy (1 file)
Availability: 1 check, the latest on 26 September 2026: the link answers
  • 26 September 2026: the link answers
8 files

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://doi.org/10.5281/zenodo.20798972. Data underlying the figures are provided in the Supporting information.

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://doi.org/10.1371/journal.pbio.3003916

BibTeX

@article{pathak2026arousal,
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 = {PLOS},
issn = {1544-9173},
doi = {10.1371/journal.pbio.3003916},
url = {https://doi.org/10.1371/journal.pbio.3003916},
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/09/01
VL - 24
IS - 9
SP - e3003916
SN - 1544-9173
PB - PLOS
DO - 10.1371/journal.pbio.3003916
UR - https://doi.org/10.1371/journal.pbio.3003916
LA - en
ER -

CSL-JSON

{
"id": "10.1371/journal.pbio.3003916",
"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": "PLoS Biol",
"volume": "24",
"issue": "9",
"page": "e3003916",
"DOI": "10.1371/journal.pbio.3003916",
"PMID": "42678916",
"PMCID": "PMC13533355",
"ISSN": "1544-9173",
"publisher": "PLOS",
"URL": "https://doi.org/10.1371/journal.pbio.3003916",
"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.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 Association
In common: fMRI, 11 references
[2] 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 America
In common: SciPy, Matplotlib, NumPy, 10 references
[3] doi:10.1038/s41467-026-76011-7 [code]
Human cortex organizes dynamic co-fluctuations along the sensorimotor-association axis.
Journal: Nature communications
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, SciPy, 2 other tools, systems, 7 references
[4] doi:10.7554/elife.110294 [code]
Arousal modulates functional connectivity through structured and hemispherically asymmetric community architecture during wakefulness.
Journal: eLife
In common: SciPy, Matplotlib, NumPy, fMRI, 7 references
[5] doi:10.1162/netn.a.548
Phase-dependent stimulation response is shaped by the brain's dynamic functional connectivity.
Journal: Network neuroscience (Cambridge, Mass.)
In common: fMRI, systems, 7 references
[6] doi:10.1038/s41467-026-75959-w [code]
Charting higher-order models of brain function beyond pairwise interactions.
Journal: Nature communications
In common: Statistics and Machine Learning Toolbox, SciPy, Matplotlib, 1 other tool, 6 references
[7] doi:10.1371/journal.pcbi.1013463 [code]
A multi-frequency whole-brain neural mass model with homeostatic feedback inhibition.
Journal: PLoS computational biology
In common: SciPy, Matplotlib, NumPy, 6 references
[8] doi:10.1162/imag.a.1254 [code]
The individuality of single-frame functional brain connectivity.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: Parallel Computing Toolbox, Signal Processing Toolbox, Statistics and Machine Learning Toolbox, fMRI, systems, 4 references
[9] doi:10.1038/s41467-026-71725-0 [code]
Interactions across hemispheres in prefrontal cortex reflect global cognitive processing.
Journal: Nature communications
In common: Parallel Computing Toolbox, Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 3 other tools, 3 references
[10] doi:10.1038/s41531-026-01354-3 [code]
Neuromodulation-induced normalization of cortical metastable dynamics signatures in Parkinson's disease.
Journal: NPJ Parkinson's disease
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, SciPy, 2 other tools, 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.

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.