Skip to content

Tutorial for developmental data with spectral parameterization.

License

Notifications You must be signed in to change notification settings

fooof-tools/DevelopmentalDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 tutorials
  • Output/ contains some example output used in the tutorials
  • Python/ contains example tutorial code for parameterizing power spectra using Python
  • R/ 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 (Mage = 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) condition
    • biq.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 condition
    • ecl_BN.csv - power spectra with IDs for non-behaviorally inhibited (BN) children for ecl condition
    • asm.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).