Skip to content

katduecker/gamma-flicker-entrainment-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

Entrainment of neuronal gamma oscillations using Rapid Frequency Tagging

This repository contains all scripts developed for the analysis of Magnetoencephalography (MEG) data for Duecker et al., 2021, J Neurosci.

MEG data analysis in MATLAB

Preprocessing

  1. (a1) semi-automatic artefact rejection
  2. (a2) Independent Component analysis & component suppression
  3. (a3) estimating source models and leadfield matrix for Linearly Constrained Minimum Variance (LCMV) beamformer (van Veen et al., 1997)
  4. (c) separate cleaned data into conditions (tagging frequencies) based on signal in photodiode

Gamma oscillations & flicker responses - power

  1. (e) Identify individual gamma frequency: Time-Frequency analysis of power for the moving grating (without flicker) interval
  2. (f) Gamma oscillations and flicker response: Time-Frequency analysis of power for all trials in flicker&grating (in code "entrainment") condtion
  3. (g) Response to invisible flicker: TF analysis of power for all trials in flicker (in code "resonance") condition

Gamma oscillations & flicker responses - coherence

  1. (h) time frequency analysis of coherence between MEG sensors of interest and photodiode signal

  2. (i) plot average power and coherence as a function of frequency for both conditions

LCMV Beamformer

  1. (k1) estimate spatial filter based on the covariance matrix over all data (including all conditions)
  2. (k2) project flicker response and gamma oscillations into source space (40,000 virtual channels are broken up into small subsets)
  3. (k3) concatenate subsets of virtual channels & plot results
  4. (k4) project flicker&grating interval into source space and contrast to grating only interval to isolate flicker response

Phase analysis

  1. (n) calculate phase difference between MEG sensors and photodiode
  2. (n2) algorithm to find plateaus

Statistical analysis in R

  1. statistics: ANOVA on power at IGF before and during flicker, for flicker frequencies above and below IGF
  2. Linear Model fit to power and coherence as a function of frequency
  3. PCA_MNI: principal component analysis of peak MNI coordinates of gamma oscillations and flicker response in conditions "flicker" and "flicker&grating"; comparison of coordinates along first principal component

About

Analysis scripts MATLAB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published