14.2.11. Chen et al. (2016). Untangling the Relatedness among Correlations, Part II: …

Introduction

Here we present commands used in the following paper:

Abstract: It has been argued that naturalistic conditions in FMRI studies provide a useful paradigm for investigating perception and cognition through a synchronization measure, inter-subject correlation (ISC). However, one analytical stumbling block has been the fact that the ISC values associated with each single subject are not independent, and our previous paper (Chen et al., 2016) used simulations and analyses of real data to show that the methodologies adopted in the literature do not have the proper control for false positives. In the same paper, we proposed nonparametric subject-wise bootstrapping and permutation testing techniques for one and two groups, respectively, which account for the correlation structure, and these greatly outperformed the prior methods in controlling the false positive rate (FPR); that is, subject-wise bootstrapping (SWB) worked relatively well for both cases with one and two groups, and subject-wise permutation (SWP) testing was virtually ideal for group comparisons. Here we seek to explicate and adopt a parametric approach through linear mixed-effects (LME) modeling for studying the ISC values, building on the previous correlation framework, with the benefit that the LME platform offers wider adaptability, more powerful interpretations, and quality control checking capability than nonparametric methods. We describe both theoretical and practical issues involved in the modeling and the manner in which LME with crossed random effects (CRE) modeling is applied. A data-doubling step further allows us to conveniently track the subject index, and achieve easy implementations. We pit the LME approach against the best nonparametric methods, and find that the LME framework achieves proper control for false positives. The new LME methodologies are shown to be both efficient and robust, and they will be publicly available in AFNI (http://afni.nimh.nih.gov).

Study keywords: naturalistic, EPI, MPRAGE, human, control, adult, Talairach space, nonlinear align, FreeSurfer, fANATICOR

Main programs: recon-all (FS), @SUMA_Make_Spec_FS, afni_proc.py

Download scripts

To download, either:

  • ... click the link(s) in the following table (perhaps Rightclick -> “Save Link As…”):

    s.2016_ChenEtal_01_init.tcsh

    FreeSurfer segmentation with recon-all; @SUMA_Make_Spec_FS; tissue selection

    s.2016_ChenEtal_02_ap.tcsh

    afni_proc.py command

  • ... or copy+paste into a terminal:

    curl -O https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/codex/fmri/media/2016_ChenEtal/s.2016_ChenEtal_01_init.tcsh
    curl -O https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/codex/fmri/media/2016_ChenEtal/s.2016_ChenEtal_02_ap.tcsh
    

View scripts

s.2016_ChenEtal_01_init.tcsh

 1#!/bin/tcsh
 2
 3# --------------------------------------------------------------------
 4# Script: s.2016_ChenEtal_01_init.tcsh
 5#
 6# From:
 7# Chen GC, Taylor PA, Shin Y-W, Reynolds RC, Cox RW (2016). Untangling
 8# the Relatedness among Correlations, Part II: Inter-Subject
 9# Correlation Group Analysis through Linear Mixed-Effects
10# Modeling. Neuroimage (in press).
11#
12# Originally run using: AFNI_16.1.16
13#
14# ** Note: this code is a "fixed" version, with the selection of WM
15# ** regions updated *not* to include voxels with value '16' in line 34.
16#
17# --------------------------------------------------------------------
18
19
20# Commands run prior to afni_proc.py, each in appropriate 
21# directories for the data sets for each subject
22
23# Run FreeSurfer on the anatomical, and then use
24# SUMA to convert the FS output to NIFTI for AFNI to use.
25recon-all -all -subject $subj -i $anat
26@SUMA_Make_Spec_FS -sid $subj -NIFTI
27
28# Select the ventricle maps from the FS output.
293dcalc -a aparc+aseg.nii -datum byte -prefix FSmask_vent.nii \
30     -expr 'amongst(a,4,43)'
31
32# Select the WM maps from the FS output. 
333dcalc -a aparc+aseg.nii -datum byte -prefix FSmask_WM.nii \
34     -expr 'amongst(a,2,7,41,46,251,252,253,254,255)'

s.2016_ChenEtal_02_ap.tcsh

 1#!/bin/tcsh
 2
 3# --------------------------------------------------------------------
 4# Script: s.2016_ChenEtal_02_ap.tcsh
 5#
 6# From:
 7# Chen GC, Taylor PA, Shin Y-W, Reynolds RC, Cox RW (2016). Untangling
 8# the Relatedness among Correlations, Part II: Inter-Subject
 9# Correlation Group Analysis through Linear Mixed-Effects
10# Modeling. Neuroimage (in press).
11#
12# Originally run using: AFNI_16.1.16
13# --------------------------------------------------------------------
14
15
16# FMRI processing script, ISC movie data.
17# Assumes previously run FS and SUMA commands, respectively: 
18# $ recon-all -all -subject $subj -i $anat
19# $ @SUMA_Make_Spec_FS -sid $subj -NIFTI
20
21# Set top level directory structure
22set subj    = $1
23set topdir  = TOP_LEVEL_FILE_LOCATION
24set task    = movie
25set fsroot  = $topdir/freesurfer/subjects
26set outroot = $topdir/subject_results/$task.6
27
28# Input directory: unprocessed FMRI data
29set indir   = $topdir/orig.data
30# Input directory: FreeSurfer + @SUMA_MakeSpec_FS results
31set fsindir = $fsroot/$subj/SUMA
32
33# Output directory: name for output
34set outdir  = $outroot/$subj
35
36# Input data: list of partitioned EPIs (movie clips)
37set epi_dpattern = "movie*.HEAD"
38
39# Input data: FreeSurfer results (anatomy, ventricle and WM maps)
40set fsanat = ${subj}_SurfVol.nii
41set fsvent = FSmask_vent.nii
42set fswm   = FSmask_WM.nii
43
44afni_proc.py -subj_id $subj.$task                                       \
45    -blocks despike tshift align tlrc volreg blur mask regress          \
46    -copy_anat $fsindir/$fsanat                                         \
47    -anat_follower_ROI aaseg  anat $fsindir/aparc.a2009s+aseg_rank.nii  \
48    -anat_follower_ROI aeseg  epi  $fsindir/aparc.a2009s+aseg_rank.nii  \
49    -anat_follower_ROI FSvent epi  $fsindir/$fsvent                     \
50    -anat_follower_ROI FSWMe  epi  $fsindir/$fswm                       \
51    -anat_follower_erode FSvent FSWMe                                   \
52    -dsets $epi_dpattern                                                \
53    -tcat_remove_first_trs 0                                            \
54    -tlrc_base TT_N27+tlrc                                              \
55    -tlrc_NL_warp                                                       \
56    -volreg_align_to MIN_OUTLIER                                        \
57    -volreg_align_e2a                                                   \
58    -volreg_tlrc_warp                                                   \
59    -regress_ROI_PC FSvent 3                                            \
60    -regress_make_corr_vols aeseg FSvent                                \
61    -regress_anaticor_fast                                              \
62    -regress_anaticor_label FSWMe                                       \
63    -regress_censor_motion 0.2                                          \
64    -regress_censor_outliers 0.1                                        \
65    -regress_apply_mot_types demean deriv                               \
66    -regress_est_blur_epits                                             \
67    -regress_est_blur_errts                                             \
68    -regress_run_clustsim no