Behaviourally driven closed-loop beta-tACS enhances beta activity and motor behaviour.
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] § 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] § 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] § 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] § 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] § 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] § 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] § 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
- %% Plot movement-related beta ERD time-frequency responses
- %
- % Input:
- % group_ERD_ERS_data.mat
- %
- % Dependency:
- % EEGLAB (topoplot)
- %
- % Outputs:
- % FigS1.pdf
- % FigS1.png
- clc; clear; close all;
- %% Load group data
- scriptDir = fileparts(mfilename('fullpath'));
- repoDir = fileparts(scriptDir);
- dataDir = fullfile(repoDir, 'data');
- outputDir = fullfile(repoDir, 'outputs');
- if ~exist(outputDir, 'dir')
- mkdir(outputDir);
- end
- inputFile = fullfile(dataDir, 'group_ERD_ERS_data.mat');
- load(inputFile, 'ERD_data_all', 'all_movTime', 'conditions_new_name');
- assert(exist('topoplot', 'file') == 2, ...
- 'EEGLAB is required. Add the EEGLAB folder to the MATLAB path.');
- roiChannels = {'C1', 'C5', 'CP1', 'CP3', 'CP5', 'P1', 'P3', 'P5'};
- channelLabels = {ERD_data_all{1}.chns.labels};
- roiIdx = find(ismember(channelLabels, roiChannels));
- betaRange = [15, 30];
- erdWindowMs = [0, 1500];
- timeLimits = [-0.5, 2.5];
- colorLimitsTfr = [-2.5, 2.5];
- colorLimitsTopo = [-1, 1];
- densityTime = linspace(timeLimits(1), timeLimits(2), 200);
- %% Create the movement-related beta ERD overview
- fig = figure('Color', 'w', 'Units', 'centimeters', ...
- 'Position', [1, 1, 18, 12]);
- tiledlayout(fig, 3, 3, 'TileSpacing', 'compact', 'Padding', 'compact');
- tfrSource = cell(3, 1);
- movementSource = cell(3, 1);
- topoSource = cell(3, 1);
- for condIdx = 1:3
- condition = string(conditions_new_name{condIdx});
- erd = ERD_data_all{condIdx};
- groupTfr = mean(erd.data, 4, 'omitnan');
- timeSeconds = erd.time ./ 1000;
- %% Row 1: time-frequency response
- nexttile(condIdx);
- roiTfr = squeeze(mean(groupTfr(roiIdx, :, :), 1, 'omitnan'));
- contourf(timeSeconds, erd.freq, roiTfr, 40, 'LineColor', 'none');
- colormap(gca, redBlueMap(100));
- colorbarWithLabel('Power (dB)');
- clim(colorLimitsTfr);
- set(gca, 'YDir', 'normal', 'XLim', timeLimits, 'FontSize', 8);
- yticks(10:10:40);
- xline(0, 'k:', 'LineWidth', 0.5);
- rectangle('Position', [erdWindowMs(1) / 1000, betaRange(1), ...
- diff(erdWindowMs) / 1000, diff(betaRange)], ...
- 'EdgeColor', 'k', 'LineStyle', ':', 'LineWidth', 0.5);
- xlabel('Time (s)');
- ylabel('Frequency (Hz)');
- title(condition);
- [timeGrid, freqGrid] = meshgrid(timeSeconds, erd.freq);
- nTfr = numel(roiTfr);
- tfrSource{condIdx} = table( ...
- repmat(condition, nTfr, 1), timeGrid(:), freqGrid(:), roiTfr(:), ...
- 'VariableNames', {'Condition', 'Time_s', 'Frequency_Hz', 'Power_dB'});
- %% Row 2: movement-time distribution
- nexttile(condIdx + 3);
- movementTime = all_movTime{condIdx}(:);
- density = ksdensity(movementTime, densityTime, 'Bandwidth', 0.1);
- density = density ./ trapz(densityTime, density);
- plot(densityTime, density, 'Color', [223, 101, 176] ./ 255, ...
- 'LineWidth', 1);
- xline(0, 'k--', 'LineWidth', 0.5);
- xlim(timeLimits);
- ylim([0, max(density)]);
- xlabel('Time (s)');
- ylabel('Distribution');
- subtitle('Movement window');
- movementSource{condIdx} = table( ...
- repmat(condition, numel(movementTime), 1), movementTime, ...
- 'VariableNames', {'Condition', 'MovementTime_s'});
- %% Row 3: beta ERD scalp topography
- nexttile(condIdx + 6);
- betaIdx = erd.freq >= betaRange(1) & erd.freq <= betaRange(2);
- timeIdx = erd.time >= erdWindowMs(1) & erd.time <= erdWindowMs(2);
- topoPower = squeeze(mean(groupTfr(:, betaIdx, timeIdx), [2, 3], ...
- 'omitnan'));
- plotTopoPanel(topoPower, erd.chns, roiChannels, colorLimitsTopo);
- subtitle('0-1.5 s');
- topoSource{condIdx} = table( ...
- repmat(condition, numel(channelLabels), 1), ...
- string(channelLabels(:)), topoPower(:), ...
- 'VariableNames', {'Condition', 'Channel', 'Power_dB'});
- end
- %% Save figure and source data
- exportgraphics(fig, fullfile(outputDir, 'FigS1.pdf'), ...
- 'ContentType', 'vector', 'BackgroundColor', 'white');
- exportgraphics(fig, fullfile(outputDir, 'FigS1.png'), ...
- 'Resolution', 300, 'BackgroundColor', 'white');
- %% Local plotting functions
- function plotTopoPanel(power, chanlocs, roiChannels, mapLimits)
- labels = {chanlocs.labels};
- roiIdx = find(ismember(labels, roiChannels));
- stimIdx = find(ismember(labels, {'C3', 'Pz'}));
- topoplot(power, chanlocs, ...
- 'electrodes', 'on', ...
- 'emarker2', {roiIdx, 'o', 'k', 3, 1}, ...
- 'maplimits', mapLimits, ...
- 'style', 'map', ...
- 'numcontour', 5, ...
- 'shrink', 'on', ...
- 'colormap', redBlueMap(100));
- hold on;
- theta = deg2rad([chanlocs(stimIdx).theta]);
- radius = [chanlocs(stimIdx).radius];
- [x, y] = pol2cart(theta, radius);
- plot(x, y, 'wo', 'MarkerFaceColor', 'w', ...
- 'MarkerEdgeColor', 'k', 'MarkerSize', 5, 'LineWidth', 0.5);
- colorbarWithLabel('Power (dB)');
- clim(mapLimits);
- end
- function colorbarWithLabel(labelText)
- cbar = colorbar;
- cbar.Label.String = labelText;
- cbar.Label.FontSize = 10;
- cbar.Label.FontWeight = 'normal';
- cbar.TickDirection = 'out';
- cbar.FontSize = 8;
- end
- function cmap = redBlueMap(n)
- anchors = [
- 0.02, 0.19, 0.38
- 0.13, 0.40, 0.67
- 0.42, 0.68, 0.84
- 0.82, 0.90, 0.94
- 1.00, 1.00, 1.00
- 0.99, 0.86, 0.78
- 0.96, 0.65, 0.51
- 0.84, 0.24, 0.22
- 0.40, 0.00, 0.12
- ];
- x = linspace(0, 1, size(anchors, 1));
- cmap = interp1(x, anchors, linspace(0, 1, n), 'linear');
- end
plot_movement_beta_ERD.m, no license · at the source
Overview
- Oxford Centre for Integrative Neuroimaging, FMRIB, Nuffield Department of Clinical Neurosciences, University of Oxford, Oxford, UK
- Medical Research Council Brain Network Dynamics Unit, Nuffield Department of Clinical Neuroscience, University of Oxford, Oxford, UK
- Department of Physical Therapy and Assistive Technology, National Yang Ming Chiao Tung University, Taipei, Taiwan, ROC
- Department of Experimental Psychology, University of Oxford, Oxford, UK
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
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
7 files
- code.zip/
analyse_movement_beta_ER , MATLAB, 352 lines, 1 matchD.m - code.zip/
analyse_postmovement_bet , MATLAB, 340 linesa_ERS.m - code.zip/
linear_mixed_models.R , R, 88 lines, 1 match - code.zip/
plot_example_movement_pa , MATLAB, 111 linesths.m - code.zip/
plot_movement_beta_ERD.m , MATLAB, 168 lines, 2 matches - code.zip/
plot_postmovement_beta_E , MATLAB, 203 lines, 1 matchRS.m - code.zip/
simulate_two_state_model , MATLAB, 30 lines, 2 matches.m
Code availability
The code used to generate the figures and perform the reported analyses is available on OSF at https://
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://
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://
BibTeX
@article{wu2026behaviour
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/
url = {https://
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/
VL - 17
IS - 1
SP - 8908
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"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":
"volume": "17",
"issue": "1",
"page": "8908",
"DOI": "10.1038/
"PMID": "42481501",
"PMCID": "PMC13503910",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://
"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 neuroscienceIn 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 sciencesIn 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 biologyIn 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 sciencesIn 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 communicationsIn 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: PsychophysiologyIn 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 oneIn 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 biologyIn 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 reportsIn 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.
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, 7 scripts, and 7 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:c2756d99b335d7af…
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.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:endHTML
<!-- 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.
