Thalamocortical seizure onset patterns in drug-resistant focal epilepsy.
The 1 match
- [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
- %Script for plotting RMS amplitudes of cortical SOZ vs thalamus
- % Hugh Simpson
- % V1: Dec 2021
- % V2: Sep-Oct 2023
- % V3: Aug 2025
- figdir = 'my_dir';
- %load RCS_main_vars_2025-02-15.mat %Reproduces MS fig
- %load IRB_main_vars_2025-02-14_new.mat
- load RCS_main_vars_2025-08-04_new.mat
- load IRB_main_vars_2025-08-04_new.mat
- %Inputs: amp_IRB cell
- n_IRB = 10;
- n_RCS = 4;
- amp_IRB_all = []; %All sz in one matrix
- amp_RCS_all = []; %All sz in one matrix
- hFigSpec = figure;
- %set(hFigSpec, 'Position', [200 100 1200 800])
- mark_sz = 8;
- hold on
- %% IRB sEEG first:
- mc = zeros(1,n_IRB); %mean_cortex
- sc = zeros(1,n_IRB); %std_cortex
- mt = zeros(1,n_IRB); %mean_thal
- st = zeros(1,n_IRB); %std_cx
- %amp_IRB_cum = [];
- for i=1:n_IRB
- c0 = log10(amp_IRB{i}(:,1));
- mc0 = mean(c0,'omitnan');
- sc0 = std(c0,'omitnan')./sqrt(size(c0,1));
- mc(i) = mc0; sc(i) = sc0;
- t0 = log10(amp_IRB{i}(:,2));
- mt0 = mean(t0,'omitnan');
- st0 = std(t0,'omitnan')./sqrt(size(t0,1));
- mt(i) = mt0; st(i) = st0;
- amp_IRB_all = [amp_IRB_all ; amp_IRB{i}];
- end
- %All IRB/sEEG subj
- c0 = log10(amp_IRB_all(:,1));
- mc0 = mean(c0,'omitnan');
- sc0 = std(c0,'omitnan')./sqrt(size(c0,1));
- t0 = log10(amp_IRB_all(:,2));
- mt0 = mean(t0,'omitnan');
- st0 = std(t0,'omitnan')./sqrt(size(t0,1));
- x = [1 2]; y = [mc0 mt0]; err = [sc0 st0];
- %Plot
- errorbar(1:n_IRB+1,[mc mc0],[sc sc0],'r*','MarkerSize',mark_sz)
- errorbar(1:n_IRB+1,[mt mt0],[st st0],'b*','MarkerSize',mark_sz)
- %% RC+S now:
- mc = zeros(1,n_RCS); %mean_cortex
- sc = zeros(1,n_RCS); %std_cortex
- mt = zeros(1,n_RCS); %mean_thal
- st = zeros(1,n_RCS); %std_cx
- %amp_IRB_cum = [];
- for i=1:n_RCS
- c0 = log10(amp_RCS{i}(:,1));
- mc0 = mean(c0,'omitnan');
- sc0 = std(c0,'omitnan')./sqrt(size(c0,1));
- mc(i) = mc0; sc(i) = sc0;
- t0 = log10(amp_RCS{i}(:,2));
- mt0 = mean(t0,'omitnan');
- st0 = std(t0,'omitnan')./sqrt(size(t0,1));
- mt(i) = mt0; st(i) = st0;
- amp_RCS_all = [amp_RCS_all ; amp_RCS{i}];
- end
- %All RC+S subj
- c0 = log10(amp_RCS_all(:,1));
- mc0 = mean(c0,'omitnan');
- sc0 = std(c0,'omitnan')./sqrt(size(c0,1));
- t0 = log10(amp_RCS_all(:,2));
- mt0 = mean(t0,'omitnan');
- st0 = std(t0,'omitnan')./sqrt(size(t0,1));
- x = [1 2]; y = [mc0 mt0]; err = [sc0 st0];
- %Plot
- errorbar(n_IRB+2:n_IRB+n_RCS+2,[mc mc0],[sc sc0],'r*','MarkerSize',mark_sz)
- errorbar(n_IRB+2:n_IRB+n_RCS+2,[mt mt0],[st st0],'b*','MarkerSize',mark_sz)
- %% Grand average
- amp_all = [amp_IRB_all ; amp_RCS_all ];
- %All subj
- c0 = log10(amp_all(:,1));
- mc0 = mean(c0,'omitnan');
- sc0 = std(c0,'omitnan')./sqrt(size(c0,1));
- t0 = log10(amp_all(:,2));
- mt0 = mean(t0,'omitnan');
- st0 = std(t0,'omitnan')./sqrt(size(t0,1));
- %x = [1 2]; y = [mc0 mt0]; err = [sc0 st0];
- %Plot
- errorbar(n_IRB+n_RCS+3,mc0,sc0,'r*','MarkerSize',mark_sz)
- errorbar(n_IRB+n_RCS+3,mt0,st0,'b*','MarkerSize',mark_sz)
- %% Adjust axes and labels
- xlim([0.5 17.5]),
- xticks(0:19),xticklabels({' ','sEEG1','sEEG2','sEEG3','sEEG4','sEEG5','sEEG6','sEEG7','sEEG8',...
- 'sEEG9','sEEG10','sEEG - av','RC+S1','RC+S2L','RC+S2R','RC+S3','RC+S - av','Grand av',' '});
- xline(10.5,'--k')
- xline(11.5,'-k')
- xline(15.5,'--k')
- xline([16.5 17.5],'-k')
- hold off
- set(gca,'FontSize',16)
- %xlabel('Subject ID','FontSize',12)
- ylabel('log10 RMS amplitude (uV)','FontSize',17);
- legend('Cortical SOZ','Thalamus','Location','northeast')
- %title('Ictal RMS voltage amplitudes','FontSize',14)
- ylim([1 3.5])
- saveas(gcf,'filename')
- %return
- %%Stats time
- amp_cx = amp_all(:,1);
- amp_th = amp_all(:,2);
- %remove NaNs frmo thalamus:
- amp_th = amp_th(~isnan(amp_th));
- % Median
- median1 = median(amp_cx), mean1 = mean(amp_cx)
- median2 = median(amp_th), mean2 = mean(amp_th)
- % IQR
- iqr1 = iqr(log(amp_cx)), q1 = quantile(amp_cx, [0.25 0.75])
- iqr2 = iqr(amp_th), q2 = quantile(amp_th, [0.25 0.75])
- % Range
- range1 = [min(amp_cx), max(amp_cx)]
- range2 = [min(amp_th), max(amp_th)]
- %Mann-Whitney U:
- [p,h,stats] = ranksum(amp_cx,amp_th)
get_amps5.m at commit 0cf18ff, no license · at the source
Overview
- Department of Neurology, Mayo Clinic, Rochester, MN 55905, USA
- Department of Neurology, The Alfred Hospital, Melbourne, VIC 3004, Australia
- Department of Neuroscience, Monash University, Melbourne, VIC 3004, Australia
- Czech Institute of Informatics, Robotics, and Cybernetics, Czech Technical University in Prague, Prague 16000, Czech Republic
- Department of Natural Sciences, Faculty of Biomedical Engineering, Czech Technical University in Prague, Kladno 27201, Czech Republic
- Department of Neurosurgery, Mayo Clinic, Rochester, MN 55905, USA
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
0cf18ff7914c69a1365d96d5cd76096ba9f4902c, 9 March 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
7 files
- analyse_RCS2.m, MATLAB, 306 lines
- extract_analyse_IRB2.m, MATLAB, 318 lines
- get_amps5.m, MATLAB, 165 lines, 1 match
- get_delays_by_subj2.m, MATLAB, 51 lines
- plot_sz_data5.m, MATLAB, 99 lines
- pre_process_EEG2.m, MATLAB, 30 lines
- pre_process_EEG3.m, MATLAB, 37 lines
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://
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://
BibTeX
@article{simpson2026thal
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/
url = {https://
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/
VL - 8
IS - 4
SP - fcag227
SN - 2632-1297
PB - Oxford University Press
DO - 10.1093/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1093/
"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":
"volume": "8",
"issue": "4",
"page": "fcag227",
"DOI": "10.1093/
"PMID": "42396599",
"PMCID": "PMC13326942",
"ISSN": "2632-1297",
"publisher": "Oxford University Press",
"URL": "https://
"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 biologyIn 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 communicationsIn 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: EBioMedicineIn 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 communicationsIn common: Statistics and Machine Learning Toolbox, author Kai J Miller
- [5] doi:10.1002/mco2.70931 [code]
- Unveiling Functional Architecture of Human Thalamus: AStereoelectroencephalog
raphy Study. Journal: MedCommIn 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 biologyIn 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 neurologyIn 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 neuroscienceIn 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 diseaseIn 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 neurologyIn 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.
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 1 match 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:6569daa88c4519e7…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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.
