OSCR

Thalamocortical seizure onset patterns in drug-resistant focal epilepsy.

Code ↔ Paper

1 match 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 1 match
  1. [1] § Results › Patient and seizure characteristics ↔ get_amps5.m, lines 121–142 · score 0.73 · Grand av, sEEG1, voltage amplitude, S2L, S2R, RMS

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 · 165 lines · 4 KB · no license · 1 match

  1. %Script for plotting RMS amplitudes of cortical SOZ vs thalamus
  2. % Hugh Simpson
  3. % V1: Dec 2021
  4. % V2: Sep-Oct 2023
  5. % V3: Aug 2025
  6. figdir = 'my_dir';
  7. %load RCS_main_vars_2025-02-15.mat %Reproduces MS fig
  8. %load IRB_main_vars_2025-02-14_new.mat
  9. load RCS_main_vars_2025-08-04_new.mat
  10. load IRB_main_vars_2025-08-04_new.mat
  11. %Inputs: amp_IRB cell
  12. n_IRB = 10;
  13. n_RCS = 4;
  14. amp_IRB_all = []; %All sz in one matrix
  15. amp_RCS_all = []; %All sz in one matrix
  16. hFigSpec = figure;
  17. %set(hFigSpec, 'Position', [200 100 1200 800])
  18. mark_sz = 8;
  19. hold on
  20. %% IRB sEEG first:
  21. mc = zeros(1,n_IRB); %mean_cortex
  22. sc = zeros(1,n_IRB); %std_cortex
  23. mt = zeros(1,n_IRB); %mean_thal
  24. st = zeros(1,n_IRB); %std_cx
  25. %amp_IRB_cum = [];
  26. for i=1:n_IRB
  27. c0 = log10(amp_IRB{i}(:,1));
  28. mc0 = mean(c0,'omitnan');
  29. sc0 = std(c0,'omitnan')./sqrt(size(c0,1));
  30. mc(i) = mc0; sc(i) = sc0;
  31. t0 = log10(amp_IRB{i}(:,2));
  32. mt0 = mean(t0,'omitnan');
  33. st0 = std(t0,'omitnan')./sqrt(size(t0,1));
  34. mt(i) = mt0; st(i) = st0;
  35. amp_IRB_all = [amp_IRB_all ; amp_IRB{i}];
  36. end
  37. %All IRB/sEEG subj
  38. c0 = log10(amp_IRB_all(:,1));
  39. mc0 = mean(c0,'omitnan');
  40. sc0 = std(c0,'omitnan')./sqrt(size(c0,1));
  41. t0 = log10(amp_IRB_all(:,2));
  42. mt0 = mean(t0,'omitnan');
  43. st0 = std(t0,'omitnan')./sqrt(size(t0,1));
  44. x = [1 2]; y = [mc0 mt0]; err = [sc0 st0];
  45. %Plot
  46. errorbar(1:n_IRB+1,[mc mc0],[sc sc0],'r*','MarkerSize',mark_sz)
  47. errorbar(1:n_IRB+1,[mt mt0],[st st0],'b*','MarkerSize',mark_sz)
  48. %% RC+S now:
  49. mc = zeros(1,n_RCS); %mean_cortex
  50. sc = zeros(1,n_RCS); %std_cortex
  51. mt = zeros(1,n_RCS); %mean_thal
  52. st = zeros(1,n_RCS); %std_cx
  53. %amp_IRB_cum = [];
  54. for i=1:n_RCS
  55. c0 = log10(amp_RCS{i}(:,1));
  56. mc0 = mean(c0,'omitnan');
  57. sc0 = std(c0,'omitnan')./sqrt(size(c0,1));
  58. mc(i) = mc0; sc(i) = sc0;
  59. t0 = log10(amp_RCS{i}(:,2));
  60. mt0 = mean(t0,'omitnan');
  61. st0 = std(t0,'omitnan')./sqrt(size(t0,1));
  62. mt(i) = mt0; st(i) = st0;
  63. amp_RCS_all = [amp_RCS_all ; amp_RCS{i}];
  64. end
  65. %All RC+S subj
  66. c0 = log10(amp_RCS_all(:,1));
  67. mc0 = mean(c0,'omitnan');
  68. sc0 = std(c0,'omitnan')./sqrt(size(c0,1));
  69. t0 = log10(amp_RCS_all(:,2));
  70. mt0 = mean(t0,'omitnan');
  71. st0 = std(t0,'omitnan')./sqrt(size(t0,1));
  72. x = [1 2]; y = [mc0 mt0]; err = [sc0 st0];
  73. %Plot
  74. errorbar(n_IRB+2:n_IRB+n_RCS+2,[mc mc0],[sc sc0],'r*','MarkerSize',mark_sz)
  75. errorbar(n_IRB+2:n_IRB+n_RCS+2,[mt mt0],[st st0],'b*','MarkerSize',mark_sz)
  76. %% Grand average
  77. amp_all = [amp_IRB_all ; amp_RCS_all ];
  78. %All subj
  79. c0 = log10(amp_all(:,1));
  80. mc0 = mean(c0,'omitnan');
  81. sc0 = std(c0,'omitnan')./sqrt(size(c0,1));
  82. t0 = log10(amp_all(:,2));
  83. mt0 = mean(t0,'omitnan');
  84. st0 = std(t0,'omitnan')./sqrt(size(t0,1));
  85. %x = [1 2]; y = [mc0 mt0]; err = [sc0 st0];
  86. %Plot
  87. errorbar(n_IRB+n_RCS+3,mc0,sc0,'r*','MarkerSize',mark_sz)
  88. errorbar(n_IRB+n_RCS+3,mt0,st0,'b*','MarkerSize',mark_sz)
  89. %% Adjust axes and labels
  90. xlim([0.5 17.5]),
  91. xticks(0:19),xticklabels({' ','sEEG1','sEEG2','sEEG3','sEEG4','sEEG5','sEEG6','sEEG7','sEEG8',...
  92. 'sEEG9','sEEG10','sEEG - av','RC+S1','RC+S2L','RC+S2R','RC+S3','RC+S - av','Grand av',' '});
  93. xline(10.5,'--k')
  94. xline(11.5,'-k')
  95. xline(15.5,'--k')
  96. xline([16.5 17.5],'-k')
  97. hold off
  98. set(gca,'FontSize',16)
  99. %xlabel('Subject ID','FontSize',12)
  100. ylabel('log10 RMS amplitude (uV)','FontSize',17);
  101. legend('Cortical SOZ','Thalamus','Location','northeast')
  102. %title('Ictal RMS voltage amplitudes','FontSize',14)
  103. ylim([1 3.5])
  104. saveas(gcf,'filename')
  105. %return
  106. %%Stats time
  107. amp_cx = amp_all(:,1);
  108. amp_th = amp_all(:,2);
  109. %remove NaNs frmo thalamus:
  110. amp_th = amp_th(~isnan(amp_th));
  111. % Median
  112. median1 = median(amp_cx), mean1 = mean(amp_cx)
  113. median2 = median(amp_th), mean2 = mean(amp_th)
  114. % IQR
  115. iqr1 = iqr(log(amp_cx)), q1 = quantile(amp_cx, [0.25 0.75])
  116. iqr2 = iqr(amp_th), q2 = quantile(amp_th, [0.25 0.75])
  117. % Range
  118. range1 = [min(amp_cx), max(amp_cx)]
  119. range2 = [min(amp_th), max(amp_th)]
  120. %Mann-Whitney U:
  121. [p,h,stats] = ranksum(amp_cx,amp_th)

get_amps5.m at commit 0cf18ff, no license · at the source

Overview

Authors: Hugh D Simpson1,2,3, Vaclav Kremen1,4,5, Vladimir Sladky1,4,5, Benjamin H Brinkmann1, Nicholas M Gregg1, Brian N Lundstrom1, Kai J Miller6, Jamie J Van Gompel6, Gregory A Worrell1
  1. Department of Neurology, Mayo Clinic, Rochester, MN 55905, USA
  2. Department of Neurology, The Alfred Hospital, Melbourne, VIC 3004, Australia
  3. Department of Neuroscience, Monash University, Melbourne, VIC 3004, Australia
  4. Czech Institute of Informatics, Robotics, and Cybernetics, Czech Technical University in Prague, Prague 16000, Czech Republic
  5. Department of Natural Sciences, Faculty of Biomedical Engineering, Czech Technical University in Prague, Kladno 27201, Czech Republic
  6. Department of Neurosurgery, Mayo Clinic, Rochester, MN 55905, USA
Institutions: Mayo Clinic (United States); The Alfred Hospital (Australia); Monash University (Australia); Czech Technical University in Prague (Czechia)
Journal: Brain communications, volume 8, issue 4, article fcag227
Dates: received 7 October 2025; accepted 2 April 2026; published online 19 June 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1093/braincomms/fcag227 · PMID 42396599 · PMCID PMC13326942 · OpenAlex W4409569684
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: EEG (modality), epilepsy (population)
Methods: Statistics, Physiology & signal measures
Keywords: epilepsy, neurostimulation, thalamus, EEG, seizure
Topic: EEG and Brain-Computer Interfaces (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Citations: cited by 1 paper (Europe PMC); 30 references in the paper

Abstract

Drug-resistant epilepsy affects tens of millions of people worldwide and is associated with considerable morbidity and mortality. Thalamic deep brain stimulation and cortical responsive neurostimulation are proven treatments for focal epilepsy. Both have been used to target a range of thalamic nuclei; yet, the roles of these thalamic nuclei in focal seizure generation remain incompletely understood. Thirteen patients with drug-resistant focal epilepsy undergoing intracranial EEG were consented to undergo investigation of thalamocortical networks. Sampled regions included cortical, mesial temporal, and thalamic brain regions. Visual and spectral analyses were performed to identify seizure onset patterns and correlate thalamic and cortical seizure activity. Thalamic ictal discharges were observed in 89% of seizures. Of these, 56% demonstrated synchronous thalamocortical activity with distinct patterns. These onset patterns included hypersynchronous spiking, low-voltage fast activity, ictal baseline shifts, and broadband suppression. Multiple thalamic nuclei were involved in ictal organization and propagation, with the specific nuclei depending on the cortical seizure network. The thalamus plays a crucial role in focal onset seizure generation and propagation, with distinct seizure onset patterns and nuclei involved. These findings support exploring a broader range of thalamic nuclei in epilepsy neurostimulation and have implications for seizure detection settings in intracranial sensing devices.

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

hdsimpson/tsr-analysis-2026

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 0cf18ff7914c69a1365d96d5cd76096ba9f4902c, 9 March 2026
Languages: MATLAB (7)
Size: 7 files, 7 scripts
Software Heritage: not archived
Found in: “Data availability”
Not found: README, license file, 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
7 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;
  • 7 scripts, each with its path and the digest of its content;
  • 1 match 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 source data for the results presented in this manuscript are available from the authors on reasonable request. Code used to analyse and visualize the data is available at: https://github.com/hdsimpson/tsr-analysis-2026.

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, 5 keywords, 3 funders, 30 references.

Cite

This paper

Simpson, H. D., Kremen, V., Sladky, V., Brinkmann, B. H., Gregg, N. M., Lundstrom, B. N., Miller, K. J., Van Gompel, J. J., & Worrell, G. A. (2026). Thalamocortical seizure onset patterns in drug-resistant focal epilepsy. Brain communications, 8(4), fcag227. https://doi.org/10.1093/braincomms/fcag227

BibTeX

@article{simpson2026thalamocortical,
author = {Simpson, Hugh D and Kremen, Vaclav and Sladky, Vladimir and Brinkmann, Benjamin H and Gregg, Nicholas M and Lundstrom, Brian N and Miller, Kai J and Van Gompel, Jamie J and Worrell, Gregory A},
title = {{Thalamocortical seizure onset patterns in drug-resistant focal epilepsy}},
journal = {Brain communications},
year = {2026},
month = jun,
volume = {8},
number = {4},
pages = {fcag227},
publisher = {Oxford University Press},
issn = {2632-1297},
doi = {10.1093/braincomms/fcag227},
url = {https://doi.org/10.1093/braincomms/fcag227},
pmid = {42396599},
pmcid = {PMC13326942}
}

RIS

TY - JOUR
AU - Simpson, Hugh D
AU - Kremen, Vaclav
AU - Sladky, Vladimir
AU - Brinkmann, Benjamin H
AU - Gregg, Nicholas M
AU - Lundstrom, Brian N
AU - Miller, Kai J
AU - Van Gompel, Jamie J
AU - Worrell, Gregory A
TI - Thalamocortical seizure onset patterns in drug-resistant focal epilepsy
T2 - Brain communications
J2 - Brain Commun
PY - 2026
DA - 2026/06/19
VL - 8
IS - 4
SP - fcag227
SN - 2632-1297
PB - Oxford University Press
DO - 10.1093/braincomms/fcag227
UR - https://doi.org/10.1093/braincomms/fcag227
LA - en
ER -

CSL-JSON

{
"id": "10.1093/braincomms/fcag227",
"type": "article-journal",
"title": "Thalamocortical seizure onset patterns in drug-resistant focal epilepsy",
"container-title": "Brain communications",
"author": [
{
"family": "Simpson",
"given": "Hugh D"
},
{
"family": "Kremen",
"given": "Vaclav"
},
{
"family": "Sladky",
"given": "Vladimir"
},
{
"family": "Brinkmann",
"given": "Benjamin H"
},
{
"family": "Gregg",
"given": "Nicholas M"
},
{
"family": "Lundstrom",
"given": "Brian N"
},
{
"family": "Miller",
"given": "Kai J"
},
{
"family": "Van Gompel",
"given": "Jamie J"
},
{
"family": "Worrell",
"given": "Gregory A"
}
],
"container-title-short": "Brain Commun",
"volume": "8",
"issue": "4",
"page": "fcag227",
"DOI": "10.1093/braincomms/fcag227",
"PMID": "42396599",
"PMCID": "PMC13326942",
"ISSN": "2632-1297",
"publisher": "Oxford University Press",
"URL": "https://doi.org/10.1093/braincomms/fcag227",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
19
]
]
}
}

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.1371/journal.pcbi.1014563 [code]
Single pulse electrical stimulation in white matter modulates iEEG visual responses in human early visual cortex.
Journal: PLoS computational biology
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, EEG, 2 authors
[2] doi:10.1038/s41467-026-73053-9 [code]
Thalamo-cortical synchrony shapes seizure expression in human temporal lobe epilepsy.
Journal: Nature communications
In common: epilepsy, EEG, 7 references
[3] doi:10.1016/j.ebiom.2026.106287 [code]
Thalamic interictal epileptic and non-epileptic events during NREM sleep in patients with focal epilepsy: a Stereo-EEG study.
Journal: EBioMedicine
In common: Signal Processing Toolbox, epilepsy, EEG, 5 references
[4] 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, author Kai J Miller
[5] doi:10.1002/mco2.70931 [code]
Unveiling Functional Architecture of Human Thalamus: AStereoelectroencephalography Study.
Journal: MedComm
In common: epilepsy, 3 references
[6] 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: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, EEG, 1 reference
[7] doi:10.3389/fneur.2026.1793970 [code]
The cumulative impact of seizures: the science underlying how seizures beget seizures.
Journal: Frontiers in neurology
In common: epilepsy, 2 references
[8] doi:10.1038/s41593-026-02345-6 [code]
Human hippocampal ripples tune cortical responses based on predicted uncertainty.
Journal: Nature neuroscience
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 1 reference
[9] doi:10.1038/s41531-026-01421-9 [code]
Cortico-pallidal beta dynamics underlie impaired turning in Parkinson's disease.
Journal: NPJ Parkinson's disease
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 1 reference
[10] doi:10.1002/ana.78206 [code]
Multimodal Image Guidance in Subthalamic Deep Brain Stimulation for Parkinson's Disease.
Journal: Annals of neurology
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 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.

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.