DevelopmentalDemo
Tutorial for developmental data with spectral parameterization.
Install / Use
/learn @fooof-tools/DevelopmentalDemoREADME
Spectral parameterization for studying neurodevelopment: How and why
This repository contains a tutorial on applying spectral parameterization to developmental data.
Overview
Explicit parameterization of neural power spectra is an important step for understanding how dynamic neural communication contributes to normative and aberrant cognition across the lifespan.
The goal of this tutorial is to provide helpful resources so that developmental cognitive neuroscientists may seamlessly integrate the spectral parameterization (specparam) toolbox into their processing pipeline for pediatric EEG data.
Specifically, we provide code to parameterize individual and group power spectral data, using both Python, using Jupyter notebooks, and in R, using R markdown files.
Repository Layout
This repository is set up in the following way:
Data/contains some example data used in the tutorialsOutput/contains some example output used in the tutorialsPython/contains example tutorial code for parameterizing power spectra using PythonR/contains example tutorial code for parameterizing power spectra using R
Requirements
The examples in this repository use and require Python >= 3.6.
All examples require the specparam module.
Additional required Python modules are listed in requirements.txt file, and can be installed in the Terminal via
pip install -r requirements.txt
The R example requires R, including the following modules:
- reticulate to interface Python and R Studio
- tidyverse to access a collection of packages for data management
- gridExtra to arrange multiple plots
- psych to access tools for data analysis
- magick to load and adjust .PNG files, if needed
Reference
This tutorial is accompanied by a companion paper which includes a detailed description of the processing steps using each program, as well as a theoretical explanation of the importance of spectral parameterization for developmental cognitive neuroscientists.
This tutorial is described in the following article:
Ostlund B, Donoghue T, Anaya B, Gunther KE, Karalunas SL, Voytek B, Pérez-Edgar KE (2022). Spectral
parameterization for studying neurodevelopment: How and why. Developmental Cognitive Neuroscience, 54, 101073.
DOI: 10.1016/j.dcn.2022.101073
Direct Link: https://doi.org/10.1016/j.dcn.2022.101073
For more information on the the spectral parameterization model, see also Donoghue et al., 2020.
Further materials on spectral parameterization are also available on the documentation site.
Data
We include electroencephalogram (EEG) data from 60 children (M<sub>age</sub> = 9.97, SD = 0.96) who were a part of a study conducted by the Cognition, Affect, and Temperament (CAT) lab, under the supervision of Koraly Pérez-Edgar at Pennsylvania State University.
The data in this repository correspond to the following tutorials:
- Fitting individual power spectrum
indv.csv- individual power spectrum with ID
- Fitting group power spectra
eop.csv- power spectra with IDs for eyes-open (eop) condition
- Illustrative example
ecl.csv- power spectra with IDs for eyes-closed (ecl) conditionbiq.csv- IDs, group membership (GRP), condition (COND), total BIQ scores (Total_BIQ), and total social novelty scores (Total_Soc_Nov)ecl_BI.csv- power spectra with IDs for behaviorally inhibited (BI) children for ecl conditionecl_BN.csv- power spectra with IDs for non-behaviorally inhibited (BN) children for ecl conditionasm.csv- power spectra for frontal asymmetry (asm) analysis with IDs and scalp hemisphere (hem) variables
- Vector of frequencies
freq.csv- vector of frequencies from 1-50Hz by 0.5 Hz
Contact
For questions or bug reports about this tutorial, you can open an issue.
For questions or bug reports about the specparam tool, please open issues in the tool repository.
For any other questions, comments, or concerns, feel free to contact Brendan Ostlund (bdo12@psu.edu) and/or Thomas Donoghue (tdonoghue.research@gmail.com).
Related Skills
node-connect
350.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
110.4kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
110.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
350.8kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
