Novel 4 He-OPMs support waveform-specific beta burst analysis comparable to SQUID-MEG
The 8 matches
- [1] § Methods › Burst detection ↔ python/burst_detection.py, lines 264–330 · score 0.86 · aperiodic spectrum, event related, burst detection, peak frequency, extracted burst, burst waveforms
- [2] § Methods › Burst detection ↔ matlab/extract_bursts_single_trial.m, lines 43–116 · score 0.84 · noise floor, aperiodic spectrum, single trial TF, peak frequency, extracted burst, Gaussian
- [3] § Methods › Data analysis ↔ A2_OPM_preproc.py, lines 266–314 · score 0.82 · linear regression, reference regressor, denoise, RMS, dtw, warping
- [4] § Methods › Burst analysis ↔ B4_SQUID_BurstMetrics.py, lines 128–195 · score 0.67 · bin width, burst duration, peak frequency, burst rate, timecourses, amplitudes
- [5] § Results › Beta burst metrics ↔ B5_OPM_BurstMetrics.py, lines 173–252 · score 0.60 · burst durations, Peak amplitude, Peak frequency, collapsed, metrics, motor
- [6] § Results › Beta burst metrics ↔ B4_SQUID_BurstMetrics.py, lines 128–195 · score 0.58 · burst durations, Peak amplitude, Peak frequency, metrics, motor, SQUID
- [7] § Methods › SNR ↔ C5_Fig6.py, lines 130–169 · score 0.55 · 500–1500 ms, percent baseline, burst rate, PC, sensor, SQUID
- [8] § Methods › Burst analysis ↔ C3_Fig4.py, lines 261–344 · score 0.52 · temporal cluster, slope, spatio, permutation, binning, burst rate
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
Python · 247 lines · 8.6 KB · no license · 2 matches
- import pickle
- import os.path as op
- import numpy as np
- from os import listdir
- import mne
- from scipy.ndimage import gaussian_filter
- group_path = '/sps/cermep/opm/NEW_MEG/HV/group/Motor/'
- print('Loading data')
- #Get subject files and sort by type
- VIS_SQUID_bursts = [d for d in listdir(op.join(group_path,'bursts')) if 'SQUID_VIS' in d]
- MOT_SQUID_bursts = [d for d in listdir(op.join(group_path,'bursts')) if 'SQUID_MOT' in d]
- VIS_SQUID_bursts.sort()
- MOT_SQUID_bursts.sort()
- print('Getting SQUID waveforms')
- waveforms = []
- for vis_file in VIS_SQUID_bursts:
- file = open(op.join(group_path,'bursts',vis_file), 'rb')
- bs = pickle.load(file)
- for i in range(len(bs)):
- am_bs = len(bs[i]["waveform"])
- bs_samp_ix = np.random.choice(np.arange(am_bs), int(am_bs))
- bs_samp = np.vstack(bs[i]['waveform'])[bs_samp_ix, :]
- waveforms.append(bs_samp)
- waveforms = np.vstack(waveforms)
- waveforms_medians = np.median(waveforms, axis=1)
- print('Collecting subject metrics')
- #create subject metrics
- sub_metrics = {}
- for (vis,mot) in zip(VIS_SQUID_bursts, MOT_SQUID_bursts):
- pp_ix1=vis[:2]
- pp_ix2=mot[:2]
- if not pp_ix1==pp_ix2:
- print('File order mismatch, please check burst files')
- break
- file = open(op.join(group_path,'bursts',vis), 'rb')
- bs_vis = pickle.load(file)
- file = open(op.join(group_path,'bursts',mot), 'rb')
- bs_mot = pickle.load(file)
- metrics = {
- "vis": {
- "waveform": [],
- "peak_time": [],
- "peak_freq": [],
- "peak_amp_base": [],
- "fwhm_freq": [],
- "fwhm_time": [],
- "peak_adjustment": [],
- "trial": [],
- "pp_ix": [],
- },
- "mot": {
- "waveform": [],
- "peak_time": [],
- "peak_freq": [],
- "peak_amp_base": [],
- "fwhm_freq": [],
- "fwhm_time": [],
- "peak_adjustment": [],
- "trial": [],
- "pp_ix": [],
- }
- }
- #VIS:
- #collapse over channels
- wf_vis=[]
- for ch in range(len(bs_vis)):
- wf_vis.append(np.array(bs_vis[ch]['waveform']))
- wf_vis=np.vstack(wf_vis)
- #clear top and bottom 1 percentile (overall)
- wf_median = np.median(wf_vis, axis=1)
- wf_ixs = np.where(
- (wf_median > np.percentile(waveforms_medians, 1)) &
- (wf_median < np.percentile(waveforms_medians, 99)))[0]
- wf_vis = wf_vis[wf_ixs,:]
- #fill in the metrics, omitting omitted bursts
- metrics['vis']["waveform"].append(wf_vis)
- metrics['vis']["waveform"]=np.vstack(metrics['vis']["waveform"])
- for k in ["peak_time", "peak_amp_base", "fwhm_freq", "fwhm_time", "peak_freq", "trial"]:
- tmp=[]
- for ch in range(len(bs_vis)):
- tmp.append(np.array(bs_vis[ch][k]))
- tmp=np.hstack(tmp)
- metrics['vis'][k].append(tmp[wf_ixs])
- metrics['vis'][k]=np.vstack(metrics['vis'][k])
- metrics['vis']['pp_ix']=pp_ix1
- #MOT:
- #collapse over channels
- wf_mot=[]
- for ch in range(len(bs_mot)):
- wf_mot.append(np.array(bs_mot[ch]['waveform']))
- wf_mot=np.vstack(wf_mot)
- #clear top and bottom 1 percentile (overall)
- wf_median = np.median(wf_mot, axis=1)
- wf_ixs = np.where(
- (wf_median > np.percentile(waveforms_medians, 1)) &
- (wf_median < np.percentile(waveforms_medians, 99)))[0]
- wf_mot = wf_mot[wf_ixs,:]
- #fill in the metrics, omitting omitted bursts
- metrics['mot']["waveform"].append(wf_mot)
- metrics['mot']["waveform"]=np.vstack(metrics['mot']["waveform"])
- for k in ["peak_time", "peak_amp_base", "fwhm_freq", "fwhm_time", "peak_freq", "trial"]:
- tmp=[]
- for ch in range(len(bs_mot)):
- tmp.append(np.array(bs_mot[ch][k]))
- tmp=np.hstack(tmp)
- metrics['mot'][k].append(tmp[wf_ixs])
- metrics['mot'][k]=np.vstack(metrics['mot'][k])
- metrics['mot']['pp_ix']=pp_ix2
- sub_metrics[pp_ix1] = metrics
- #save metrics
- print('Saving subject metrics')
- sub_metrics_path = op.join(group_path, "SQUID_sub_metrics.pkl")
- pickle.dump(sub_metrics, open(sub_metrics_path, "wb"))
- #Now create group averages
- #We need to know the trial timecourse, so load an evoked for both conditions and extract times
- tmp=mne.read_evokeds(op.join(group_path,'evoked','01_VIS_MEG-ave.fif'))
- vis_times=tmp[0].times
- tmp=mne.read_evokeds(op.join(group_path,'evoked','01_MOT_MEG-ave.fif'))
- mot_times=tmp[0].times
- print('aggregating metrics')
- vis_wf=np.zeros([len(sub_metrics.keys()),np.shape(sub_metrics['01']['vis']['waveform'])[1]])
- mot_wf=np.zeros([len(sub_metrics.keys()),np.shape(sub_metrics['01']['mot']['waveform'])[1]])
- vis_burst_rate = []
- mot_burst_rate = []
- vis_peak_freq = []
- mot_peak_freq = []
- vis_peak_amp = []
- mot_peak_amp = []
- vis_fwhm_time = []
- mot_fwhm_time = []
- vis_fwhm_freq = []
- mot_fwhm_freq = []
- for ind,s in enumerate(sub_metrics.keys()):
- vis_wf[ind,]=np.average(sub_metrics[s]['vis']['waveform'],axis=0)
- mot_wf[ind,]=np.average(sub_metrics[s]['mot']['waveform'],axis=0)
- #burst rate
- buffer = 0.125
- bin_width=0.05
- baseline_range = [-0.5, -0.25]
- visual_time_bins = np.arange(vis_times[0] + buffer, vis_times[-1] - buffer, bin_width)
- vis_hist, t_bin_edges = np.histogram(sub_metrics[s]['vis']['peak_time'],bins=visual_time_bins)
- vis_hist = vis_hist / bin_width
- br_vis=gaussian_filter(vis_hist, 1)
- motor_time_bins = np.arange(mot_times[0] + buffer, mot_times[-1] - buffer, bin_width)
- mot_hist, t_bin_edges = np.histogram(sub_metrics[s]['mot']['peak_time'],bins=motor_time_bins)
- mot_hist = mot_hist / bin_width
- br_mot=gaussian_filter(mot_hist, 1)
- #now baseline burst rate
- vis_time_plot = visual_time_bins[:-1]
- mot_time_plot = motor_time_bins[:-1]
- baseline_ixs = np.where(
- (vis_time_plot >= baseline_range[0]) &
- (vis_time_plot <= baseline_range[-1]))
- base_bursts = np.mean(br_vis[baseline_ixs])
- br_vis = (br_vis - base_bursts) / base_bursts
- br_mot = (br_mot - base_bursts) / base_bursts
- vis_burst_rate.append(br_vis)
- mot_burst_rate.append(br_mot)
- #peak_freq: peak frequency distribution
- vis_peak_freq.append(sub_metrics[s]['vis']['peak_freq'])
- mot_peak_freq.append(sub_metrics[s]['mot']['peak_freq'])
- #peak_amp_base: peak amplitude distribution
- vis_peak_amp.append(sub_metrics[s]['vis']['peak_amp_base'])
- mot_peak_amp.append(sub_metrics[s]['mot']['peak_amp_base'])
- #fwhm_time: burst duration distribution
- vis_fwhm_time.append(sub_metrics[s]['vis']['fwhm_time'])
- mot_fwhm_time.append(sub_metrics[s]['mot']['fwhm_time'])
- #fwhm_freq: frequency span distribution
- vis_fwhm_freq.append(sub_metrics[s]['vis']['fwhm_freq'])
- mot_fwhm_freq.append(sub_metrics[s]['mot']['fwhm_freq'])
- print('Everything sorted.')
- #calculate burst rate average and SEM
- print('Elaborating burst rate')
- brate_mean_vis = np.mean(vis_burst_rate, axis=0)
- brate_sem_vis = np.std(vis_burst_rate, axis=0) / np.sqrt(np.shape(vis_burst_rate)[0])
- brate_mean_mot = np.mean(mot_burst_rate, axis=0)
- brate_sem_mot = np.std(mot_burst_rate, axis=0) / np.sqrt(np.shape(vis_burst_rate)[0])
- #collapse all data for the histograms
- print('Flattening some stuff')
- vis_peak_freq=np.hstack(vis_peak_freq).flatten()
- mot_peak_freq=np.hstack(mot_peak_freq).flatten()
- vis_peak_amp=np.hstack(vis_peak_amp).flatten()
- mot_peak_amp=np.hstack(mot_peak_amp).flatten()
- mot_peak_freq=np.hstack(mot_peak_freq).flatten()
- vis_fwhm_time=np.hstack(vis_fwhm_time).flatten()
- mot_fwhm_time=np.hstack(mot_fwhm_time).flatten()
- vis_fwhm_freq=np.hstack(vis_fwhm_freq).flatten()
- mot_fwhm_freq=np.hstack(mot_fwhm_freq).flatten()
- #Putting all eggs in one basket
- group_metrics = {"vis": {
- "waveform": vis_wf,
- "burst_rate_av": brate_mean_vis,
- "burst_rate": vis_burst_rate,
- "burst_rate_sem": brate_sem_vis,
- "burst_rate_time": vis_time_plot,
- "peak_freq": vis_peak_freq,
- "peak_amp": vis_peak_amp,
- "fwhm_freq": vis_fwhm_freq,
- "fwhm_time": vis_fwhm_time,
- },
- "mot": {
- "waveform": mot_wf,
- "burst_rate_av": brate_mean_mot,
- "burst_rate": mot_burst_rate,
- "burst_rate_sem": brate_sem_mot,
- "burst_rate_time": mot_time_plot,
- "peak_freq": mot_peak_freq,
- "peak_amp": mot_peak_amp,
- "fwhm_freq": mot_fwhm_freq,
- "fwhm_time": mot_fwhm_time,
- }
- }
- print('Saving results')
- group_metrics_path = op.join(group_path, "SQUID_group_metrics.pkl")
- pickle.dump(group_metrics, open(group_metrics_path, "wb"))
- print('All done.')
B4_SQUID_BurstMetrics.py at commit fb03737, no license · at the source
Overview
- CERMEP-Imagerie du Vivant, MEG Departement, Lyon, France
- Université Claude Bernard Lyon 1, CNRS, INSERM, Centre de Recherche en Neurosciences de Lyon CRNL U1028, UMR5292, COPHY, Bron, France
- Institut des Sciences Cognitives Marc Jeannerod, CNRS, UMR5229, Lyon, France
- Université Claude Bernard Lyon 1, Université de Lyon, Lyon, France
- MAG4Health, Grenoble, France
- Université Claude Bernard Lyon 1, CNRS, INSERM, Centre de Recherche en Neurosciences de Lyon CRNL U1028, UMR5292, EDUWELL, Bron, France
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, with 8 matches between paragraphs and lines of code.
tgutteling/OPM_Motor
fb03737ebd462588cea73449b915953d30ce7b13, 27 November 2024Availability: 1 check, the latest on 26 September 2026: the link answers
- 26 September 2026: the link answers
15 files
- A1_SQUID_preproc.py, Python, 320 lines
- A2_OPM_preproc.py, Python, 556 lines, 1 match
- A3_TFR_superlet.py, Python, 364 lines
- B1_SQUID_bursts.py, Python, 161 lines
- B2_OPM_bursts.py, Python, 304 lines
- B3_PCA.py, Python, 89 lines
- B4_SQUID_BurstMetrics.py
, Python, 247 lines, 2 matches - B5_OPM_BurstMetrics.py, Python, 252 lines, 1 match
- B6_BetaTimecourse.py, Python, 113 lines
- C1_Fig2.py, Python, 1,304 lines
- C2_Fig3.py, Python, 418 lines
- C3_Fig4.py, Python, 549 lines, 1 match
- C4_Fig5_OPM.py, Python, 551 lines
- C5_Fig6.py, Python, 169 lines, 1 match
- README.md, Text, 18 lines
danclab/burst_detection
91fe42487dc701a1f60f7b6ef821c97b86ce506e, 8 February 2024Availability: 1 check, the latest on 26 September 2026: the link answers
- 26 September 2026: the link answers
10 files
- matlab/
extract_bursts.m , MATLAB, 78 lines - matlab/
extract_bursts_single_tr , MATLAB, 188 lines, 1 matchial.m - matlab/
fwhm_burst_norm.m , MATLAB, 64 lines - matlab/
gaus2d.m , MATLAB, 11 lines - matlab/
overlap.m , MATLAB, 7 lines - python/
burst_detection.py , Python, 330 lines, 1 match - python/
pca_analysis_tutorial.ip , Jupyter, 106 linesynb - python/
superlet_burst_detection , Jupyter, 144 lines_example.ipynb - python/
tests.py , Python, 67 lines - README.md, Text, 178 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:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 23 scripts, each with its path and the digest of its content;
- 8 matches 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.
Code and data availability statement
The paper has a code and 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 the authors' code: danclab/
burst_detection , tgutteling/OPM_Motor - it says that the data are available on request
- it says that the code is available on request
Read it in the paper: doi.org/10.1162/imag.a.1040.
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, pages, dates, 7 authors, 5 keywords, 1 funder, 47 references.
Cite
This paper
Gutteling, T. P., Szul, M. J., Daligault, S., Labyt, E., Jung, J., Bonaiuto, J. J., & Schwartz, D. (2025). Novel 4 He-OPMs support waveform-specific beta burst analysis comparable to SQUID-MEG. Imaging Neuroscience, 3, IMAG.a.1040. https://
BibTeX
@article{gutteling2025no
author = {Gutteling, Tjerk P and Szul, Maciej J and Daligault, Sébastien and Labyt, Etienne and Jung, Julien and Bonaiuto, James J and Schwartz, Denis},
title = {{Novel 4 He-OPMs support waveform-specific beta burst analysis comparable to SQUID-MEG}},
journal = {Imaging Neuroscience},
year = {2025},
volume = {3},
pages = {IMAG.a.1040},
publisher = {MIT Press},
issn = {2837-6056},
doi = {10.1162/
url = {https://
pmcid = {PMC12673217}
}
RIS
TY - JOUR
AU - Gutteling, Tjerk P
AU - Szul, Maciej J
AU - Daligault, Sébastien
AU - Labyt, Etienne
AU - Jung, Julien
AU - Bonaiuto, James J
AU - Schwartz, Denis
TI - Novel 4 He-OPMs support waveform-specific beta burst analysis comparable to SQUID-MEG
T2 - Imaging Neuroscience
J2 - Imaging Neurosci (Camb)
PY - 2025
DA - 2025
VL - 3
SP - IMAG.a.1040
SN - 2837-6056
PB - MIT Press
DO - 10.1162/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1162/
"type": "article-journal",
"title": "Novel 4 He-OPMs support waveform-specific beta burst analysis comparable to SQUID-MEG",
"container-title": "Imaging Neuroscience",
"author": [
{
"family": "Gutteling",
"given": "Tjerk P"
},
{
"family": "Szul",
"given": "Maciej J"
},
{
"family": "Daligault",
"given": "Sébastien"
},
{
"family": "Labyt",
"given": "Etienne"
},
{
"family": "Jung",
"given": "Julien"
},
{
"family": "Bonaiuto",
"given": "James J"
},
{
"family": "Schwartz",
"given": "Denis"
}
],
"container-title-short":
"volume": "3",
"page": "IMAG.a.1040",
"DOI": "10.1162/
"PMCID": "PMC12673217",
"ISSN": "2837-6056",
"publisher": "MIT Press",
"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.1002/hbm.70368 [code]
- The Mismatch Negativity Compared: EEG, SQUID‐MEG, and Novel 4 Helium‐OPMsJournal: n/aIn common: autoreject, MNE-Python, scikit-learn, 3 other tools, MEG, 14 references, author Tjerk P Gutteling
- [2] doi:10.64898/2026.03.06.710026 [code]
- Distinct beta burst motifs exhibit opposing error relationships during motor adaptationJournal: bioRxiv (preprint)In common: specparam (formerly FOOOF), FieldTrip, MNE-Python, 7 other tools, 7 references, author Denis Schwartz
- [3] doi:10.1038/s41598-025-08037-8 [code]
- OPM-MEG reveals dynamics of beta bursts underlying attentional processes in sensory cortexJournal: n/aIn common: NumPy, MEG, 14 references
- [4] doi:10.1162/imag.a.1226 [code]
- A neuroscientist's guide to neural burst detection.Journal: Imaging neuroscience (Cambridge, Mass.)In common: specparam (formerly FOOOF), FieldTrip, MNE-Python, 6 other tools, 8 references
- [5] doi:10.1162/imag.a.1269 [code]
- From early to contemporary normative modeling: Mapping individual differences in neurophysiological signals.Journal: Imaging neuroscience (Cambridge, Mass.)In common: autoreject, specparam (formerly FOOOF), MNE-Python, 5 other tools, MEG, 3 references
- [6] doi:10.3390/s26103131 [code]
- Neuromagnetism "On the Cheap": Evaluating a Combined Cylindrical Shield and Partial-Coverage OPM-MEG System for Detecting Sensorimotor Responses in Humans.Journal: Sensors (Basel, Switzerland)In common: MNE-Python, scikit-learn, pandas, 3 other tools, MEG, 6 references
- [7] doi:10.1038/s41467-026-73553-8 [code]
- Universal rhythmic architecture uncovers two modes of neural dynamics.Journal: Nature communicationsIn common: FieldTrip, MNE-Python, Signal Processing Toolbox, 5 other tools, 4 references
- [8] doi:10.7554/elife.100605 [code]
- Age-related changes in ‘cortical’ 1/
f dynamics are linked to cardiac activity Journal: n/aIn common: autoreject, specparam (formerly FOOOF), MNE-Python, 5 other tools, MEG, 2 references - [9] doi:10.1162/imag.a.1353 [code]
- Model-based cardiac field artefact correction for OP-MEG.Journal: Imaging neuroscience (Cambridge, Mass.)In common: FieldTrip, Signal Processing Toolbox, Statistics and Machine Learning Toolbox, MEG, 5 references
- [10] doi:10.1162/imag.a.1169 [code]
- Diazepam alters the shape of alpha oscillations recorded from human cortex using EEG.Journal: Imaging neuroscience (Cambridge, Mass.)In common: specparam (formerly FOOOF), MNE-Python, pandas, 3 other tools, 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, 23 scripts, and 8 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:ff52e89d98b23f29…
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.
