OSCR

Behaviourally driven closed-loop beta-tACS enhances beta activity and motor behaviour.

Code ↔ Paper

7 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.

6 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 7 matches · 2 of them tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
  1. [1] § Results › Behaviourally triggered beta tACS enhances post-movement beta ERS but not ERD ↔ code.zip/analyse_movement_beta_ERD.m, lines 101 to 126 · score 0.86 · pre movement baseline, 0–1.5 s, beta band, beta ERD, beta power, window · block oscr:b:88RK3SEPE1E7A-9 · Report a mismatch
  2. [2] § Methods › Statistical analyses ↔ code.zip/linear_mixed_models.R, lines 19 to 86 · score 0.75 · linear mixed, lme4, post hoc, pairwise, LMMs, models · block oscr:b:3W87NT7XJ8CBB-3 · Report a mismatch
  3. [3] § Methods › EEG recording and analysis ↔ code.zip/plot_movement_beta_ERD.m, lines 15 to 39 · score 0.75 · 0–1.5 s, 15–30 Hz, Beta ERD, 2.5 s, 15 Hz, windows · block oscr:b:4WQMY22679DAG-E · Report a mismatch
  4. [4] § Methods › EEG recording and analysis ↔ code.zip/plot_postmovement_beta_ERS.m, lines 16 to 48 · score 0.67 · 15–30 Hz, early stimulation, late stimulation, Beta ERS, 1.5 s, 15 Hz · block oscr:b:5YGAH7CXXV66W-5 · Report a mismatch
  5. [5] § Results › Behaviourally triggered beta tACS enhances post-movement beta ERS but not ERD ↔ code.zip/plot_movement_beta_ERD.m, lines 97 to 110 · score 0.62 · 0–1.5 s, beta ERD, window, power, movement · block oscr:b:BF7X49RWSDTBE-E · Report a mismatch
  6. [6] § Methods › Two-state model fitting ↔ code.zip/simulate_two_state_model.m, the whole file · a weak match · score 0.60 · state model, motor adaptation, error, fast · block oscr:b:B96RESYA2K227-S · Report a mismatch
  7. [7] § Results › Beta tACS increases retention of a visuomotor adaptation task ↔ code.zip/simulate_two_state_model.m, the whole file · a weak match · score 0.57 · state model, motor adaptation, simulated, Af, Bf, fast · block oscr:b:B96RESYA2K227-S · 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 · 168 lines · 5.3 KB · no license · 2 matches

  1. %% Plot movement-related beta ERD time-frequency responses
  2. %
  3. % Input:
  4. % group_ERD_ERS_data.mat
  5. %
  6. % Dependency:
  7. % EEGLAB (topoplot)
  8. %
  9. % Outputs:
  10. % FigS1.pdf
  11. % FigS1.png
  12. clc; clear; close all;
  13. %% Load group data
  14. scriptDir = fileparts(mfilename('fullpath'));
  15. repoDir = fileparts(scriptDir);
  16. dataDir = fullfile(repoDir, 'data');
  17. outputDir = fullfile(repoDir, 'outputs');
  18. if ~exist(outputDir, 'dir')
  19. mkdir(outputDir);
  20. end
  21. inputFile = fullfile(dataDir, 'group_ERD_ERS_data.mat');
  22. load(inputFile, 'ERD_data_all', 'all_movTime', 'conditions_new_name');
  23. assert(exist('topoplot', 'file') == 2, ...
  24. 'EEGLAB is required. Add the EEGLAB folder to the MATLAB path.');
  25. roiChannels = {'C1', 'C5', 'CP1', 'CP3', 'CP5', 'P1', 'P3', 'P5'};
  26. channelLabels = {ERD_data_all{1}.chns.labels};
  27. roiIdx = find(ismember(channelLabels, roiChannels));
  28. betaRange = [15, 30];
  29. erdWindowMs = [0, 1500];
  30. timeLimits = [-0.5, 2.5];
  31. colorLimitsTfr = [-2.5, 2.5];
  32. colorLimitsTopo = [-1, 1];
  33. densityTime = linspace(timeLimits(1), timeLimits(2), 200);
  34. %% Create the movement-related beta ERD overview
  35. fig = figure('Color', 'w', 'Units', 'centimeters', ...
  36. 'Position', [1, 1, 18, 12]);
  37. tiledlayout(fig, 3, 3, 'TileSpacing', 'compact', 'Padding', 'compact');
  38. tfrSource = cell(3, 1);
  39. movementSource = cell(3, 1);
  40. topoSource = cell(3, 1);
  41. for condIdx = 1:3
  42. condition = string(conditions_new_name{condIdx});
  43. erd = ERD_data_all{condIdx};
  44. groupTfr = mean(erd.data, 4, 'omitnan');
  45. timeSeconds = erd.time ./ 1000;
  46. %% Row 1: time-frequency response
  47. nexttile(condIdx);
  48. roiTfr = squeeze(mean(groupTfr(roiIdx, :, :), 1, 'omitnan'));
  49. contourf(timeSeconds, erd.freq, roiTfr, 40, 'LineColor', 'none');
  50. colormap(gca, redBlueMap(100));
  51. colorbarWithLabel('Power (dB)');
  52. clim(colorLimitsTfr);
  53. set(gca, 'YDir', 'normal', 'XLim', timeLimits, 'FontSize', 8);
  54. yticks(10:10:40);
  55. xline(0, 'k:', 'LineWidth', 0.5);
  56. rectangle('Position', [erdWindowMs(1) / 1000, betaRange(1), ...
  57. diff(erdWindowMs) / 1000, diff(betaRange)], ...
  58. 'EdgeColor', 'k', 'LineStyle', ':', 'LineWidth', 0.5);
  59. xlabel('Time (s)');
  60. ylabel('Frequency (Hz)');
  61. title(condition);
  62. [timeGrid, freqGrid] = meshgrid(timeSeconds, erd.freq);
  63. nTfr = numel(roiTfr);
  64. tfrSource{condIdx} = table( ...
  65. repmat(condition, nTfr, 1), timeGrid(:), freqGrid(:), roiTfr(:), ...
  66. 'VariableNames', {'Condition', 'Time_s', 'Frequency_Hz', 'Power_dB'});
  67. %% Row 2: movement-time distribution
  68. nexttile(condIdx + 3);
  69. movementTime = all_movTime{condIdx}(:);
  70. density = ksdensity(movementTime, densityTime, 'Bandwidth', 0.1);
  71. density = density ./ trapz(densityTime, density);
  72. plot(densityTime, density, 'Color', [223, 101, 176] ./ 255, ...
  73. 'LineWidth', 1);
  74. xline(0, 'k--', 'LineWidth', 0.5);
  75. xlim(timeLimits);
  76. ylim([0, max(density)]);
  77. xlabel('Time (s)');
  78. ylabel('Distribution');
  79. subtitle('Movement window');
  80. movementSource{condIdx} = table( ...
  81. repmat(condition, numel(movementTime), 1), movementTime, ...
  82. 'VariableNames', {'Condition', 'MovementTime_s'});
  83. %% Row 3: beta ERD scalp topography
  84. nexttile(condIdx + 6);
  85. betaIdx = erd.freq >= betaRange(1) & erd.freq <= betaRange(2);
  86. timeIdx = erd.time >= erdWindowMs(1) & erd.time <= erdWindowMs(2);
  87. topoPower = squeeze(mean(groupTfr(:, betaIdx, timeIdx), [2, 3], ...
  88. 'omitnan'));
  89. plotTopoPanel(topoPower, erd.chns, roiChannels, colorLimitsTopo);
  90. subtitle('0-1.5 s');
  91. topoSource{condIdx} = table( ...
  92. repmat(condition, numel(channelLabels), 1), ...
  93. string(channelLabels(:)), topoPower(:), ...
  94. 'VariableNames', {'Condition', 'Channel', 'Power_dB'});
  95. end
  96. %% Save figure and source data
  97. exportgraphics(fig, fullfile(outputDir, 'FigS1.pdf'), ...
  98. 'ContentType', 'vector', 'BackgroundColor', 'white');
  99. exportgraphics(fig, fullfile(outputDir, 'FigS1.png'), ...
  100. 'Resolution', 300, 'BackgroundColor', 'white');
  101. %% Local plotting functions
  102. function plotTopoPanel(power, chanlocs, roiChannels, mapLimits)
  103. labels = {chanlocs.labels};
  104. roiIdx = find(ismember(labels, roiChannels));
  105. stimIdx = find(ismember(labels, {'C3', 'Pz'}));
  106. topoplot(power, chanlocs, ...
  107. 'electrodes', 'on', ...
  108. 'emarker2', {roiIdx, 'o', 'k', 3, 1}, ...
  109. 'maplimits', mapLimits, ...
  110. 'style', 'map', ...
  111. 'numcontour', 5, ...
  112. 'shrink', 'on', ...
  113. 'colormap', redBlueMap(100));
  114. hold on;
  115. theta = deg2rad([chanlocs(stimIdx).theta]);
  116. radius = [chanlocs(stimIdx).radius];
  117. [x, y] = pol2cart(theta, radius);
  118. plot(x, y, 'wo', 'MarkerFaceColor', 'w', ...
  119. 'MarkerEdgeColor', 'k', 'MarkerSize', 5, 'LineWidth', 0.5);
  120. colorbarWithLabel('Power (dB)');
  121. clim(mapLimits);
  122. end
  123. function colorbarWithLabel(labelText)
  124. cbar = colorbar;
  125. cbar.Label.String = labelText;
  126. cbar.Label.FontSize = 10;
  127. cbar.Label.FontWeight = 'normal';
  128. cbar.TickDirection = 'out';
  129. cbar.FontSize = 8;
  130. end
  131. function cmap = redBlueMap(n)
  132. anchors = [
  133. 0.02, 0.19, 0.38
  134. 0.13, 0.40, 0.67
  135. 0.42, 0.68, 0.84
  136. 0.82, 0.90, 0.94
  137. 1.00, 1.00, 1.00
  138. 0.99, 0.86, 0.78
  139. 0.96, 0.65, 0.51
  140. 0.84, 0.24, 0.22
  141. 0.40, 0.00, 0.12
  142. ];
  143. x = linspace(0, 1, size(anchors, 1));
  144. cmap = interp1(x, anchors, linspace(0, 1, n), 'linear');
  145. end

plot_movement_beta_ERD.m, no license · at the source

Overview

  1. Oxford Centre for Integrative Neuroimaging, FMRIB, Nuffield Department of Clinical Neurosciences, University of Oxford, Oxford, UK
  2. Medical Research Council Brain Network Dynamics Unit, Nuffield Department of Clinical Neuroscience, University of Oxford, Oxford, UK
  3. Department of Physical Therapy and Assistive Technology, National Yang Ming Chiao Tung University, Taipei, Taiwan, ROC
  4. Department of Experimental Psychology, University of Oxford, Oxford, UK
Journal: Nature communications, volume 17, issue 1, article 8908
Dates: received 27 September 2025; accepted 6 July 2026; published online 21 July 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s41467-026-75799-8 · PMID 42481501 · PMCID PMC13503910 · OpenAlex W7169842273
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: other (modality), human (organism), systems (subfield)
Methods: Spectral & time-frequency, Statistics, Smoothing, state filtering, decompositions, Preprocessing
Keywords: Motor cortex, Neurophysiology
MeSH: Beta Rhythm*, Motor Activity*, Transcranial Direct Current Stimulation*, Adaptation, Physiological, Female, Humans, Motor Cortex, Psychomotor Performance (* major topic)
Topic: Transcranial Magnetic Stimulation Studies (Neurology, Neuroscience), according to OpenAlex
Funding: Wellcome Trust (306553/Z/23/Z, 203139/A/16/Z, 203139/Z/16/Z, 224430/Z/21/Z, 222446/Z/21/Z); NIHR Oxford Health Biomedical Research Centre; ZonMw (Rubicon-04520232310005, 04520232310005); National Institute for Health Research (NIHR) (NIHR203316)
Citations: not cited yet (Europe PMC); 53 references in the paper

Abstract

Movement-related beta event-related synchronization (ERS) has been linked to motor control and learning, showing potential as a therapeutic target for those with movement deficits, such as stroke survivors. However, whether directly modulating beta ERS can causally influence motor performance remains unclear, largely due to the lack of methods designed to specifically target this neural activity. To address this gap, we developed a behaviourally-driven, closed-loop transcranial alternating current stimulation (tACS) approach to target movement-related beta ERS during a visuomotor adaptation task. We found that the behaviourally-driven, closed-loop beta-tACS specifically enhances beta ERS without affecting beta event-related desynchronization (ERD). Critically, this targeted enhancement significantly improves retention of motor adaptation. These findings support a functional role of beta ERS in motor behaviour and suggest that behaviourally-driven beta-tACS may provide a promising approach to further test the mechanistic links between beta ERS and behavioural outcomes in clinical populations.

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

OSF r6phw

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Size: 2 files
Software Heritage: not checked
Found in: “Code availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: EEGLAB (2 files), FieldTrip (2 files), Statistics and Machine Learning Toolbox (2 files), afex (1 file), car (1 file), easystats (1 file), emmeans (1 file), ggplot2 (1 file), lme4 (1 file), lmerTest (1 file), tidyverse (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
7 files
At the source:

Code availability

The code used to generate the figures and perform the reported analyses is available on OSF at https://doi.org/10.17605/OSF.IO/R6PHW.

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;
  • 7 scripts, each with its path and the digest of its content;
  • 7 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 EEG data supporting the findings of this study have been deposited on OSF at https://doi.org/10.17605/OSF.IO/R6PHW. 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, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 11 authors, 2 keywords, 8 MeSH terms, 4 funders, 53 references.

Cite

This paper

Wu, M., Xu, Z., Fleming, M. K., Shackle, N., Biller, L., Tabone, F., Wong, P.-L., Nettekoven, C., Sharott, A., Zich, C., & Stagg, C. J. (2026). Behaviourally driven closed-loop beta-tACS enhances beta activity and motor behaviour. Nature communications, 17(1), 8908. https://doi.org/10.1038/s41467-026-75799-8

BibTeX

@article{wu2026behaviourally,
author = {Wu, Min and Xu, Zeyu and Fleming, Melanie K and Shackle, Nicholas and Biller, Lara and Tabone, Faye and Wong, Pei-Ling and Nettekoven, Caroline and Sharott, Andrew and Zich, Catharina and Stagg, Charlotte J},
title = {{Behaviourally driven closed-loop beta-tACS enhances beta activity and motor behaviour}},
journal = {Nature communications},
year = {2026},
month = jul,
volume = {17},
number = {1},
pages = {8908},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/s41467-026-75799-8},
url = {https://doi.org/10.1038/s41467-026-75799-8},
pmid = {42481501},
pmcid = {PMC13503910}
}

RIS

TY - JOUR
AU - Wu, Min
AU - Xu, Zeyu
AU - Fleming, Melanie K
AU - Shackle, Nicholas
AU - Biller, Lara
AU - Tabone, Faye
AU - Wong, Pei-Ling
AU - Nettekoven, Caroline
AU - Sharott, Andrew
AU - Zich, Catharina
AU - Stagg, Charlotte J
TI - Behaviourally driven closed-loop beta-tACS enhances beta activity and motor behaviour
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/07/21
VL - 17
IS - 1
SP - 8908
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/s41467-026-75799-8
UR - https://doi.org/10.1038/s41467-026-75799-8
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-75799-8",
"type": "article-journal",
"title": "Behaviourally driven closed-loop beta-tACS enhances beta activity and motor behaviour",
"container-title": "Nature communications",
"author": [
{
"family": "Wu",
"given": "Min"
},
{
"family": "Xu",
"given": "Zeyu"
},
{
"family": "Fleming",
"given": "Melanie K"
},
{
"family": "Shackle",
"given": "Nicholas"
},
{
"family": "Biller",
"given": "Lara"
},
{
"family": "Tabone",
"given": "Faye"
},
{
"family": "Wong",
"given": "Pei-Ling"
},
{
"family": "Nettekoven",
"given": "Caroline"
},
{
"family": "Sharott",
"given": "Andrew"
},
{
"family": "Zich",
"given": "Catharina"
},
{
"family": "Stagg",
"given": "Charlotte J"
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "8908",
"DOI": "10.1038/s41467-026-75799-8",
"PMID": "42481501",
"PMCID": "PMC13503910",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41467-026-75799-8",
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
21
]
]
}
}

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.3389/fnhum.2021.755748
Investigating Different Levels of Bimanual Interaction With a Novel Motor Learning Task: A Behavioural and Transcranial Alternating Current Stimulation Study.
Journal: Frontiers in human neuroscience
In common: other, 11 references, author Charlotte J Stagg
[2] doi:10.1093/cercor/bhaf011 [code]
Bifocal tACS over the primary sensorimotor cortices increases interhemispheric inhibition and improves bimanual dexterity.
Journal: Cerebral cortex (New York, N.Y. : 1991)
In common: emmeans, car, lmerTest, 3 other tools, other, systems, 7 references
[3] doi:10.3390/brainsci14121284 [code]
The Modulatory Effects of Transcranial Alternating Current Stimulation on Brain Oscillatory Patterns in the Beta Band in Healthy Older Adults.
Journal: Brain sciences
In common: Statistics and Machine Learning Toolbox, other, systems, 12 references
[4] doi:10.1371/journal.pbio.3003979 [code]
Impaired midfrontal‑motor theta phase synchronization characterizes maladaptive motivational behavior in people with obsessive‑compulsive disorder.
Journal: PLoS biology
In common: afex, emmeans, EEGLAB, 7 other tools, systems, 1 reference
[5] doi:10.3390/brainsci16010047 [code]
The Effects of Varying Intensities of Unilateral Handgrip Fatigue on Bilateral Movement.
Journal: Brain sciences
In common: EEGLAB, Statistics and Machine Learning Toolbox, other, 2 references, 2 authors
[6] doi:10.1093/braincomms/fcag077 [code]
Roles of beta synchronization for motor skill acquisition change after stroke.
Journal: Brain communications
In common: emmeans, car, FieldTrip, 3 other tools, 5 references
[7] doi:10.1111/psyp.14707 [code]
Increased visual alpha-band activity during self-paced finger tapping does not affect early visual stimulus processing.
Journal: Psychophysiology
In common: afex, EEGLAB, lmerTest, 4 other tools, 5 references
[8] doi:10.1371/journal.pone.0353990 [code]
Positive mood enhances accessibility of unrelated concepts in the first language but not in the foreign language.
Journal: PloS one
In common: afex, emmeans, EEGLAB, 5 other tools, 3 references
[9] doi:10.1371/journal.pcbi.1011562 [code]
Precise cortical contributions to sensorimotor feedback control during reactive balance.
Journal: PLoS computational biology
In common: afex, emmeans, car, 4 other tools, other, systems, 3 references
[10] doi:10.1038/s41598-023-35808-y [code]
Effects of acute psychosocial stress on source level EEG power and functional connectivity measures.
Journal: Scientific reports
In common: afex, easystats, emmeans, 6 other tools, 1 reference

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.

Add the badge to the code's README

OSCR: the badge of this paper

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 -->
[![OSCR](https://openscicode.org/badge/doi/10.1038/s41467-026-75799-8.svg)](https://openscicode.org/badge/doi/10.1038/s41467-026-75799-8)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1038/s41467-026-75799-8.svg
   :target: https://openscicode.org/badge/doi/10.1038/s41467-026-75799-8
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41467-026-75799-8"><img src="https://openscicode.org/badge/doi/10.1038/s41467-026-75799-8.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

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)

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.