Diazepam alters the shape of alpha oscillations recorded from human cortex using EEG.
The 13 matches · 2 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
- [1] § Methods › Data analysis › Spatial filtering & component identification › Spectral analysis and parameterisation ↔ code/spect_1_get_plot_pwr.py, lines 17–72 · score 0.83 · peak width limits, 2–40 Hz, peak height, epochs, specparam, r2
- [2] § Methods › Data analysis › Spatial filtering & component identification › Spectral analysis and parameterisation ↔ code/base/helper.py, lines 372–420 · score 0.81 · peak width limits, 2–40 Hz, peak height, epochs, spectra, aperiodic
- [3] § Methods › Data analysis › Waveform shape analysis ↔ code/emd_1_run_inspect.py, lines 54–119 · score 0.74 · mask_sift, masking frequencies, transform, amplitude, IMFs, EMD
- [4] § Methods › Data analysis › EEG preprocessing ↔ code/preproc/preprocessing.py, lines 16–63 · score 0.72 · 1–100 Hz, bad channels, EEGLAB, MNE, preprocessing, raw
- [5] § Methods › Data analysis › Spatial filtering & component identification › Template matching of SSD components ↔ code/ssd_4_ssd_srcs.py, lines 44–93 · score 0.72 · absolute cosine distance, forward model, MNE, location, position, lobe
- [6] § Methods › Data analysis › Waveform shape analysis ↔ code/emd_1_run_inspect.py, lines 1–52 · score 0.65 · phase aligned instantaneous, SSD component, IMF, EMD, band, cycles
- [7] § Methods › Statistical analysis › Spectral data ↔ code/stats/spect/GLMM_spect.R, the whole file · a weak match · score 0.61 · skew normal, imputed, mice, chained, GLMM, models
- [8] § Methods › Statistical analysis › Bayesian estimation ↔ code/stats/PC/emmeans_analysis.R, lines 1–47 · score 0.58 · Chain convergence, brms, emmeans, ROPE, GLMMs, models
- [9] § Methods › Data analysis › Waveform shape analysis ↔ code/Fig_S1.py, lines 39–51 · score 0.57 · split half, principal component, validate, S1
- [10] § Methods › Statistical analysis › Shape data ↔ code/Fig_S3_4.py, lines 64–146 · score 0.57 · von Mises, PC scores, lobes, Post, Pre
- [11] § Methods › Data analysis › Spatial filtering & component identification › Spatio-spectral decomposition (SSD) ↔ code/ssd_4_ssd_srcs.py, lines 95–149 · score 0.57 · template matching, forward model, SNR, filters, SSD, band
- [12] § Methods › Statistical analysis › Bayesian estimation ↔ code/stats/spect/emmeans_analysis_spect.R, the whole file · a weak match · score 0.56 · brms, emmeans, HDI, Posterior, ROPE, models
- [13] § Methods › Data analysis › EEG preprocessing ↔ code/emd_1_run_inspect.py, lines 1–52 · score 0.56 · phase aligned instantaneous, alpha band, EMD, cycle, EEG, SSD
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 · 124 lines · 4.6 KB · no license · 3 matches
- # -*- coding: utf-8 -*-
- """
- Created on Wed Sep 25 09:04:47 2024
- @author: a1147969
- script cycles through ssd components, runs EMD, displays outcome for alpha band by plotting IMF relative to
- SSD timeseries, allowing visual inspection. Well fit data are then subject to cycle anlysis and extraction
- of phase-aligned instantaneous frequency
- """
- import os
- import numpy as np
- import emd
- import pickle
- import mne
- import matplotlib.pyplot as plt
- from base import ssd
- from base.params import mne_datIn, srate, emd_mask_frq, ID, time, imf_pk
- for sub in range(len(ID)):
- subOut = mne_datIn + ID[sub]
- os.chdir(subOut)
- ssdDat = pickle.load(open('emd/cmp_dat.pkl', 'rb'))
- comp_kys = list(ssdDat.keys())
- emd_out = {}
- # load filters
- ssd_out = pickle.load(open(f'ssd/{ID[sub]}_ssd_out.pkl', 'rb'))
- eeg_dat = {}
- for cmp_id, cmp in enumerate(comp_kys):
- kys_segs = comp_kys[cmp_id].split('_')
- cnd = kys_segs[0]
- frq = kys_segs[1]
- ssd_n = kys_segs[-1]
- if frq == 'a':
- # get filter
- filt = ssd_out[f'{cnd}_{frq}_frq']['filt']
- imf_out = {}
- emd_dat = {}
- # run emd on pre-post data
- for tm in ('PRE', 'POS'):
- # load eeg data
- raw = mne.io.read_raw_fif(f'pre_proc/{ID[sub]}_{cnd}{tm}_filtCh_raw.fif', preload=True)
- # get filtered data
- raw_filt = ssd.apply_filters(raw, filt, prefix="ssd")
- emd_in = raw_filt.get_data(picks=ssd_n)[0]
- #run EMD
- imf = emd.sift.mask_sift(emd_in,
- mask_amp = 2,
- # mask_amp_mode='ratio_sig',
- mask_freqs = np.array(emd_mask_frq[frq])/srate,
- max_imfs = 6,
- envelope_opts = {"interp_method":"mono_pchip"})
- imf_out[tm] = imf
- emd_dat[tm] = emd_in
- # plot imfs against ssd time course
- for im_d in imf_out:
- fig, ax = plt.subplots()
- plt.ion()
- plt.plot(emd_dat[im_d])
- plt.plot(imf_out[im_d][:,imf_pk[frq]])
- plt.grid(visible=True, axis='x')
- plt.xlim(0, 1800)
- plt.title(f'freq = {frq}_{im_d}')
- plt.show(block=True)
- # is the fit/data good to keep?
- keep = input('Keep component (Y/N)?')
- # if its good, extract cycle and paif info
- if keep == 'Y':
- for n, im_d in enumerate(imf_out):
- # calculate inst. phase/amp
- IP, IF, IA = emd.spectra.frequency_transform(imf_out[im_d], srate, 'nht')
- # select good/thresholded cycles
- amp_thr = np.percentile(IA[:, imf_pk[frq]], 75) #cut-off set at 75th percentile
- mask = IA[:, imf_pk[frq]] > amp_thr
- cycles = emd.cycles.get_cycle_vector(IP[:, imf_pk[frq]],
- return_good=True,
- mask=mask)
- # phase align
- pa_if, _ = emd.cycles.phase_align(IP[:, imf_pk[frq]],
- IF[:, imf_pk[frq]],
- cycles=cycles[:, 0])
- emd_out[f'{cnd}_{ssd_n}_{time[n]}'] = dict(imfs=imf_out[im_d],
- IA=IA[:,imf_pk[frq]],
- IP=IP[:,imf_pk[frq]],
- IF=IF[:,imf_pk[frq]],
- paif=pa_if,
- mask=mask)
- pickle.dump(emd_out, open('emd/emd_out.pkl', 'wb'))
emd_1_run_inspect.py at commit ed0c6ce, no license · at the source
Overview
- Discipline of Physiology, School of Biomedicine, The University of Adelaide, Adelaide, Australia
- Ernst Strüngmann Institute for Neuroscience in Cooperation with Max Planck Society, Frankfurt am Main, Germany
- Department of Neurology & Stroke, Eberhard Karls University of Tübingen, Tübingen, Germany
- Hertie-Institute for Clinical Brain Research, Eberhard Karls University of Tübingen, Tübingen, Germany
Abstract
While neural oscillations are conventionally assessed via their frequency, power and phase, developing literature suggests that their shape also provides neurophysiological and functional information. However, the extent to which the shape of oscillations recorded non-invasively in humans index specific brain processes remains unclear. This study implemented a pharmaco-EEG approach to begin addressing this limitation. Resting-state EEG data were collected before and after placebo or diazepam, a positive allosteric modulator of type A γ-aminobutyric acid (GABAA) receptors, with 15 participants included in the main analysis. The shape of individual cycles in the alpha band was then derived using empirical mode decomposition, followed by extraction of principal components (PCs) describing specific facets of alpha shape. Results of this approach show that all shape features were unchanged following placebo. In contrast, diazepam was associated with complex changes in several shape features, including peak-trough shape and edge speed. While changes in shape were apparent in all cortical lobes, the strongest alterations were specific to sensorimotor and parietal cortices. Taken together, our results support the neurophysiological utility of waveform shape, particularly with respect to non-invasive human recordings. Furthermore, the regional specificity of effects highlights the need for more granular exploration of waveform diversity.
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 13 matches between paragraphs and lines of code.
g-opie/Diazepam-and-alpha-shape
ed0c6ce5bb896509c1148ec3c4a294b385329dc6, 21 January 2026Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
32 files
- code/
Fig_2.py , Python, 198 lines - code/
Fig_3.py , Python, 138 lines - code/
Fig_4.py , Python, 150 lines - code/
Fig_5.py , Python, 202 lines - code/
Fig_6.py , Python, 234 lines - code/
Fig_S1.py , Python, 52 lines, 1 match - code/
Fig_S2.py , Python, 126 lines - code/
Fig_S3_4.py , Python, 149 lines, 1 match - code/
base/ , Python, 2 lines__init__.py - code/
base/ , Python, 573 lines, 1 matchhelper.py - code/
base/ , Python, 67 linesparams.py - code/
base/ , Python, 245 linesssd.py - code/
emd_1_run_inspect.py , Python, 124 lines, 3 matches - code/
emd_2_paif_restructure.p , Python, 75 linesy - code/
pca_run.py , Python, 64 lines - code/
preproc/ , MATLAB, 69 linesdat_reform.m - code/
preproc/ , MATLAB, 37 lineslineNoise.m - code/
preproc/ , Python, 125 lines, 1 matchpreprocessing.py - code/
spect_1_get_plot_pwr.py , Python, 83 lines, 1 match - code/
spect_2_pwr_reformat.py , Python, 70 lines - code/
ssd_1_run.py , Python, 88 lines - code/
ssd_2_plot.py , Python, 76 lines - code/
ssd_3_SNR.py , Python, 44 lines - code/
ssd_4_ssd_srcs.py , Python, 197 lines, 2 matches - code/
ssd_5_check_comps.py , Python, 96 lines - code/
stats/ , R, 51 linesPC/ GLMMs_PC.R - code/
stats/ , R, 97 lines, 1 matchPC/ emmeans_analysis.R - code/
stats/ , R, 27 linesPC/ exp_post_emms.R - code/
stats/ , R, 65 lines, 1 matchspect/ GLMM_spect.R - code/
stats/ , R, 72 lines, 1 matchspect/ emmeans_analysis_spect.R - code/
stats/ , R, 35 linesspect/ export_emms_spect.R - README.md, Text, 25 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;
- 31 scripts, each with its path and the digest of its content;
- 13 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.
Data and Code Availability
Due to the nature of ethical consent obtained, data cannot be shared. All codes to replicate analyses and generate figures from this article can be found 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, 30 September 2026: the first record
Recorded: type, language, journal, volume, pages, dates, 5 authors, 6 keywords, 1 funder, 72 references.
Cite
This paper
Opie, G. M., Schaworonkow, N., Gordon, P. C., Humaidan, D., & Ziemann, U. (2026). Diazepam alters the shape of alpha oscillations recorded from human cortex using EEG. Imaging neuroscience (Cambridge, Mass.), 4, IMAG.a.1169. https://
BibTeX
@article{opie2026diazepa
author = {Opie, George M and Schaworonkow, Natalie and Gordon, Pedro C and Humaidan, Dania and Ziemann, Ulf},
title = {{Diazepam alters the shape of alpha oscillations recorded from human cortex using EEG}},
journal = {Imaging neuroscience (Cambridge, Mass.)},
year = {2026},
month = mar,
volume = {4},
pages = {IMAG.a.1169},
publisher = {MIT Press},
issn = {2837-6056},
doi = {10.1162/
url = {https://
pmid = {41836918},
pmcid = {PMC12983582}
}
RIS
TY - JOUR
AU - Opie, George M
AU - Schaworonkow, Natalie
AU - Gordon, Pedro C
AU - Humaidan, Dania
AU - Ziemann, Ulf
TI - Diazepam alters the shape of alpha oscillations recorded from human cortex using EEG
T2 - Imaging neuroscience (Cambridge, Mass.)
J2 - Imaging Neurosci (Camb)
PY - 2026
DA - 2026/
VL - 4
SP - IMAG.a.1169
SN - 2837-6056
PB - MIT Press
DO - 10.1162/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1162/
"type": "article-journal",
"title": "Diazepam alters the shape of alpha oscillations recorded from human cortex using EEG",
"container-title": "Imaging neuroscience (Cambridge, Mass.)",
"author": [
{
"family": "Opie",
"given": "George M"
},
{
"family": "Schaworonkow",
"given": "Natalie"
},
{
"family": "Gordon",
"given": "Pedro C"
},
{
"family": "Humaidan",
"given": "Dania"
},
{
"family": "Ziemann",
"given": "Ulf"
}
],
"container-title-short":
"volume": "4",
"page": "IMAG.a.1169",
"DOI": "10.1162/
"PMID": "41836918",
"PMCID": "PMC12983582",
"ISSN": "2837-6056",
"publisher": "MIT Press",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
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.1093/cercor/bhag113 [code]
- Long-term reliability and stability of parameterized resting state EEG: evidence from a five-year follow-up.Journal: Cerebral cortex (New York, N.Y. : 1991)In common: PyPREP, specparam (formerly FOOOF), easystats, 10 other tools, EEG, 4 references
- [2] 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), MNE-Python, seaborn, 4 other tools, 8 references
- [3] doi:10.1093/nc/niag029 [code]
- A data-driven approach to identifying and evaluating connectivity-based neural correlates of conscious visual perception.Journal: Neuroscience of consciousnessIn common: PyPREP, easystats, car, 10 other tools, 1 reference
- [4] 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), car, emmeans, 7 other tools, 4 references
- [5] doi:10.1038/s41597-026-07350-9 [code]
- An open multi-center MEG-EEG dataset for studying conscious visual perception.Journal: Scientific dataIn common: PyPREP, easystats, car, 9 other tools, EEG, 1 reference
- [6] doi:10.7554/elife.107088 [code]
- Development of auditory and spontaneous movement responses to music over the first postnatal year.Journal: eLifeIn common: easystats, car, EEGLAB, 10 other tools, EEG, 1 reference
- [7] doi:10.1093/braincomms/fcag351 [code]
- Time-resolved aperiodic dynamics in event segmentation in attention-deficit/
hyperactivity disorder. Journal: Brain communicationsIn common: specparam (formerly FOOOF), easystats, car, 6 other tools, EEG, 4 references - [8] doi:10.1038/s41467-026-73865-9 [code]
- Histamine shapes the neurocomputational dynamics of human learning.Journal: Nature communicationsIn common: brms, easystats, car, 9 other tools, 1 reference
- [9] doi:10.1038/s41597-026-07377-y [code]
- An open-access multi-site fMRI dataset for investigating conscious visual perception.Journal: Scientific dataIn common: PyPREP, easystats, car, 9 other tools
- [10] doi:10.1038/s41467-026-70287-5 [code]
- Cortical-limbic circuit dynamics of approach-avoidance conflict in humans.Journal: Nature communicationsIn common: specparam (formerly FOOOF), brms, easystats, 8 other tools, EEG, 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, 31 scripts, and 13 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:b375bd6be4011ee3…
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.
