SmartERD: a pipeline for referencing subjects to a common peak in the analysis of ERD dynamics
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
- function smarterd = TFfindRespFreq2(TF_subj,timeVec,freqVec,thr_max);
- %TF_subj ERDgram freq x time in alpha or beta (e.g. 7:16 Hz - for alpha 1 bin is
- %added for each side, it is needed in the peak search procedure)
- %timeVec time vector in secs
- %freqVec frequency vector in the alpha or beta band, in Hz
- %thr_max SmartERD threshold
- %%% Reference "SmartERD: a pipeline for referencing subjects to a common
- %%% peak in the analysis of ERD dynamics", Sara Spadone,
- %%% Carlo Sestieri, Paolo Capotosto, Antonello Baldassarre, Stefano Sensi,
- %%% Stefania Della Penna, Scientific Reports 2025
- %%peak search procedure to identify all 2D peaks in the ERDgram, for each frequency bin
- TF_subj=-TF_subj;
- deltat=timeVec(2)-timeVec(1);
- pks_end=[]; locs_end=[]; freqs_end=[];
- smarterd=[];
- for ind=1:size(TF_subj,1)-1
- if ind~=1
- [pks,locs]=findpeaks(TF_subj(ind,:));
- locs(find(pks<0))=[];
- pks(find(pks<0))=[];
- freqs=ones(size(locs)).*ind;
- ind_locs=0;
- while ind_locs<length(locs)
- ind_locs=ind_locs+1;
- junk=ind-1:ind+1;
- junk(find((junk==0) | (junk>size(TF_subj,1))))=[];
- [pks_tmp,pos_peak]=findpeaks(TF_subj(junk,locs(ind_locs)));
- if pos_peak~=2
- pks(ind_locs)=[]; locs(ind_locs)=[]; freqs(ind_locs)=[];
- ind_locs=ind_locs-1;
- end
- end
- pks_end=[pks_end,pks];
- locs_end=[locs_end,locs];
- freqs_end=[freqs_end,freqs];
- end
- end
- if ~isempty(pks_end)
- [global_amp b]=max(pks_end); %AEP
- global_lat=locs_end(b); %AEP latency
- junk=global_amp-thr_max*(-global_amp+100)*2; %BOUNDARY
- junk2=find(pks_end>=junk);
- [smarterd_ind_lat b]=min(locs_end(junk2)); %select the first peak within BOUNDARY
- smarterd_amp=pks_end(junk2(b));
- smarterd_ind_freq=freqs_end(junk2(b));
- smarterd_amp=-smarterd_amp;
- else
- [smarterd_amp]=NaN;
- end
- if ~isnan(smarterd_amp)
- smarterd.lat=timeVec(smarterd_ind_lat)+1;
- smarterd.freq=freqVec(smarterd_ind_freq);
- smarterd.amp=smarterd_amp;
- smarterd.global_amp=global_amp;
- smarterd.global_lat=global_lat;
- wav=-TF_subj(smarterd_ind_freq,:);
- temp_onset=wav(1:smarterd_ind_lat);
- temp_offset=wav(smarterd_ind_lat:end);
- cross_onset=find(temp_onset>0);
- cross_offset=find(temp_offset>0);
- if ~isempty(cross_onset)
- smarterd.onset=cross_onset(end);
- else
- smarterd.onset=1;
- end
- if ~isempty(cross_offset)
- smarterd.offset=cross_offset(1)+smarterd_ind_lat-1;
- else
- smarterd.offset=length(wav);
- end
- smarterd.area_wav=abs(trapz(wav(smarterd.onset:smarterd.offset)))*deltat;
- smarterd.duration=smarterd.offset-smarterd.onset;
- smarterd.wav=wav;
- else
- smarterd.amp=smarted_amp;
- smarterd.lat=NaN; smarterd.freq=NaN;
- smarterd.wav=NaN;
- smarterd.onset=NaN; smarterd.offset=NaN; smarterd.area_wav=NaN;
- smarterd.duration=NaN;
- end
- end
TFfindRespFreq2_scirep.m, under GPL-3.0 · at the source
Overview
- UniCamillus-Saint Camillus International University of Health Sciences,Rome, Italy
- 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
- Research Center, UdA-TechLab, University G. d’Annunzio of Chieti-Pescara,Via dei Vestini 31, Chieti, 66100 Italy
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
Availability: 1 check, the latest on 26 September 2026: the link answers (HTTP 200)
- 26 September 2026: the link answers (HTTP 200)
5 files
- TFfindRespFreq2_scirep.m
, MATLAB, 128 lines - find_threshold.m, MATLAB, 40 lines
- launch_SmartERD.m, MATLAB, 12 lines
- LICENSE, License, 674 lines
- README.md, Text, 16 lines
sdpenna66/smarterd
9e5d9b6c3986060440e763f57ccae079ff7651ac, 5 November 2025Availability: 1 check, the latest on 26 September 2026: the link answers
- 26 September 2026: the link answers
5 files
- TFfindRespFreq2_scirep.m
, MATLAB, 128 lines - find_threshold.m, MATLAB, 40 lines
- launch_SmartERD.m, MATLAB, 12 lines
- LICENSE, License, 674 lines
- README.md, Text, 16 lines
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
- zenodo:17534399, at Zenodo; found in “Data availability”
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:
- it points to a dataset: Zenodo 17534399
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://
BibTeX
@article{spadone2025smar
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/
url = {https://
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/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"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":
"volume": "15",
"issue": "1",
"page": "45486",
"DOI": "10.1038/
"PMCID": "PMC12748784",
"ISSN": "2045-2322",
"publisher": "Nature Publishing Group",
"URL": "https://
"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 adaptationJournal: 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 biologyIn 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: PsychophysiologyIn 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 psychiatryIn 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 SciencesIn 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-MEGJournal: n/aIn 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 SentencesJournal: n/aIn 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: PsychophysiologyIn 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: PsychophysiologyIn 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 cortexJournal: n/aIn 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.
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: 2 repositories of the authors' code, each at its verified commit and with its license, 6 scripts, and 0 matches 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:3bc38896cc6d2af6…
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.
