OSCR

Thalamic interictal epileptic and non-epileptic events during NREM sleep in patients with focal epilepsy: a Stereo-EEG study.

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 · 98 lines · 2.5 KB · MIT

  1. % Visually check detected spikes;
  2. %%
  3. spikes_noss = []; spike_gamma_noss = [];
  4. % load data
  5. set(0,'defaultfigurecolor','w');
  6. id = 2; % Set
  7. spike_marker = spikes{id}./ double(sr); % for MNI detectors
  8. plotsoz = false;
  9. if exist('soz_signal', 'var')
  10. plotsoz = true;
  11. end
  12. raw_data = data;
  13. signal = raw_data(id,:);
  14. signal = double(signal)';
  15. fs = sr;
  16. seg_len = 2 * fs;
  17. disp(channels{id});
  18. fl = 30;
  19. fh = 100;
  20. % [b,a] = butter(4,[fl*2/fs, fh*2/fs],'bandpass');
  21. % FIR
  22. filterOrder = 200;
  23. normalizedCutoff = [fl, fh] * 2 / fs;
  24. b = fir1(filterOrder, normalizedCutoff, 'bandpass');
  25. freqz(b, 1, 1024, fs);
  26. %% view
  27. for i = 1:1:length(spike_marker)
  28. cur_sample = int32(spike_marker(i)*fs);
  29. spike_signal = signal(cur_sample-int32(seg_len/2)+1 : cur_sample+int32(seg_len/2));
  30. xaxis = 0:1/fs:length(spike_signal)/fs-1/fs;
  31. fspike_signal = filtfilt(b, 1, spike_signal);
  32. figure(100);
  33. set(gcf, 'Position', [400 50 800 800]);
  34. subplot(4,1,1)
  35. plot(xaxis, spike_signal, 'color', [0 0 0]);
  36. ylabel('Raw iEEG (μV)');
  37. title(['Time: ',num2str(spike_marker(i))]);
  38. box off;
  39. subplot(4,1,2)
  40. plot(xaxis, fspike_signal);
  41. ylabel('30-100 Hz filtered');
  42. xlabel('Time (s)');
  43. title(['Chn: ', channels{id}]);
  44. box off;
  45. % TFR
  46. [ps,tfr] = getTFRfromFT(spike_signal, fs);
  47. xaxis_tfr = tfr.time;
  48. yaxis_tfr= tfr.freq;
  49. subplot(4,1,3)
  50. imagesc(xaxis_tfr,yaxis_tfr,ps);axis xy; xlabel('Time (s)');ylabel('Frequency (Hz)');
  51. colormap jet
  52. title(['Time: ',num2str(spike_marker(i)), ', Chn: ', channels{id}]);
  53. if plotsoz
  54. cur_soz_signal = soz_signal(cur_sample-int32(seg_len/2)+1 : cur_sample+int32(seg_len/2));
  55. subplot(4,1,4)
  56. plot(xaxis, cur_soz_signal, 'color', [0 0 0]);
  57. ylabel('SOZ iEEG (μV)');
  58. box off;
  59. end
  60. disp('Press Y to mark, or any other key to skip.');
  61. key = getkey;
  62. switch key
  63. case 'y'
  64. spikes_noss(end+1) = cur_sample;
  65. case 'Y'
  66. spikes_noss(end+1) = cur_sample;
  67. otherwise
  68. end
  69. % pause %ctr+c exit
  70. end
  71. disp('End')
  72. %%
  73. function [ps,tfr] = getTFRfromFT(signal, fs)
  74. ftdata=[];
  75. ftdata.trial{1} = signal';
  76. ftdata.label = {'Th'};
  77. ftdata.time{1} = 0:1/fs:2.0-1/fs;
  78. ftdata.fsample = fs;
  79. cfg = [];
  80. cfg.method = 'mtmconvol';
  81. cfg.toi = 0:0.02:2.0;
  82. cfg.foi = 10:1:100;
  83. cfg.taper = 'hanning';
  84. cfg.t_ftimwin = 5./cfg.foi;
  85. freq = ft_freqanalysis(cfg, ftdata);
  86. ps = squeeze(freq.powspctrm(1,:,:));
  87. tfr = freq;
  88. end

View_spikecheck.m at commit 35475ba, under MIT · at the source

Overview

Authors: Hongyi Ye1,2, Kassem Jaber2,3, Alyssa Ho2, Lingqi Ye4, John Thomas3,5, Xiaowei Xu1, Cong Chen1, Yihe Chen1, Guoping Ren2,6, Matthew Moye2, Tamir Avigdor2, Irena Doležalová2, Petr Klimes2, Prachi Parikh2, Derek Southwell7, Zhe Zheng8, Junming Zhu8, Shuang Wang1, Birgit Frauscher2,3,9
  1. Department of Neurology and Epilepsy Center, The Second Affiliated Hospital, Zhejiang University School of Medicine, Hangzhou, China
  2. Department of Neurology, Duke University, Durham, NC, USA
  3. Department of Biomedical Engineering, Duke University, Durham, NC, USA
  4. Department of Neurology, Sir Run Run Shaw Hospital, Zhejiang University School of Medicine, Hangzhou, China
  5. Department of Electrical and Computer Engineering Technology, Rochester Institute of Technology, Rochester, NY, USA
  6. Department of Neurology, Beijing Tiantan Hospital, Capital Medical University, Beijing, China
  7. Department of Neurosurgery, Duke University, Durham, NC, USA
  8. Department of Neurosurgery, The Second Affiliated Hospital, Zhejiang University School of Medicine, Hangzhou, China
  9. Montreal Neurological Institute and Hospital, McGill University, Montreal, QC, Canada
Journal: EBioMedicine, volume 128, article 106287
Dates: received 22 August 2025; accepted 23 April 2026; published online 12 May 2026; in print June 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1016/j.ebiom.2026.106287 · PMID 42119303 · PMCID PMC13193782 · OpenAlex W4417331485
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: EEG (modality), intracranial EEG (iEEG / ECoG / SEEG) (modality), human (organism), epilepsy (population), clinical / translational (subfield)
Methods: Spectral & time-frequency, Preprocessing, Connectivity, Statistics, Physiology & signal measures
Keywords: Drug-resistant epilepsy, Electroencephalogram, Thalamus, Epilepsy biomarker, Non-rapid eye movement sleep
MeSH: Electroencephalography*, Epilepsies, Partial*, Thalamus*, Adolescent, Adult, Child, Female, Humans, Male, Middle Aged, Young Adult (* major topic)
Topic: Epilepsy research and treatment (Psychiatry and Mental health, Medicine), according to OpenAlex
Funding: Canadian Institutes of Health Research (PJT-175056); American Academy of Sleep Medicine Foundation; Duke University; Natural Science Foundation of Zhejiang Province (LD24H090003); National Natural Science Foundation of China (82301636, 82471469)
Citations: not cited yet (Europe PMC); 70 references in the paper

Abstract

Background: Thalamic recordings are increasingly incorporated into stereo-electroencephalography (SEEG) evaluations of drug-resistant focal epilepsy to guide neuromodulation targeting. Human thalamic electrophysiology, however, is poorly defined, limiting the distinction between pathological and physiological activity. Here, we characterised interictal epileptic and non-epileptic events during non-rapid eye movement (NREM) sleep across multiple thalamic nuclei and examined their associations to seizure outcomes.

Methods: We analysed NREM sleep SEEG recordings from 64 patients with drug-resistant focal epilepsy. Electrodes sampled four thalamic nuclei: centromedian (CM), pulvinar (Pu), ventral lateral (VL), and ventral posterolateral (VPL). Patients were classified into three outcome groups: favourable, unfavourable, and surgically non-remediable. Rates of thalamic spikes, high-frequency oscillations (HFOs), spike-fast activity, and sleep spindles were analysed and compared across nuclei and outcomes.

Findings: Recordings of the thalamus revealed both pathological and physiological interictal events. Interictal epileptic events were infrequent. Only ∼0.2% of seizure-onset zone spikes propagated to the thalamus. Thalamic spike-fast activity was indicative of unfavourable surgical outcomes (CM: p = 0.047, d = 0.46) or surgically non-remediable epilepsy (VL: p = 0.002, d = 0.84). In contrast, thalamic sleep spindles were ubiquitous but reduced in surgically non-remediable patients (CM: p = 0.031, d = −0.58; VL: p = 0.005, d = −0.79). Finally, unique thalamic SEEG patterns were identified, including spikes concomitant with spindles, isolated spikes, and physiological fast ripples.

Interpretation: This study provides a comprehensive characterisation of thalamic interictal events during NREM sleep, enriching our understanding of thalamic pathophysiology and highlighting the value of thalamic recordings in presurgical evaluation.

Funding: Start-up funding of Duke University; National Natural Science Foundation of China (82471469, 82301636); Zhejiang Provincial Natural Science Foundation (LD24H090003); Canadian Institutes of Health Research funding (PJT-175056).

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

Repository

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

Lab-Frauscher/Thalamus_Interictal

License: MIT
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: 35475ba1dc4b8f827cb154974bd57935fa748472, 13 March 2026
Languages: MATLAB (5)
Size: 7 files, 5 scripts
Software Heritage: not archived
Found in: “Data sharing statement”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: FieldTrip (1 file), Signal Processing Toolbox (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 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;
  • 5 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 sharing statement

The MATLAB code for interictal event detection can be found in the Supplementary Materials, and the code for signal analysis is available on GitHub (https://github.com/Lab-Frauscher/Thalamus_Interictal). Clinical data will be shared with qualified academic investigators upon reasonable request to the senior authors following publication, provided that the requesting team obtains institutional review board approval and executes a formal data sharing agreement.

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 Hongyi Ye (0009-0004-6499-9455); Xiaowei Xu (0000-0001-8790-2450); removed Hongyi Ye; Xiaowei Xu

Version 1, 28 September 2026: the first record

Recorded: type, language, journal, volume, pages, dates, 19 authors, 5 keywords, 11 MeSH terms, 5 funders, 69 references.

Cite

This paper

Ye, H., Jaber, K., Ho, A., Ye, L., Thomas, J., Xu, X., Chen, C., Chen, Y., Ren, G., Moye, M., Avigdor, T., Doležalová, I., Klimes, P., Parikh, P., Southwell, D., Zheng, Z., Zhu, J., Wang, S., & Frauscher, B. (2026). Thalamic interictal epileptic and non-epileptic events during NREM sleep in patients with focal epilepsy: a Stereo-EEG study. EBioMedicine, 128, 106287. https://doi.org/10.1016/j.ebiom.2026.106287

BibTeX

@article{ye2026thalamic,
author = {Ye, Hongyi and Jaber, Kassem and Ho, Alyssa and Ye, Lingqi and Thomas, John and Xu, Xiaowei and Chen, Cong and Chen, Yihe and Ren, Guoping and Moye, Matthew and Avigdor, Tamir and Doležalová, Irena and Klimes, Petr and Parikh, Prachi and Southwell, Derek and Zheng, Zhe and Zhu, Junming and Wang, Shuang and Frauscher, Birgit},
title = {{Thalamic interictal epileptic and non-epileptic events during NREM sleep in patients with focal epilepsy: a Stereo-EEG study}},
journal = {EBioMedicine},
year = {2026},
month = may,
volume = {128},
pages = {106287},
publisher = {Elsevier},
issn = {2352-3964},
doi = {10.1016/j.ebiom.2026.106287},
url = {https://doi.org/10.1016/j.ebiom.2026.106287},
pmid = {42119303},
pmcid = {PMC13193782}
}

RIS

TY - JOUR
AU - Ye, Hongyi
AU - Jaber, Kassem
AU - Ho, Alyssa
AU - Ye, Lingqi
AU - Thomas, John
AU - Xu, Xiaowei
AU - Chen, Cong
AU - Chen, Yihe
AU - Ren, Guoping
AU - Moye, Matthew
AU - Avigdor, Tamir
AU - Doležalová, Irena
AU - Klimes, Petr
AU - Parikh, Prachi
AU - Southwell, Derek
AU - Zheng, Zhe
AU - Zhu, Junming
AU - Wang, Shuang
AU - Frauscher, Birgit
TI - Thalamic interictal epileptic and non-epileptic events during NREM sleep in patients with focal epilepsy: a Stereo-EEG study
T2 - EBioMedicine
J2 - EBioMedicine
PY - 2026
DA - 2026/05/12
VL - 128
SP - 106287
SN - 2352-3964
PB - Elsevier
DO - 10.1016/j.ebiom.2026.106287
UR - https://doi.org/10.1016/j.ebiom.2026.106287
LA - en
ER -

CSL-JSON

{
"id": "10.1016/j.ebiom.2026.106287",
"type": "article-journal",
"title": "Thalamic interictal epileptic and non-epileptic events during NREM sleep in patients with focal epilepsy: a Stereo-EEG study",
"container-title": "EBioMedicine",
"author": [
{
"family": "Ye",
"given": "Hongyi"
},
{
"family": "Jaber",
"given": "Kassem"
},
{
"family": "Ho",
"given": "Alyssa"
},
{
"family": "Ye",
"given": "Lingqi"
},
{
"family": "Thomas",
"given": "John"
},
{
"family": "Xu",
"given": "Xiaowei"
},
{
"family": "Chen",
"given": "Cong"
},
{
"family": "Chen",
"given": "Yihe"
},
{
"family": "Ren",
"given": "Guoping"
},
{
"family": "Moye",
"given": "Matthew"
},
{
"family": "Avigdor",
"given": "Tamir"
},
{
"family": "Doležalová",
"given": "Irena"
},
{
"family": "Klimes",
"given": "Petr"
},
{
"family": "Parikh",
"given": "Prachi"
},
{
"family": "Southwell",
"given": "Derek"
},
{
"family": "Zheng",
"given": "Zhe"
},
{
"family": "Zhu",
"given": "Junming"
},
{
"family": "Wang",
"given": "Shuang"
},
{
"family": "Frauscher",
"given": "Birgit"
}
],
"container-title-short": "EBioMedicine",
"volume": "128",
"page": "106287",
"DOI": "10.1016/j.ebiom.2026.106287",
"PMID": "42119303",
"PMCID": "PMC13193782",
"ISSN": "2352-3964",
"publisher": "Elsevier",
"URL": "https://doi.org/10.1016/j.ebiom.2026.106287",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
12
]
]
}
}

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-73053-9 [code]
Thalamo-cortical synchrony shapes seizure expression in human temporal lobe epilepsy.
Journal: Nature communications
In common: epilepsy, EEG, clinical / translational, 8 references, author John Thomas
[2] doi:10.1093/braincomms/fcag227 [code]
Thalamocortical seizure onset patterns in drug-resistant focal epilepsy.
Journal: Brain communications
In common: Signal Processing Toolbox, epilepsy, EEG, 5 references
[3] doi:10.1093/braincomms/fcag130 [code]
Sleep increases firing rate modulation during interictal epileptiform discharges in mesial temporal structures.
Journal: Brain communications
In common: FieldTrip, Signal Processing Toolbox, epilepsy, EEG, 3 references
[4] doi:10.1073/pnas.2510015122 [code]
Mapping epileptogenic brain using a unified spatial–temporal–spectral source imaging framework
Journal: n/a
In common: FieldTrip, epilepsy, EEG, clinical / translational, 2 references
[5] doi:10.1093/braincomms/fcaf170 [code]
Noninvasive classification of physiological and pathological high frequency oscillations in children
Journal: n/a
In common: Signal Processing Toolbox, epilepsy, EEG, clinical / translational, 2 references
[6] doi:10.1371/journal.pone.0352191 [code]
Bayesian Uncertainty-aware Deep Learning with noisy labels: Tackling annotation ambiguity in EEG seizure detection.
Journal: PloS one
In common: FieldTrip, Signal Processing Toolbox, epilepsy, EEG, 1 reference
[7] doi:10.1038/s42003-026-10427-1 [code]
Phase-tuned modulation during reward expectancy in human anterior insular cortex.
Journal: Communications biology
In common: EEG, author Hongyi Ye
[8] doi:10.1002/epi4.70311 [code]
Bridging computational and clinical strategies for presurgical identification of epileptogenic networks.
Journal: Epilepsia open
In common: intracranial EEG (iEEG / ECoG / SEEG), epilepsy, clinical / translational, 2 references
[9] doi:10.1002/mco2.70931 [code]
Unveiling Functional Architecture of Human Thalamus: AStereoelectroencephalography Study.
Journal: MedComm
In common: epilepsy, 3 references
[10] doi:10.1093/braincomms/fcag187 [code]
50 Hz Cortical stimulation increases interictal epileptiform discharges at the seizure onset zone.
Journal: Brain communications
In common: intracranial EEG (iEEG / ECoG / SEEG), epilepsy, clinical / translational, 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.