OSCR

Physical activity enhances theta-periodicity of visual attentional allocation.

Code ↔ Paper

6 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 6 matches
  1. [1] § STAR★Methods › Method details › Theta modulation after cue onset ↔ attention_function/circ_wwtest.m, lines 1–76 · score 0.64 · Watson Williams, Circular Statistics Toolbox, concentration, bins
  2. [2] § STAR★Methods › Quantification and statistical analysis ↔ attention_function/circ_wwtest.m, lines 1–76 · score 0.56 · Watson Williams, Circular Statistics Toolbox
  3. [3] § Result › Theta modulation after cue onset ↔ plot_fig4C_corr_cue_theta_behave.m, lines 16–59 · score 0.54 · theta power, cue onset, theta amplitude, frontal, correlated, RTs
  4. [4] § Result › Theta rhythmic modulations in behavioral performance ↔ plot_supfig4_difference_PA_rest_FFT.m, lines 47–91 · score 0.54 · RT variance, FFT, accuracy, power, DA, RTs
  5. [5] § STAR★Methods › Method details › Theta modulation after cue onset ↔ plot_fig4C_corr_cue_theta_behave.m, lines 16–59 · score 0.53 · theta power, theta amplitude, Spearman, frontal, sensors, correlated
  6. [6] § STAR★Methods › Quantification and statistical analysis ↔ plot_supfig7_frontalTheta_occHFA_coupling.m, lines 6–10 · score 0.53 · theta HFA coupling, frontal theta, phases, cue

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 · 157 lines · 4.5 KB · no license · 2 matches

  1. function [pval table] = circ_wwtest(varargin)
  2. % [pval, table] = circ_wwtest(alpha, idx, [w])
  3. % [pval, table] = circ_wwtest(alpha1, alpha2, [w1, w2])
  4. % Parametric Watson-Williams multi-sample test for equal means. Can be
  5. % used as a one-way ANOVA test for circular data.
  6. %
  7. % H0: the s populations have equal means
  8. % HA: the s populations have unequal means
  9. %
  10. % Note:
  11. % Use with binned data is only advisable if binning is finer than 10 deg.
  12. % In this case, alpha is assumed to correspond
  13. % to bin centers.
  14. %
  15. % The Watson-Williams two-sample test assumes underlying von-Mises
  16. % distributrions. All groups are assumed to have a common concentration
  17. % parameter k.
  18. %
  19. % Input:
  20. % alpha angles in radians
  21. % idx indicates which population the respective angle in alpha
  22. % comes from, 1:s
  23. % [w number of incidences in case of binned angle data]
  24. %
  25. % Output:
  26. % pval p-value of the Watson-Williams multi-sample test. Discard H0 if
  27. % pval is small.
  28. % table cell array containg the ANOVA table
  29. %
  30. % PHB 3/19/2009
  31. %
  32. % References:
  33. % Biostatistical Analysis, J. H. Zar
  34. %
  35. % Circular Statistics Toolbox for Matlab
  36. % By Philipp Berens, 2009
  37. % [email hidden] - www.kyb.mpg.de/~berens/circStat.html
  38. [alpha, idx, w] = processInput(varargin{:});
  39. % number of groups
  40. u = unique(idx);
  41. s = length(u);
  42. % number of samples
  43. n = sum(w);
  44. % compute relevant quantitites
  45. pn = zeros(s,1); pr = pn;
  46. for t=1:s
  47. pidx = idx == u(t);
  48. pn(t) = sum(pidx.*w);
  49. pr(t) = circ_r(alpha(pidx),w(pidx));
  50. end
  51. r = circ_r(alpha,w);
  52. rw = sum(pn.*pr)/n;
  53. % make sure assumptions are satisfied
  54. checkAssumption(rw,mean(pn))
  55. % test statistic
  56. kk = circ_kappa(rw);
  57. beta = 1+3/(8*kk); % correction factor
  58. A = sum(pr.*pn) - r*n;
  59. B = n - sum(pr.*pn);
  60. F = beta * (n-s) * A / (s-1) / B;
  61. pval = 1 - fcdf(F,s-1,n-s);
  62. na = nargout;
  63. % if na < 2
  64. % printTable;
  65. % end
  66. prepareOutput;
  67. function printTable
  68. fprintf('\nANALYSIS OF VARIANCE TABLE (WATSON-WILLIAMS TEST)\n\n');
  69. fprintf('%s\t\t\t\t%s\t%s\t\t%s\t\t%s\t\t\t%s\n', ' ' ,'d.f.', 'SS', 'MS', 'F', 'P-Value');
  70. fprintf('--------------------------------------------------------------------\n');
  71. fprintf('%s\t\t\t%u\t\t%.2f\t%.2f\t%.2f\t\t%.4f\n', 'Columns', s-1 , A, A/(s-1), F, pval);
  72. fprintf('%s\t\t%u\t\t%.2f\t%.2f\n', 'Residual ', n-s, B, B/(n-s));
  73. fprintf('--------------------------------------------------------------------\n');
  74. fprintf('%s\t\t%u\t\t%.2f', 'Total ',n-1,A+B);
  75. fprintf('\n\n')
  76. end
  77. function prepareOutput
  78. if na > 1
  79. table = {'Source','d.f.','SS','MS','F','P-Value'; ...
  80. 'Columns', s-1 , A, A/(s-1), F, pval; ...
  81. 'Residual ', n-s, B, B/(n-s), [], []; ...
  82. 'Total',n-1,A+B,[],[],[]};
  83. end
  84. end
  85. end
  86. function checkAssumption(rw,n)
  87. if n > 10 && rw<.45
  88. warning('Test not applicable. Average resultant vector length < 0.45.') %#ok<WNTAG>
  89. elseif n > 6 && rw<.5
  90. warning('Test not applicable. Average number of samples per population < 11 and average resultant vector length < 0.5.') %#ok<WNTAG>
  91. elseif n >=5 && rw<.55
  92. warning('Test not applicable. Average number of samples per population < 7 and average resultant vector length < 0.55.') %#ok<WNTAG>
  93. elseif n < 5
  94. warning('Test not applicable. Average number of samples per population < 5.') %#ok<WNTAG>
  95. end
  96. end
  97. function [alpha, idx, w] = processInput(varargin)
  98. if nargin == 4
  99. alpha1 = varargin{1}(:);
  100. alpha2 = varargin{2}(:);
  101. w1 = varargin{3}(:);
  102. w2 = varargin{4}(:);
  103. alpha = [alpha1; alpha2];
  104. idx = [ones(size(alpha1)); ones(size(alpha2))];
  105. w = [w1; w2];
  106. elseif nargin==2 && sum(abs(round(varargin{2})-varargin{2}))>1e-5
  107. alpha1 = varargin{1}(:);
  108. alpha2 = varargin{2}(:);
  109. alpha = [alpha1; alpha2];
  110. idx = [ones(size(alpha1)); 2*ones(size(alpha2))];
  111. w = ones(size(alpha));
  112. elseif nargin==2
  113. alpha = varargin{1}(:);
  114. idx = varargin{2}(:);
  115. if ~(size(idx,1)==size(alpha,1))
  116. error('Input dimensions do not match.')
  117. end
  118. w = ones(size(alpha));
  119. elseif nargin==3
  120. alpha = varargin{1}(:);
  121. idx = varargin{2}(:);
  122. w = varargin{3}(:);
  123. if ~(size(idx,1)==size(alpha,1))
  124. error('Input dimensions do not match.')
  125. end
  126. if ~(size(w,1)==size(alpha,1))
  127. error('Input dimensions do not match.')
  128. end
  129. else
  130. error('Invalid use of circ_wwtest. Type help circ_wwtest.')
  131. end
  132. end

circ_wwtest.m at commit ad9ddd2, no license · at the source

Overview

Authors: Xinyun Che1, Christoph Reichert1, Robert T Knight2,3, Stefan Dürschmid1,4
  1. Leibniz Institute for Neurobiology, Brenneckestr. 6, 39118 Magdeburg, Germany
  2. Departments of Neuroscience and Psychology, University of California, Berkeley, 245 Warren Hall, Berkeley CA 94720, USA
  3. Helen Wills Neuroscience Institute, University of California, Berkeley, Berkeley CA 94720, USA
  4. Department of Psychiatry and Psychotherapy, Otto-von-Guericke University Magdeburg, Leipziger Str. 44, 39120 Magdeburg, Germany
Journal: iScience, volume 29, issue 6, article 116240
Dates: received 15 November 2025; accepted 19 May 2026; published online 8 June 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1016/j.isci.2026.116240 · PMID 42291248 · PMCID PMC13264037 · OpenAlex W7163923957
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: cognitive (subfield)
Methods: Spectral & time-frequency, Preprocessing, Connectivity, Statistics, Smoothing, state filtering, decompositions, fMRI & imaging
Keywords: Physical activity, Cellular neuroscience, Sensory neuroscience
Topic: Neural and Behavioral Psychology Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: German Research Foundation (SFB 1436)
Citations: not cited yet (Europe PMC); 74 references in the paper

Abstract

The traditional notion of a sustained visual spotlight of attention has been challenged by behavioral and neural evidence showing that attention fluctuates rhythmically in the theta band (3–8 Hz). In rodents, locomotion drives hippocampal theta oscillations that support cue sampling during navigation, enhancing sensory encoding and decision-making. This raises the question of whether physical activity (PA) similarly modulates theta-based attentional sampling in humans. Using magnetoencephalography (MEG), we found that discrimination accuracy (DA) increased following PA, accompanied by stronger theta-band modulation of both DA and reaction times (RTs) in trial-by-trial spectral analyses. Critically, PA elevated frontal theta power after cue presentation and shifted the coupling of visual high-frequency activity (HFA; 80–150 Hz) toward an encoding-sensitive theta phase. Moreover, target-evoked HFA exhibited stronger theta-range fluctuations after PA. Together, these findings demonstrate that short bouts of movement can tune the brain’s intrinsic theta-band sampling mechanism, thereby linking PA to enhanced visual attention.

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 6 matches between paragraphs and lines of code.

FreyaChe/visual_attention_script

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: ad9ddd29e2a918121b8ff7c9b407c7ecec65e7d4, 10 May 2026
Languages: MATLAB (62)
Size: 87 files, 62 scripts
Software Heritage: not archived
Found in: “Data and code availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Statistics and Machine Learning Toolbox (22 files), shadedErrorBar (10 files), CircStat (5 files), EEGLAB (1 file), Curve Fitting Toolbox (1 file), Signal Processing Toolbox (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
63 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:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 62 scripts, each with its path and the digest of its content;
  • 6 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 and code availability

All data needed to evaluate the conclusions in the paper are available in the GitHub repository: https://github.com/FreyaChe/visual_attention_script. Raw and preprocessed MEG/EEG data are not publicly available due to participant privacy restrictions and ethics approval requirements. Requests for access should be directed to the lead contact and are subject to institutional data sharing agreements.

All analysis code is available in the GitHub repository listed above https://github.com/FreyaChe/visual_attention_script.

Any additional information required to reanalyze the data reported in this paper is available from the lead contact upon request.

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 2, 28 September 2026

  • Authors: added Stefan Dürschmid (0000-0001-6686-976X); removed Stefan Dürschmid

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 4 authors, 3 keywords, 1 funder, 74 references.

Cite

This paper

Che, X., Reichert, C., Knight, R. T., & Dürschmid, S. (2026). Physical activity enhances theta-periodicity of visual attentional allocation. iScience, 29(6), 116240. https://doi.org/10.1016/j.isci.2026.116240

BibTeX

@article{che2026physical,
author = {Che, Xinyun and Reichert, Christoph and Knight, Robert T and Dürschmid, Stefan},
title = {{Physical activity enhances theta-periodicity of visual attentional allocation}},
journal = {iScience},
year = {2026},
month = jun,
volume = {29},
number = {6},
pages = {116240},
publisher = {Elsevier},
issn = {2589-0042},
doi = {10.1016/j.isci.2026.116240},
url = {https://doi.org/10.1016/j.isci.2026.116240},
pmid = {42291248},
pmcid = {PMC13264037}
}

RIS

TY - JOUR
AU - Che, Xinyun
AU - Reichert, Christoph
AU - Knight, Robert T
AU - Dürschmid, Stefan
TI - Physical activity enhances theta-periodicity of visual attentional allocation
T2 - iScience
J2 - iScience
PY - 2026
DA - 2026/06/08
VL - 29
IS - 6
SP - 116240
SN - 2589-0042
PB - Elsevier
DO - 10.1016/j.isci.2026.116240
UR - https://doi.org/10.1016/j.isci.2026.116240
LA - en
ER -

CSL-JSON

{
"id": "10.1016/j.isci.2026.116240",
"type": "article-journal",
"title": "Physical activity enhances theta-periodicity of visual attentional allocation",
"container-title": "iScience",
"author": [
{
"family": "Che",
"given": "Xinyun"
},
{
"family": "Reichert",
"given": "Christoph"
},
{
"family": "Knight",
"given": "Robert T"
},
{
"family": "Dürschmid",
"given": "Stefan"
}
],
"container-title-short": "iScience",
"volume": "29",
"issue": "6",
"page": "116240",
"DOI": "10.1016/j.isci.2026.116240",
"PMID": "42291248",
"PMCID": "PMC13264037",
"ISSN": "2589-0042",
"publisher": "Elsevier",
"URL": "https://doi.org/10.1016/j.isci.2026.116240",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
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.1038/s42003-025-08618-3 [code]
Physical activity simultaneously improves working memory and ripple-spindle coupling
Journal: n/a
In common: shadedErrorBar, CircStat, EEGLAB, 1 other tool, cognitive, 4 references, 2 authors
[2] doi:10.1038/s41598-026-50974-5 [code]
Temporal kinetics of brain state effects on visual perception.
Journal: Scientific reports
In common: shadedErrorBar, Statistics and Machine Learning Toolbox, cognitive, 8 references
[3] doi:10.1186/s12915-026-02630-7 [code]
Phasic modulation of attentional rhythmic sampling according to task demands.
Journal: BMC biology
In common: CircStat, Statistics and Machine Learning Toolbox, cognitive, 8 references
[4] doi:10.7554/elife.108017 [code]
Visual working memory guides attention rhythmically in humans.
Journal: eLife
In common: EEGLAB, Statistics and Machine Learning Toolbox, cognitive, 7 references
[5] doi:10.1162/imag.a.105 [code]
Right posterior theta reflects human parahippocampal phase resetting by salient cues during goal-directed navigation
Journal: n/a
In common: CircStat, EEGLAB, Statistics and Machine Learning Toolbox, cognitive, 5 references
[6] doi:10.1016/j.neuron.2026.03.034 [code]
Dentate gyrus interneurons modulate winner-take-all network dynamics in freely behaving mice.
Journal: Neuron
In common: shadedErrorBar, CircStat, Curve Fitting Toolbox, 3 other tools, 2 references
[7] doi:10.7554/elife.100642 [code]
Disrupted hippocampal theta-gamma coupling and spike-field coherence following experimental traumatic brain injury.
Journal: eLife
In common: CircStat, Curve Fitting Toolbox, Signal Processing Toolbox, 5 references
[8] doi:10.1038/s41467-026-75347-4 [code]
Sleep reveals dynamics integrating and segregating movement and stimulus representations in V1.
Journal: Nature communications
In common: CircStat, Curve Fitting Toolbox, EEGLAB, 2 other tools, 3 references
[9] doi:10.1038/s41598-026-49900-6 [code]
Global neural oscillations underlie performance variability and attentional state fluctuations in humans.
Journal: Scientific reports
In common: CircStat, EEGLAB, Signal Processing Toolbox, 1 other tool, cognitive, 4 references
[10] doi:10.1126/sciadv.aee1002 [code]
Theta oscillations are an organizational unit of odor processing in the olfactory bulb.
Journal: Science advances
In common: shadedErrorBar, CircStat, Signal Processing Toolbox, 1 other tool, 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.