Hello AFNI experts!
I am using AFNI for multi-echo resting-state fMRI preprocessing and have summarized the key steps of my pipeline below. Could you please advise: (1) if there is anything (e.g. steps' order/parameters) in my workflow that might be inappropriate? (2) As shown in my pipeline, whether estimating motion from the first echo (e01) with AFNI’s volreg
, applying it to all echoes before tedana, and later using these parameters for regression on the tedana-denoised BOLD is best practice? I’ve noticed that some people re-estimate motion parameters on the tedana -denoised combined BOLD after tedana, then regress it again which I don't think it make sense to me. Looking forward to your comments, thank you so much!
Stage 1 — Anatomical preprocessing (@SSwarper)
• Input: subject T1-weighted image.
• Steps: skull stripping, bias-field correction, nonlinear registration to MNI152_2009_template_SSW.nii.gz.
• Key outputs:
– anatSS (skull-stripped T1 in native space)
– anatQQ (T1 in MNI space)
– native↔MNI nonlinear warp fields (used later for normalization)
Stage 2 — AFNI preprocessing for multi-echo EPI
• Command: afni_proc.py with blocks (in order): blip tshift align volreg mask combine regress; discard first 5 TRs; AP/PA SE-EPI for blip; alignment with -cost lpc+ZZ -giant_move -check_flip.
• Motion correction: ran volreg (aligned to MIN_OUTLIER with epi→anat: -volreg_align_to MIN_OUTLIER -volreg_align_e2a). The volreg-resampled echoes (pb03.*.e01/e02/e03) and AFNI full mask were used as inputs to tedana.
• Combine (QC-only, not used downstream): kept a mean combine so AFNI treats data as multi-echo (not multi-run); did not use AFNI’s mean-combined output for analysis.
• Regress (QC-only, not used downstream): included the regress block only to produce AFNI’s HTML review/derived files. Did not use AFNI’s regressed time series or stats downstream.
• Tissue masks: WM/CSF segmented on the native T1 (anatSS) for later nuisance regression.
Stage 2b — Multi-echo ICA denoising (tedana)
• Inputs: three volreg outputs (pb03.*.e01/e02/e03) concatenated --fittype curvefit, --tedpca mdl.
• Output: tedana_desc-denoised_bold.nii.gz (carried forward for normalization).
Stage 3 — Post-processing in standard space
• Normalization: warped the tedana-denoised time series to MNI using the epi→anat affine plus the @SSwarper nonlinear warp (3dNwarpApply).
• Detrending: performed in 3dTproject with -polort 2.
• Nuisance regression (3dTproject in MNI):
– Motion: AFNI volreg estimates (demeaned + first derivatives) from Stage 2.
– Physio: mean WM and mean CSF signals extracted from the tedana-denoised BOLD in MNI space, using WM/CSF masks segmented on the native T1 (anatSS) and NN-warped to MNI (3dmaskave to compute means).
– Global signal: not regressed (matching the brain variability metrics–focused literature I followed).
• Censoring & temporal filtering: applied AFNI censor file (FD threshold 0.3 mm) and band-pass 0.01–0.1 Hz.
• Smoothing: 3dBlurInMask in MNI space, FWHM = 4 mm.
• Final output: regressed, smoothed NIfTI in MNI space + AFNI QC HTML.