OSCR

SmartERD: a pipeline for referencing subjects to a common peak in the analysis of ERD dynamics

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 · 128 lines · 3.1 KB · GPL-3.0

  1. function smarterd = TFfindRespFreq2(TF_subj,timeVec,freqVec,thr_max);
  2. %TF_subj ERDgram freq x time in alpha or beta (e.g. 7:16 Hz - for alpha 1 bin is
  3. %added for each side, it is needed in the peak search procedure)
  4. %timeVec time vector in secs
  5. %freqVec frequency vector in the alpha or beta band, in Hz
  6. %thr_max SmartERD threshold
  7. %%% Reference "SmartERD: a pipeline for referencing subjects to a common
  8. %%% peak in the analysis of ERD dynamics", Sara Spadone,
  9. %%% Carlo Sestieri, Paolo Capotosto, Antonello Baldassarre, Stefano Sensi,
  10. %%% Stefania Della Penna, Scientific Reports 2025
  11. %%peak search procedure to identify all 2D peaks in the ERDgram, for each frequency bin
  12. TF_subj=-TF_subj;
  13. deltat=timeVec(2)-timeVec(1);
  14. pks_end=[]; locs_end=[]; freqs_end=[];
  15. smarterd=[];
  16. for ind=1:size(TF_subj,1)-1
  17. if ind~=1
  18. [pks,locs]=findpeaks(TF_subj(ind,:));
  19. locs(find(pks<0))=[];
  20. pks(find(pks<0))=[];
  21. freqs=ones(size(locs)).*ind;
  22. ind_locs=0;
  23. while ind_locs<length(locs)
  24. ind_locs=ind_locs+1;
  25. junk=ind-1:ind+1;
  26. junk(find((junk==0) | (junk>size(TF_subj,1))))=[];
  27. [pks_tmp,pos_peak]=findpeaks(TF_subj(junk,locs(ind_locs)));
  28. if pos_peak~=2
  29. pks(ind_locs)=[]; locs(ind_locs)=[]; freqs(ind_locs)=[];
  30. ind_locs=ind_locs-1;
  31. end
  32. end
  33. pks_end=[pks_end,pks];
  34. locs_end=[locs_end,locs];
  35. freqs_end=[freqs_end,freqs];
  36. end
  37. end
  38. if ~isempty(pks_end)
  39. [global_amp b]=max(pks_end); %AEP
  40. global_lat=locs_end(b); %AEP latency
  41. junk=global_amp-thr_max*(-global_amp+100)*2; %BOUNDARY
  42. junk2=find(pks_end>=junk);
  43. [smarterd_ind_lat b]=min(locs_end(junk2)); %select the first peak within BOUNDARY
  44. smarterd_amp=pks_end(junk2(b));
  45. smarterd_ind_freq=freqs_end(junk2(b));
  46. smarterd_amp=-smarterd_amp;
  47. else
  48. [smarterd_amp]=NaN;
  49. end
  50. if ~isnan(smarterd_amp)
  51. smarterd.lat=timeVec(smarterd_ind_lat)+1;
  52. smarterd.freq=freqVec(smarterd_ind_freq);
  53. smarterd.amp=smarterd_amp;
  54. smarterd.global_amp=global_amp;
  55. smarterd.global_lat=global_lat;
  56. wav=-TF_subj(smarterd_ind_freq,:);
  57. temp_onset=wav(1:smarterd_ind_lat);
  58. temp_offset=wav(smarterd_ind_lat:end);
  59. cross_onset=find(temp_onset>0);
  60. cross_offset=find(temp_offset>0);
  61. if ~isempty(cross_onset)
  62. smarterd.onset=cross_onset(end);
  63. else
  64. smarterd.onset=1;
  65. end
  66. if ~isempty(cross_offset)
  67. smarterd.offset=cross_offset(1)+smarterd_ind_lat-1;
  68. else
  69. smarterd.offset=length(wav);
  70. end
  71. smarterd.area_wav=abs(trapz(wav(smarterd.onset:smarterd.offset)))*deltat;
  72. smarterd.duration=smarterd.offset-smarterd.onset;
  73. smarterd.wav=wav;
  74. else
  75. smarterd.amp=smarted_amp;
  76. smarterd.lat=NaN; smarterd.freq=NaN;
  77. smarterd.wav=NaN;
  78. smarterd.onset=NaN; smarterd.offset=NaN; smarterd.area_wav=NaN;
  79. smarterd.duration=NaN;
  80. end
  81. end

TFfindRespFreq2_scirep.m, under GPL-3.0 · at the source

Overview

Authors: Sara Spadone1, Carlo Sestieri2, Paolo Capotosto2,3, Antonello Baldassarre2, Stefano L. Sensi2, Stefania Della Penna2,3
ORCID iDs: Sara Spadone
  1. UniCamillus-Saint Camillus International University of Health Sciences,Rome, Italy
  2. Department of Neuroscience, Imaging and Clinical Sciences - and ITAB, Institute for Advanced Biomedical Technologies, G. d’Annunzio University of Chieti-Pescara,Via dei Vestini 31, Chieti, 66100 Italy
  3. Research Center, UdA-TechLab, University G. d’Annunzio of Chieti-Pescara,Via dei Vestini 31, Chieti, 66100 Italy
Journal: n/a, volume 15, issue 1, article 45486
Dates: received 25 June 2025; accepted 11 November 2025; published online 27 November 2025
Type: Research article · Language: English
License: none stated
Identifiers: DOI 10.1038/s41598-025-28583-5 · PMCID PMC12748784 · OpenAlex W4416752546
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: EEG (modality), MEG (modality), human (organism), methods / tools (subfield)
Keywords: Time-frequency analysis, ERD dynamics, Feature extraction, Individual variability, TFR variance, Magnetoencephalography, Neuroscience, Biomedical engineering
MeSH: Brain*, Electroencephalography*, Magnetoencephalography*, Adult, Algorithms, Humans, Male (* major topic)
Topic: Functional Brain Connectivity Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: HORIZON EUROPE European Innovation Council (828784); Ministero dell’Istruzione, dell’Università e della Ricerca (Departments of Excellence 2023–2027 - CUP: D57G22000370001); Fundação Bial (#159-2016); NextGenerationEU (ECS00000041)
Citations: not cited yet (Europe PMC); 46 references in the paper

Abstract

The abstract is not reproduced here: the paper's license (none stated) does not allow it. Read it in the paper, at the publisher or on Europe PMC.

Repositories

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

Zenodo 17534724

License: GPL-3.0
State: the link answers, verified on 26 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: “Code availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 26 September 2026: the link answers (HTTP 200)
  • 26 September 2026: the link answers (HTTP 200)
5 files
At the source:

sdpenna66/smarterd

License: GPL-3.0
State: the link answers, verified on 26 September 2026
Evidence: files inventoried
Commit: 9e5d9b6c3986060440e763f57ccae079ff7651ac, 5 November 2025
Languages: MATLAB (3)
Size: 8 files, 3 scripts
Software Heritage: not archived
Found in: the Zenodo archive record
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 26 September 2026: the link answers
  • 26 September 2026: the link answers
5 files

Code availability statement

The paper has a code availability statement. Its license (none stated) does not allow reproducing it here; in short, from what the harvester recognized in it:

  • it points to the authors' code: Zenodo 17534724

Read it in the paper: doi.org/10.1038/s41598-025-28583-5.

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:

  • 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 6 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

Datasets cited

Data availability statement

The paper has a data availability statement. Its license (none stated) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1038/s41598-025-28583-5.

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, 6 authors, 8 keywords, 7 MeSH terms, 4 funders, 45 references.

Cite

This paper

Spadone, S., Sestieri, C., Capotosto, P., Baldassarre, A., Sensi, S. L., & Della Penna, S. (2025). SmartERD: a pipeline for referencing subjects to a common peak in the analysis of ERD dynamics. Scientific Reports, 15(1), 45486. https://doi.org/10.1038/s41598-025-28583-5

BibTeX

@article{spadone2025smarterd,
author = {Spadone, Sara and Sestieri, Carlo and Capotosto, Paolo and Baldassarre, Antonello and Sensi, Stefano L. and Della Penna, Stefania},
title = {{SmartERD: a pipeline for referencing subjects to a common peak in the analysis of ERD dynamics}},
journal = {Scientific Reports},
year = {2025},
volume = {15},
number = {1},
pages = {45486},
publisher = {Nature Publishing Group},
issn = {2045-2322},
doi = {10.1038/s41598-025-28583-5},
url = {https://doi.org/10.1038/s41598-025-28583-5},
pmcid = {PMC12748784}
}

RIS

TY - JOUR
AU - Spadone, Sara
AU - Sestieri, Carlo
AU - Capotosto, Paolo
AU - Baldassarre, Antonello
AU - Sensi, Stefano L.
AU - Della Penna, Stefania
TI - SmartERD: a pipeline for referencing subjects to a common peak in the analysis of ERD dynamics
T2 - Scientific Reports
J2 - Sci Rep
PY - 2025
DA - 2025
VL - 15
IS - 1
SP - 45486
SN - 2045-2322
PB - Nature Publishing Group
DO - 10.1038/s41598-025-28583-5
UR - https://doi.org/10.1038/s41598-025-28583-5
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41598-025-28583-5",
"type": "article-journal",
"title": "SmartERD: a pipeline for referencing subjects to a common peak in the analysis of ERD dynamics",
"container-title": "Scientific Reports",
"author": [
{
"family": "Spadone",
"given": "Sara"
},
{
"family": "Sestieri",
"given": "Carlo"
},
{
"family": "Capotosto",
"given": "Paolo"
},
{
"family": "Baldassarre",
"given": "Antonello"
},
{
"family": "Sensi",
"given": "Stefano L."
},
{
"family": "Della Penna",
"given": "Stefania"
}
],
"container-title-short": "Sci Rep",
"volume": "15",
"issue": "1",
"page": "45486",
"DOI": "10.1038/s41598-025-28583-5",
"PMCID": "PMC12748784",
"ISSN": "2045-2322",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41598-025-28583-5",
"language": "en",
"issued": {
"date-parts": [
[
2025
]
]
}
}

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.64898/2026.03.06.710026 [code]
Distinct beta burst motifs exhibit opposing error relationships during motor adaptation
Journal: bioRxiv (preprint)
In common: Signal Processing Toolbox, 3 references
[2] doi:10.1371/journal.pbio.3003675 [code]
Dynamic expectation strength and precision shape human pain perception through shared and dissociable α-oscillatory mechanisms.
Journal: PLoS biology
In common: EEG, 4 references
[3] doi:10.1111/psyp.70345 [code]
sBOSC: A Method for Source-Level Identification of Neural Oscillations in Electromagnetic Brain Signals.
Journal: Psychophysiology
In common: MEG, EEG, 3 references
[4] doi:10.1038/s41398-026-04055-w [code]
Diminished variability of alpha and beta band-limited power as a neural signature in schizophrenia.
Journal: Translational psychiatry
In common: Signal Processing Toolbox, EEG, 2 references
[5] doi:10.1111/nyas.70349 [code]
FREQ-NESS Reveals Age-Related Differences in Frequency-Resolved Brain Networks During Auditory Recognition and Resting State.
Journal: Annals of the New York Academy of Sciences
In common: Signal Processing Toolbox, MEG, 2 references
[6] doi:10.1162/imag.a.1040 [code]
Novel 4 He-OPMs support waveform-specific beta burst analysis comparable to SQUID-MEG
Journal: n/a
In common: Signal Processing Toolbox, MEG, 2 references
[7] doi:10.1038/s41597-025-06397-4 [code]
MEG-SCANS - A comprehensive magnetoencephalography speech dataset with Stories, Chirps and Noisy Sentences
Journal: n/a
In common: Signal Processing Toolbox, MEG, methods / tools, 2 references
[8] doi:10.1111/psyp.70297 [code]
Heartbeat-Evoked Responses in M/EEG: A Systematic Review of Methods With Suggestions for Analysis and Reporting.
Journal: Psychophysiology
In common: MEG, methods / tools, EEG, 2 references
[9] doi:10.1111/psyp.70265 [code]
Neurocognitive Dynamics of Translating Information From a Spatial Map Into Action.
Journal: Psychophysiology
In common: Signal Processing Toolbox, EEG, 2 references
[10] doi:10.1016/j.isci.2025.113806 [code]
Beta-band frequency shifts signal decisions in human prefrontal cortex
Journal: n/a
In common: 4 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.