OSCR

Single pulse electrical stimulation in white matter modulates iEEG visual responses in human early visual cortex.

Code ↔ Paper

9 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 9 matches
  1. [1] § 2. Materials and methods › 2.6. iEEG data preprocessing ↔ analysisBBFIR1.m, lines 126–252 · score 0.92 · Hilbert transform, linear interpolation, fold increase, 130 Hz, 4 ms, 110 Hz
  2. [2] § 2. Materials and methods › 2.6. iEEG data preprocessing ↔ fig1_FP_broadband_examples.m, lines 30–105 · score 0.82 · linear interpolation, adjacent, 130 Hz, 110 Hz, 170 Hz, Hilbert
  3. [3] § 2. Materials and methods › 2.5. Selection of measurement and stimulation electrodes ↔ tractography/ccepVisual_RenderTracks01.m, lines 39–95 · score 0.71 · forceps major, tractography, ILF, SLF, VOF, fiber
  4. [4] § 2. Materials and methods › 2.3. Task and stimuli ↔ functions/picturePrep/generatepermutedphase.m, lines 1–102 · score 0.70 · phase matrix, uniform distribution, Fourier, ratios, mixed, pi
  5. [5] § 2. Materials and methods › 2.3. Task and stimuli ↔ functions/picturePrep/generaterandomphaseFromInput.m, lines 1–89 · score 0.69 · phase matrix, original phase, Fourier, FFT, mixed, pi
  6. [6] § 3. Results ↔ functions/picturePrep/generatepermutedphase.m, lines 1–102 · score 0.62 · single pulse electrical, iEEG, early visual cortex, human, signal, modulates
  7. [7] § 3. Results ↔ functions/picturePrep/generaterandomphaseFromInput.m, lines 1–89 · score 0.60 · single pulse electrical, iEEG, early visual cortex, human, modulates
  8. [8] § 2. Materials and methods › 2.7. Finite impulse response analysis of stimulation and visual responses ↔ globalAnalysis2.m, lines 97–227 · score 0.58 · full model best, training trials, tailed, baseline, error, predictor
  9. [9] § 2. Materials and methods › 2.7. Finite impulse response analysis of stimulation and visual responses ↔ analysisBBFIR2.m, lines 247–368 · score 0.58 · full model best, training trials, tailed, baseline, error, predictor

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 · 116 lines · 5.2 KB · GPL-3.0 · 2 matches

  1. function f = generatepermutedphase(ph)
  2. % function f = generatepermutedphase(ph)
  3. %
  4. % Variant on knkutils/generaterandomphase -- phases are permuted from input rather than randomly generated from uniform distribution
  5. % ph must be 2D so one image is processed at a time
  6. %
  7. % DC component is kept the same so that the image mean doesn't change
  8. % All other real values in the signal (Nyquists) are also kept the same... this is so that if the output of this function, f, is mixed with the input
  9. % ph at some ratio (e.g., 50/50), the real values don't accidentally become imaginary (i.e. halfway between 0 and pi phase)
  10. %
  11. % return a <res> x <res> matrix with elements that are unit-length complex
  12. % numbers. this matrix is ready for multiplication with the output of fft2.
  13. % the result is to randomly perturb the phase of each Fourier component of each image.
  14. % note that some of the Fourier components (e.g. the DC component) are special in that
  15. % the complex numbers corresponding to these components are restricted to be either 1 or -1,
  16. % since these components have no imaginary part.
  17. %
  18. % If this code is used in a publication, please cite the manuscript:
  19. % "H Huang, KN Kay, NM Gregg, G Ojeda Valencia, M In, C Kapeller, Y Shu, GA Worrell, KJ Miller, and D Hermes.
  20. % Single pulse electrical stimulation in white matter modulates iEEG visual responses in human early visual cortex. (Under Review)"
  21. %
  22. % A preprint is available currently at doi: https://doi.org/10.1101/2025.05.05.652264.
  23. %
  24. % The dataset corresponding to this code and manuscript is in BIDS format (version 1.10.0) on OpenNeuro (ds006485),
  25. % and it will be made publicly available upon manuscript acceptance.
  26. %
  27. % Copyright (C) 2025 Harvey Huang
  28. %
  29. % This program is free software: you can redistribute it and/or modify
  30. % it under the terms of the GNU General Public License as published by
  31. % the Free Software Foundation, either version 3 of the License, or
  32. % (at your option) any later version.
  33. %
  34. % This program is distributed in the hope that it will be useful,
  35. % but WITHOUT ANY WARRANTY; without even the implied warranty of
  36. % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  37. % GNU General Public License for more details.
  38. %
  39. % You should have received a copy of the GNU General Public License
  40. % along with this program. If not, see <https://www.gnu.org/licenses/>.
  41. %
  42. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  43. %
  44. %
  45. % example:
  46. % a = randn(5,5);
  47. % b = fft2(a) .* generaterandomphase(5);
  48. % c = ifft2(b);
  49. % allzero(imag(c))
  50. res = size(ph, 1); assert(size(ph, 1) == size(ph, 2), 'Input phase matrix is not square');
  51. dc = ph(1); % dc component -- keep the same so image mean doesn't invert
  52. % Get one half of the mirror symmetrical phase distribution and real (nyquist) center phases along both legs and in matrix center
  53. if ~mod(res, 2)
  54. subM = ph(2:end, 2:end); % phase matrix excluding legs
  55. centers = [ph(res/2+1, 1), ph(1, res/2+1), subM((numel(subM)+1)/2)]; % in order: centers of vertical, horizontal legs, then center of submatrix
  56. distr = [ph(2:res/2, 1); ph(1, 2:res/2)'; subM(1:(numel(subM)-1)/2)'];
  57. else
  58. error('Not equipped to handle odd resolution inputs');
  59. % nn = (res*res-1)/2; % e.g., if 1079 x 1079, index up to 540col, 539row (just before center)
  60. % centers = ph(nn + 1); % preserve the same center (nyquist) value (0 or pi)
  61. % distr = ph(2:nn);
  62. end
  63. % randomly permute phase distribution
  64. distr = distr(randperm(length(distr)));
  65. % do it
  66. if mod(res,2)==0
  67. f = zeros(size(ph));
  68. f(1) = dc; % replace dc
  69. % fill in vertical leg
  70. f(2:res/2, 1) = distr(1:(res/2-1));
  71. f(res/2+1, 1) = centers(1);
  72. f((res/2+2):end, 1) = -flip(f(2:res/2, 1)); % mirror-symmetric from first half
  73. distr(1:(res/2-1)) = []; % remove used values from distribution
  74. % fill in horizontal leg as with vertical leg
  75. f(1, 2:res/2) = distr(1:(res/2-1));
  76. f(1, res/2+1) = centers(2);
  77. f(1, (res/2+2):end) = -flip(f(1, 2:res/2));
  78. distr(1:(res/2-1)) = [];
  79. % fill in the rest of the matrix
  80. subf = f(2:end, 2:end);
  81. subf(1:(numel(subf)-1)/2) = distr; % if this isn't the right size something is wrong with assigning distribution
  82. subf((numel(subf)+1)/2) = centers(3);
  83. subf((numel(subf)+1)/2 + 1:end) = -flip(distr);
  84. f(2:end, 2:end) = subf; % insert back into full matrix
  85. else
  86. f = helper(res,num); % need to figure out under what setting this actually works correctly. Doesn't work if fft2 image is odd sized
  87. end
  88. % convert to imaginary numbers
  89. f = exp(1i*f);
  90. %%%%%
  91. function f = helper(res,num)
  92. % return a matrix of dimensions <res> x <res> x <num> with appropriate
  93. % random phase values in [0,2*pi]. note that the center (DC component)
  94. % has phase values that are either 0 or pi. the returned matrix is
  95. % as if fftshift has been called.
  96. f = zeros(res*res,num); % initialize in convenient form
  97. nn = (res*res-1)/2; % how many in first half?
  98. f(1:nn,:) = rand(nn,num)*(2*pi); % fill in the first half with random phase in [0,2*pi]
  99. f = reshape(f,[res res num]); % reshape
  100. f = f + -flipdim(flipdim(f,1),2); % symmetrize (the mirror gets the negative phase)
  101. f((res+1)/2,(res+1)/2,:) = (rand(1,1,num)>.5)*pi; % fill in the center (either 0 or pi)

generatepermutedphase.m at commit 3eb20d8, under GPL-3.0 · at the source

Overview

  1. Medical Scientist Training Program, Mayo Clinic, Rochester, Minnesota, United States of America
  2. Center for Magnetic Resonance Research, Department of Radiology, University of Minnesota, Minneapolis, United States of America
  3. Department of Neurology, Mayo Clinic, Rochester, Minnesota, United States of America
  4. Department of Physiology and Biomedical Engineering, Mayo Clinic, Rochester, Minnesota, United States of America
  5. Department of Radiology, Mayo Clinic, Rochester, Minnesota, United States of America
  6. Invasive Technologies, g.tec medical engineering GmbH, Schiedlberg, Austria
  7. Department of Neurologic Surgery, Mayo Clinic, Rochester, Minnesota, United States of America
Institutions: Mayo Clinic (United States); University of Minnesota (United States); Guger Technologies (Austria) (Austria)
Journal: PLoS computational biology, volume 22, issue 7, article e1014563
Dates: received 21 July 2025; accepted 9 July 2026; published online 24 July 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1371/journal.pcbi.1014563 · PMID 42497215 · PMCID PMC13426923 · OpenAlex W4410252750
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: EEG (modality), intracranial EEG (iEEG / ECoG / SEEG) (modality), human (organism), systems (subfield)
Methods: Spectral & time-frequency, Connectivity, Statistics, Preprocessing, fMRI & imaging
MeSH: Electric Stimulation*, Evoked Potentials, Visual*, Visual Cortex*, White Matter*, Adult, Computational Biology, Electroencephalography, Female, Humans, Male, Photic Stimulation (* major topic)
Topic: Neuroscience and Neural Engineering (Cellular and Molecular Neuroscience, Neuroscience), according to OpenAlex
Funding: NEI NIH HHS (R01 EY035533); NIMH NIH HHS (R01 MH122258); NIGMS NIH HHS (T32 GM145408); NINDS NIH HHS (U01 NS128612)
Citations: not cited yet (Europe PMC); 52 references in the paper

Abstract

Introduction: Electrical stimulation is increasingly used to modulate brain networks for clinical purposes. The basic unit of neurostimulation, a single electrical pulse, can travel through white matter to influence connected neuronal populations. However, the mechanisms by which it influences connected populations is not well understood: stimulation may excite, inhibit, or add noise to neuronal population activity.

Materials and methods: In this study, we investigated how single pulses modulate the neuronal processing of images in a well-controlled visual paradigm. In two human subjects implanted with iEEG electrodes for clinical purposes, single pulses were delivered to electrodes in white matter tracts connected to measurement electrodes in visual cortex. Images appeared on-screen at 0, 100, or 200 ms after each pulse. Using finite impulse response modeling, we decomposed the broadband and evoked potential responses into separate components induced by electrical stimulation and by visual processing.

Results: Single pulses induced transient broadband increases followed by suppression, but they did not modulate the visual broadband responses (i.e., stimulation response was additive to visual response). In contrast, single pulses elicited prominent brain stimulation evoked potentials and they modulated the visual evoked potentials. Specifically, visual evoked potentials were larger when stimulation occurred closer to visual onset. This indicates that a single electrical pulse can increase the strength or synchrony of visual inputs.

Conclusion: Overall, these findings suggest that the effects of electrical stimulation in the visual system are two-fold: stimulation induces additive effects on broadband power, possibly by adding noise, and it interacts with synchronous visual inputs to amplify them.

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

hharveygit/SPES_Visual

License: GPL-3.0
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 3eb20d84f819490ac2e94fd9b17232ffe6c05432, 9 May 2026
Languages: MATLAB (234), C (6)
Size: 533 files, 240 scripts
Software Heritage: not archived
Found in: “Data Availability”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
242 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;
  • 240 scripts, each with its path and the digest of its content;
  • 9 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

Datasets cited

Data Availability

The complete data that support these findings are freely accessible on OpenNeuro: https://openneuro.org/datasets/ds007703/versions/1.0.0. All analyses were performed in MATLAB R2023a. The comprehensive code used to generate all results and figures is publicly available on GitHub: https://github.com/hharveygit/SPES_Visual.

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 Nicholas M Gregg (0000-0002-6151-043X); Gabriela Ojeda Valencia (0000-0002-5002-3310); Myung-Ho In (0000-0001-8001-6237); Yunhong Shu (0000-0002-7521-9088); Gregory A Worrell (0000-0003-2916-0553); Kai J Miller (0000-0002-6687-6422); removed Nicholas M Gregg; Gabriela Ojeda Valencia; Myung-Ho In; Yunhong Shu; Gregory A Worrell; Kai J Miller

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 10 authors, 11 MeSH terms, 4 funders, 52 references.

Cite

This paper

Huang, H., Kay, K. N., Gregg, N. M., Ojeda Valencia, G., In, M.-H., Kapeller, C., Shu, Y., Worrell, G. A., Miller, K. J., & Hermes, D. (2026). Single pulse electrical stimulation in white matter modulates iEEG visual responses in human early visual cortex. PLoS computational biology, 22(7), e1014563. https://doi.org/10.1371/journal.pcbi.1014563

BibTeX

@article{huang2026single,
author = {Huang, Harvey and Kay, Kendrick N and Gregg, Nicholas M and Ojeda Valencia, Gabriela and In, Myung-Ho and Kapeller, Christoph and Shu, Yunhong and Worrell, Gregory A and Miller, Kai J and Hermes, Dora},
title = {{Single pulse electrical stimulation in white matter modulates iEEG visual responses in human early visual cortex}},
journal = {PLoS computational biology},
year = {2026},
month = jul,
volume = {22},
number = {7},
pages = {e1014563},
publisher = {PLOS},
issn = {1553-734X},
doi = {10.1371/journal.pcbi.1014563},
url = {https://doi.org/10.1371/journal.pcbi.1014563},
pmid = {42497215},
pmcid = {PMC13426923}
}

RIS

TY - JOUR
AU - Huang, Harvey
AU - Kay, Kendrick N
AU - Gregg, Nicholas M
AU - Ojeda Valencia, Gabriela
AU - In, Myung-Ho
AU - Kapeller, Christoph
AU - Shu, Yunhong
AU - Worrell, Gregory A
AU - Miller, Kai J
AU - Hermes, Dora
TI - Single pulse electrical stimulation in white matter modulates iEEG visual responses in human early visual cortex
T2 - PLoS computational biology
J2 - PLoS Comput Biol
PY - 2026
DA - 2026/07/24
VL - 22
IS - 7
SP - e1014563
SN - 1553-734X
PB - PLOS
DO - 10.1371/journal.pcbi.1014563
UR - https://doi.org/10.1371/journal.pcbi.1014563
LA - en
ER -

CSL-JSON

{
"id": "10.1371/journal.pcbi.1014563",
"type": "article-journal",
"title": "Single pulse electrical stimulation in white matter modulates iEEG visual responses in human early visual cortex",
"container-title": "PLoS computational biology",
"author": [
{
"family": "Huang",
"given": "Harvey"
},
{
"family": "Kay",
"given": "Kendrick N"
},
{
"family": "Gregg",
"given": "Nicholas M"
},
{
"family": "Ojeda Valencia",
"given": "Gabriela"
},
{
"family": "In",
"given": "Myung-Ho"
},
{
"family": "Kapeller",
"given": "Christoph"
},
{
"family": "Shu",
"given": "Yunhong"
},
{
"family": "Worrell",
"given": "Gregory A"
},
{
"family": "Miller",
"given": "Kai J"
},
{
"family": "Hermes",
"given": "Dora"
}
],
"container-title-short": "PLoS Comput Biol",
"volume": "22",
"issue": "7",
"page": "e1014563",
"DOI": "10.1371/journal.pcbi.1014563",
"PMID": "42497215",
"PMCID": "PMC13426923",
"ISSN": "1553-734X",
"publisher": "PLOS",
"URL": "https://doi.org/10.1371/journal.pcbi.1014563",
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
24
]
]
}
}

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/s41467-026-71151-2 [code]
Common and distinct neural correlates of social interaction processing and theory of mind in narratives.
Journal: Nature communications
In common: MRtrix3, fdr_bh (Benjamini-Hochberg FDR), GIfTI library for MATLAB, 8 other tools, 1 reference
[2] doi:10.1038/s41467-026-72444-2 [code]
Broadband synergy versus oscillatory redundancy in the visual cortex.
Journal: Nature communications
In common: Statistics and Machine Learning Toolbox, intracranial EEG (iEEG / ECoG / SEEG), systems, 3 references, 2 authors
[3] doi:10.1016/j.celrep.2026.117404 [code]
Action and rest tremor map to distinct networks within the primary motor cortex.
Journal: Cell reports
In common: Curve Fitting Toolbox, GIfTI library for MATLAB, Optimization Toolbox, 7 other tools, systems
[4] doi:10.1002/hbm.70602 [code]
Neuroimaging Correlates of Post-Stroke Pain After Ischemic Stroke: Secondary Analysis of the INSPiRE-TMS Trial.
Journal: Human brain mapping
In common: Curve Fitting Toolbox, GIfTI library for MATLAB, Optimization Toolbox, 7 other tools
[5] doi:10.1038/s41586-026-10631-3 [code]
A prognostic human brain network for diffuse midline glioma.
Journal: Nature
In common: Curve Fitting Toolbox, GIfTI library for MATLAB, Optimization Toolbox, 7 other tools
[6] doi:10.1111/ene.70678 [code]
Who Falls After a Stroke? Evidence From a Prospective Stroke Cohort.
Journal: European journal of neurology
In common: Curve Fitting Toolbox, GIfTI library for MATLAB, Optimization Toolbox, 7 other tools
[7] doi:10.1002/ana.78206 [code]
Multimodal Image Guidance in Subthalamic Deep Brain Stimulation for Parkinson's Disease.
Journal: Annals of neurology
In common: Curve Fitting Toolbox, GIfTI library for MATLAB, Optimization Toolbox, 7 other tools
[8] doi:10.1002/hbm.70577 [code]
Disgust Propensity, Not Disgust Sensitivity, Shapes the Reactivity of a Subjective Disgust Circuit in Humans.
Journal: Human brain mapping
In common: fdr_bh (Benjamini-Hochberg FDR), GIfTI library for MATLAB, Optimization Toolbox, 6 other tools, systems
[9] doi:10.1038/s41467-026-73668-y [code]
Convergent and divergent brain-cognition development in early adolescence.
Journal: Nature communications
In common: MRtrix3, fdr_bh (Benjamini-Hochberg FDR), GIfTI library for MATLAB, 6 other tools
[10] doi:10.1038/s41467-026-74565-0 [code]
The functional neurobiology of dispositions towards negative emotions.
Journal: Nature communications
In common: fdr_bh (Benjamini-Hochberg FDR), GIfTI library for MATLAB, Optimization Toolbox, 6 other tools

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.