OSCR

Cortico-pallidal beta dynamics underlie impaired turning in Parkinson's disease.

Code ↔ Paper

The paper beside its authors' code: matches between them have not been computed for this paper yet.

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 · 117 lines · 5.4 KB · no license

  1. close all
  2. clear all
  3. clc
  4. %% Testing datasets
  5. % This code has been tested with a set of datasets under
  6. % ~/Box/UCSF-RCS_Test_Datasets_Analysis-rcs-data-Code/../Power/...
  7. % Access to this folder is managed and restricted to UCSF employees under
  8. % (https://ucsf.box.com/s/bolhachjv80rhywa5h0r9peo73mz3003)
  9. %
  10. % This example code can be run with a benchotp dataset that is shared for any user under
  11. % https://ucsf.box.com/s/9bte1t8s4il7rr0ot4egwsae1exl5y7i
  12. %% This code assumes you have run ProcessRCS and/or DEMO_LoadRCS.m
  13. % Select file
  14. [fileName,pathName] = uigetfile('AllDataTables.mat');
  15. % Load file
  16. disp('Loading selected .mat file')
  17. load([pathName fileName])
  18. % Create unified table with selected data streams -- use timeDomain data as
  19. % time base
  20. dataStreams = {timeDomainData, AccelData, PowerData, FFTData, AdaptiveData};
  21. [combinedDataTable] = createCombinedTable(dataStreams,unifiedDerivedTimes,metaData);
  22. %% Example how to compare streamed power from device and 'off line' calculated power, given
  23. % - predefined fftSettings
  24. % - predefined powerSettings
  25. % Comparing 'off line' power data with the RCS streamed for default fft and power settings
  26. if ~isempty(powerSettings)
  27. % Here we get the power calculated 'off-line' using the time domain
  28. % for each power channel that have been streamed
  29. [combinedPowerTable, powerTablesBySetting] = getPowerFromTimeDomain(combinedDataTable,fftSettings, powerSettings, metaData,2);
  30. idxPowerCalc = ~isnan(combinedPowerTable.Power_Band1);
  31. idxPowerRCS = ~isnan(combinedDataTable.Power_Band1);
  32. % plot the result, comparing actual Streamed power with 'off line'
  33. figure, hold on, legend show, set(gca,'FontSize',20)
  34. title('RC+S band power: on-board vs off-line comparison')
  35. plot(combinedDataTable.localTime(idxPowerRCS),...
  36. combinedDataTable.(['Power_Band',num2str(1)])(idxPowerRCS),...
  37. 'Marker','*','MarkerSize',1,'Linewidth',1,...
  38. 'DisplayName',['on-board, band(Hz) = ',powerSettings.powerBands(1).powerBinsInHz{1}])
  39. % plot(combinedPowerTable.localTime(idxPowerCalc),...
  40. % combinedPowerTable.(['Power_Band',num2str(1)])(idxPowerCalc),...
  41. % 'Marker','o','MarkerSize',5,'LineWidth',2,...
  42. % 'DisplayName',['Calculated Power Band, Bins(Hz) = ',powerSettings.powerBands(1).powerBinsInHz{1}])
  43. % Here we calculate equivalent power series from a selected
  44. % time domain channel (1, 2, 3 or 4) for a chosen power band [X,Y]Hz
  45. [newPowerFromTimeDomain, newSettings] = calculateNewPower(combinedDataTable, fftSettings, powerSettings, metaData, 1, [8 12.2]);
  46. idxPowerNewCalc = ~isnan(newPowerFromTimeDomain.calculatedPower);
  47. % plot the result
  48. plot(newPowerFromTimeDomain.localTime(idxPowerNewCalc),...
  49. newPowerFromTimeDomain.calculatedPower(idxPowerNewCalc),...
  50. 'Marker','o','MarkerSize',1,'LineWidth',2,...
  51. 'DisplayName',['off-line, band(Hz) = ',newSettings.powerSettings.powerBands.powerBinsInHz])
  52. ylabel('Power (millivolts^2)')
  53. end
  54. %% Example how to create a power output just based on time domain signal and desired fft and power settings, e.g.
  55. % provided power was not sense and/or streame and/or you want to define
  56. % power band limits given a different fftSize than default used during recording session
  57. % Reset powerSettings to avoid table
  58. powerSettings = [];
  59. newfftSettings = fftSettings;
  60. % take default sampling rate - a must
  61. currentTDsampleRate = fftSettings.TDsampleRates;
  62. % Choose new fft parameters and frequency band between these options
  63. % fft interval: 50 to 50000 ms
  64. % fft size: 64, 256, 1024
  65. % windowLoad ('100% Hann', '50% Hann', '25% Hann')
  66. % freqBand:[0 to samplingRate/2]
  67. newfftSettings.fftConfig.interval = 50;
  68. newfftSettings.fftConfig.size = 256;
  69. newfftSettings.fftConfig.windowLoad = '100% Hann';
  70. freqBand = [20, 23];
  71. % Determine fftBins
  72. numBins = newfftSettings.fftConfig.size/2;
  73. binWidth = (currentTDsampleRate/2)/numBins;
  74. lowerBins = (0:numBins-1)*binWidth;
  75. fftBins = lowerBins + binWidth/2; % Bin center
  76. % Create a powerSettings structure based on chosen parameters
  77. powerSettings.fftConfig.interval = newfftSettings.fftConfig.interval;
  78. powerSettings.fftConfig.size = newfftSettings.fftConfig.size;
  79. powerSettings.powerBands.fftBins = fftBins;
  80. % Determine indeces of frquency bins corresponsing and add to power settings structure
  81. idxBinsA = find(powerSettings.powerBands.fftBins>freqBand(1));
  82. idxBinsB = find(powerSettings.powerBands.fftBins<freqBand(2));
  83. powerSettings.powerBands.indices_BandStart_BandStop(1,1) = idxBinsA(1);
  84. powerSettings.powerBands.indices_BandStart_BandStop(1,2) = idxBinsB(end);
  85. % Calculate equivalent device power given the new fft and power settings
  86. [newPower, newSettings] = calculateNewPower(combinedDataTable, newfftSettings, powerSettings, metaData, 1, freqBand);
  87. idxPowerNewCalc = ~isnan(newPower.calculatedPower);
  88. % Plot the results
  89. % figure, hold on, legend show, set(gca,'FontSize',15)
  90. plot(newPower.localTime(idxPowerNewCalc),...
  91. newPower.calculatedPower(idxPowerNewCalc),...
  92. 'Marker','s','MarkerSize',1,'LineWidth',2,...
  93. 'DisplayName',['off-line, band(Hz) = ',newSettings.powerSettings.powerBands.powerBinsInHz])
  94. % END: remember this are only examples of use
  95. % If you find errors while using this code or want to help further develop
  96. % it, feel free to contact [email hidden] or [email hidden]

DEMO_CalculatePowerRCS.m at commit e04baae, no license · at the source

Overview

Authors: Poojan D. Shukla1, Jessica E. Bath2, Kenneth H. Louie1, Hamid Fekri Azgomi1, Rithvik Ramesh1, Eleni Patelaki1, Jacob H. Marks1, Jannine P. Balakid1, Doris D. Wang1
  1. Department of Neurological Surgery, University of California,San Francisco, CA USA
  2. Department of Physical Therapy and Rehabilitation Science, University of California,San Francisco, CA USA
Institutions: University of California, San Francisco (United States)
Journal: NPJ Parkinson's disease, volume 12, issue 1, article 219
Dates: received 12 December 2025; accepted 26 May 2026; published online 6 June 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s41531-026-01421-9 · PMID 42251056 · PMCID PMC13575165 · OpenAlex W4416754096
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: Parkinson's (population), systems (subfield)
Methods: Spectral & time-frequency, Preprocessing, Statistics, Smoothing, state filtering, decompositions, Machine learning, Connectivity, Physiology & signal measures
Keywords: Neurology, Neuroscience
Topic: Neurological disorders and treatments (Neurology, Medicine), according to OpenAlex
Funding: NIH (R01NS130183); Michael J. Fox Foundation for Parkinson’s Research (18649); Burroughs Wellcome Fund; UCSF Catalyst Grant; Tianqiao and Chrissy Chen Institute
Citations: not cited yet (Europe PMC); 70 references in the paper

Abstract

Turning while walking is one of the most common yet complex human movements, and it is frequently impaired in Parkinson’s disease (PD), leading to falls and loss of independence. The neural mechanisms underlying this difficulty remain unclear. Using chronically implanted devices that simultaneously record and stimulate the brain, we repeatedly measured activity in the motor cortex and basal ganglia of five individuals with PD during natural walking and turning. Successful turns were marked by reduced beta-band activity and flexible communication between cortical and pallidal regions, whereas impaired turns showed excessive beta synchrony that rigidly constrained movement. Medication and deep brain stimulation improved turning through distinct circuit mechanisms, dopamine suppressing abnormal pallidal beta activity and its communication with the cortex, and stimulation restoring cortical flexibility. These findings reveal how dynamic cortical–basal ganglia interactions may enable complex movement and establish circuit targets for adaptive brain stimulation to reduce falls in PD.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above.

openmind-consortium/Analysis-rcs-data

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: e04baae07f56f73d265daa1d0f1b887607930dd2, 22 January 2026
Languages: MATLAB (129), C (21), C/C++ (5), C++ (1)
Size: 265 files, 156 scripts
Software Heritage: not archived
Found in: the text, “Experimental setup, data collection, and data al”
Holds: README, tests, documentation
Not found: license file, CITATION.cff, environment file, continuous integration
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
157 files

Code availability

The MATLAB and Python scripts used in this study can be made available upon reasonable request to the corresponding author.

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;
  • 156 scripts, each with its path and the digest of its content;
  • no match between paragraphs and code yet;
  • 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 data, MATLAB, and Python scripts used in this study can be made available upon reasonable request to the corresponding author. All patient confidentiality and disclosure standards must be adhered to.

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, 9 authors, 2 keywords, 5 funders, 70 references.

Cite

This paper

Shukla, P. D., Bath, J. E., Louie, K. H., Fekri Azgomi, H., Ramesh, R., Patelaki, E., Marks, J. H., Balakid, J. P., & Wang, D. D. (2026). Cortico-pallidal beta dynamics underlie impaired turning in Parkinson's disease. NPJ Parkinson's disease, 12(1), 219. https://doi.org/10.1038/s41531-026-01421-9

BibTeX

@article{shukla2026cortico,
author = {Shukla, Poojan D. and Bath, Jessica E. and Louie, Kenneth H. and Fekri Azgomi, Hamid and Ramesh, Rithvik and Patelaki, Eleni and Marks, Jacob H. and Balakid, Jannine P. and Wang, Doris D.},
title = {{Cortico-pallidal beta dynamics underlie impaired turning in Parkinson's disease}},
journal = {NPJ Parkinson's disease},
year = {2026},
month = jun,
volume = {12},
number = {1},
pages = {219},
publisher = {Nature Publishing Group},
issn = {2373-8057},
doi = {10.1038/s41531-026-01421-9},
url = {https://doi.org/10.1038/s41531-026-01421-9},
pmid = {42251056},
pmcid = {PMC13575165}
}

RIS

TY - JOUR
AU - Shukla, Poojan D.
AU - Bath, Jessica E.
AU - Louie, Kenneth H.
AU - Fekri Azgomi, Hamid
AU - Ramesh, Rithvik
AU - Patelaki, Eleni
AU - Marks, Jacob H.
AU - Balakid, Jannine P.
AU - Wang, Doris D.
TI - Cortico-pallidal beta dynamics underlie impaired turning in Parkinson's disease
T2 - NPJ Parkinson's disease
J2 - NPJ Parkinsons Dis
PY - 2026
DA - 2026/06/06
VL - 12
IS - 1
SP - 219
SN - 2373-8057
PB - Nature Publishing Group
DO - 10.1038/s41531-026-01421-9
UR - https://doi.org/10.1038/s41531-026-01421-9
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41531-026-01421-9",
"type": "article-journal",
"title": "Cortico-pallidal beta dynamics underlie impaired turning in Parkinson's disease",
"container-title": "NPJ Parkinson's disease",
"author": [
{
"family": "Shukla",
"given": "Poojan D."
},
{
"family": "Bath",
"given": "Jessica E."
},
{
"family": "Louie",
"given": "Kenneth H."
},
{
"family": "Fekri Azgomi",
"given": "Hamid"
},
{
"family": "Ramesh",
"given": "Rithvik"
},
{
"family": "Patelaki",
"given": "Eleni"
},
{
"family": "Marks",
"given": "Jacob H."
},
{
"family": "Balakid",
"given": "Jannine P."
},
{
"family": "Wang",
"given": "Doris D."
}
],
"container-title-short": "NPJ Parkinsons Dis",
"volume": "12",
"issue": "1",
"page": "219",
"DOI": "10.1038/s41531-026-01421-9",
"PMID": "42251056",
"PMCID": "PMC13575165",
"ISSN": "2373-8057",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41531-026-01421-9",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
6
]
]
}
}

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/s41591-026-04434-2 [code]
Adaptive deep brain stimulation for dynamic gait control in Parkinson's disease: a randomized feasibility trial.
Journal: Nature medicine
In common: Image Processing Toolbox, Signal Processing Toolbox, Statistics and Machine Learning Toolbox, Parkinson's, 6 references
[2] doi:10.1038/s41591-026-04432-4 [code]
Activity-dependent adaptive deep brain stimulation improves gait in Parkinson's disease.
Journal: Nature medicine
In common: Parkinson's, 8 references
[3] doi:10.1016/j.xcrm.2026.103001
Cortical-to-pallidal beta cascade underlies network pathophysiology in Parkinson's disease.
Journal: Cell reports. Medicine
In common: Parkinson's, 7 references
[4] doi:10.1093/brain/awaf466 [code]
Cortico-basal oscillations index naturalistic movements during deep brain stimulation.
Journal: Brain : a journal of neurology
In common: Parkinson's, systems, 5 references
[5] doi:10.1016/j.isci.2026.115375 [code]
Bursts of regional cortical inhibition during smartphone use.
Journal: iScience
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 4 references
[6] doi:10.1002/ana.78206 [code]
Multimodal Image Guidance in Subthalamic Deep Brain Stimulation for Parkinson's Disease.
Journal: Annals of neurology
In common: Image Processing Toolbox, Signal Processing Toolbox, Statistics and Machine Learning Toolbox, Parkinson's, 2 references
[7] doi:10.1371/journal.pbio.3003635 [code]
A cortico-subthalamic circuit rapidly engages and releases inhibition of specific movements depending on the environmental context.
Journal: PLoS biology
In common: Image Processing Toolbox, Signal Processing Toolbox, Statistics and Machine Learning Toolbox, systems, 2 references
[8] doi:10.1093/braincomms/fcag245 [code]
Reduced pre-movement subthalamic beta desynchronization marks motor deficit in Parkinson's disease.
Journal: Brain communications
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, Parkinson's, systems, 2 references
[9] doi:10.1016/j.ebiom.2026.106293 [code]
Dynamic neural states underpin motor symptom severity in Parkinson's disease: a longitudinal analysis of chronic cortico-subthalamic nucleus recordings.
Journal: EBioMedicine
In common: Parkinson's, 4 references
[10] doi:10.1038/s41531-026-01439-z [code]
DBSsync: combining intracranial and multimodal data to investigate new biomarkers in Parkinson's disease.
Journal: NPJ Parkinson's disease
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, Parkinson's, 2 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.