LNCD

Table of Contents

  • LNCD Home
  • Administration
  • Notebooks
  • Journal Club Presentations
  • Publications
  • Current Projects
  • Completed Projects
  • Current Grants
  • Datasets by Project
  • Brain ROIs and Measures
  • ️Tools And Methods
  • Big Data
  • RA Homepage
  • Recent Changes
  • Maintenance
  • Site Map
  • Random Page
LNCD
Admin » Aperiodic EEG and 7T MRSI evidence for maturation of E/I balance supporting the development of working memory through adolescence

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
completedprojects:mrsfooof [2024/12/02 10:08] – sdm63completedprojects:mrsfooof [2025/05/06 13:05] (current) – sdm63
Line 25: Line 25:
 == Code Documentation ==  == Code Documentation == 
   * Preprocessing   * Preprocessing
-    * Preprocessing can be run using [[https://github.com/LabNeuroCogDevel/7T_EEG/blob/main/Aperiodic_MRS_Development/01_Aperiodic_Preprocessing.sh|01_Aperiodic_Preprocessing.sh]]+    * Preprocessing can be run using [[https://github.com/LabNeuroCogDevel/Aperiodic_MRS_Development/blob/main/01_Aperiodic_Preprocessing.sh|01_Aperiodic_Preprocessing.sh]]
     * <code> matlab -nodesktop -r "addpath(genpath('../Preprocessing_Functions/')); run_preprocessing_pipeline('Resting_State')" </code>     * <code> matlab -nodesktop -r "addpath(genpath('../Preprocessing_Functions/')); run_preprocessing_pipeline('Resting_State')" </code>
       * Pulls in raw data from hera('Raw/EEG/7TBrainMech')       * Pulls in raw data from hera('Raw/EEG/7TBrainMech')
Line 56: Line 56:
  
   * Calculate the Aperiodic Activity    * Calculate the Aperiodic Activity 
-    * This work was done using the FOOOF package (previous to new edition SpecParam) using [[https://github.com/LabNeuroCogDevel/7T_EEG/blob/main/Aperiodic_MRS_Development/02_runFOOOF.py|02_runFOOOF.py]] using the following parameters:+    * This work was done using the FOOOF package (previous to new edition SpecParam) using [[https://github.com/LabNeuroCogDevel/Aperiodic_MRS_Development/blob/main/02_runFOOOF.py|02_runFOOOF.py]] using the following parameters:
       * For compute_psd <code> (method='welch', fmin=1, fmax=50, tmin=0, tmax=None, picks='all', n_fft=256, n_overlap=128, window='hamming')</code>       * For compute_psd <code> (method='welch', fmin=1, fmax=50, tmin=0, tmax=None, picks='all', n_fft=256, n_overlap=128, window='hamming')</code>
       * For FOOOFGroup <code> peak_width_limits=[0.5, 12], min_peak_height=0, peak_threshold=2, aperiodic_mode='fixed', max_n_peaks=4, verbose=False </code>       * For FOOOFGroup <code> peak_width_limits=[0.5, 12], min_peak_height=0, peak_threshold=2, aperiodic_mode='fixed', max_n_peaks=4, verbose=False </code>
Line 68: Line 68:
 \\ \\
   * Extract Aperiodic Measures from Individual Files   * Extract Aperiodic Measures from Individual Files
-    * [[https://github.com/LabNeuroCogDevel/7T_EEG/blob/main/Aperiodic_MRS_Development/03_ExtractFOOOFmeasures.py|03_ExtractFOOOFmeasures.py]] will load in each individual persons npz files and select the desired measures (exponent, offset, error and/or peak information) and save out one csv file with all subject, all channel information. This information is then loaded into merge7T by Will Foran+    * [[https://github.com/LabNeuroCogDevel/Aperiodic_MRS_Development/blob/main/03_ExtractFOOOFmeasures.py|03_ExtractFOOOFmeasures.py]] will load in each individual persons npz files and select the desired measures (exponent, offset, error and/or peak information) and save out one csv file with all subject, all channel information. This information is then loaded into merge7T by Will Foran
  
  
 \\ \\
   * Create Dataframes for Paper Analyses   * Create Dataframes for Paper Analyses
-    * [[https://github.com/LabNeuroCogDevel/7T_EEG/blob/main/Aperiodic_MRS_Development/04_CreateFOOOFdataframes.R| 04_CreateFOOOFdataframes.R]] loads in the merge7T file and extracts out the wanted ages, fooof info, behavioral, and MRS measures that will be used to create figures and statistics for publication. Note, MRS and behavioral measures were previously calculated for these participants. +    * [[https://github.com/LabNeuroCogDevel/Aperiodic_MRS_Development/blob/main/04_CreateFOOOFdataframes.R| 04_CreateFOOOFdataframes.R]] loads in the merge7T file and extracts out the wanted ages, fooof info, behavioral, and MRS measures that will be used to create figures and statistics for publication. Note, MRS and behavioral measures were previously calculated for these participants. 
  
 \\ \\
  
   * Figures and Statistics   * Figures and Statistics
-    * [[https://github.com/LabNeuroCogDevel/7T_EEG/blob/main/Aperiodic_MRS_Development/05_FOOOFMRSPaper.Rmd| 05_FOOOFMRSPaper.Rmd]]+    * [[https://github.com/LabNeuroCogDevel/Aperiodic_MRS_Development/blob/main/05_FOOOFMRSPaper.Rmd| 05_FOOOFMRSPaper.Rmd]]
     * To assess developmental trajectories of aperiodic activity, we implemented GAMMs on aperiodic parameter (exponent and offset), including random intercepts estimated for each participant. Regression splines were implemented (4 degrees of freedom) to assess linear and non-linear effects (Wood, 2017, Wood, 2013). We first tested for a main effect of age on aperiodic parameter while controlling for hemisphere (either ‘right’ or ‘left’ DLPFC) and condition (eyes open or eyes closed during resting state). We additionally tested for age-by-hemisphere interactions while controlling for condition, and age-by-condition interactions while controlling for region. Correlations between the exponent and the offset, for both the eyes open and eyes closed conditions were calculated using Pearson correlations.     * To assess developmental trajectories of aperiodic activity, we implemented GAMMs on aperiodic parameter (exponent and offset), including random intercepts estimated for each participant. Regression splines were implemented (4 degrees of freedom) to assess linear and non-linear effects (Wood, 2017, Wood, 2013). We first tested for a main effect of age on aperiodic parameter while controlling for hemisphere (either ‘right’ or ‘left’ DLPFC) and condition (eyes open or eyes closed during resting state). We additionally tested for age-by-hemisphere interactions while controlling for condition, and age-by-condition interactions while controlling for region. Correlations between the exponent and the offset, for both the eyes open and eyes closed conditions were calculated using Pearson correlations.
     * To assess age-related change in the Glu/GABA ratio and the Glu-GABA asymmetry in right and left DLPFC, we used GAMM models, including random intercepts estimated for each participant. Regression splines were implemented (4 degrees of freedom) to assess linear and non-linear effects (Wood, 2017, Wood, 2013). We first tested for a main effect of age on the MRS measure while controlling for hemisphere (either ‘right’ or ‘left’ DLPFC), and perfect grey matter from the MRI voxel. We additionally tested for age-by-hemisphere interactions while controlling for fraction of grey matter. For further analysis, fraction of gray matter in the voxel was residualized out of MRSI estimates to control for the effect of gray matter.     * To assess age-related change in the Glu/GABA ratio and the Glu-GABA asymmetry in right and left DLPFC, we used GAMM models, including random intercepts estimated for each participant. Regression splines were implemented (4 degrees of freedom) to assess linear and non-linear effects (Wood, 2017, Wood, 2013). We first tested for a main effect of age on the MRS measure while controlling for hemisphere (either ‘right’ or ‘left’ DLPFC), and perfect grey matter from the MRI voxel. We additionally tested for age-by-hemisphere interactions while controlling for fraction of grey matter. For further analysis, fraction of gray matter in the voxel was residualized out of MRSI estimates to control for the effect of gray matter.