FSL: flirt is used to compute an intial affine normalization of the T1 weighted images; this is then fed to fnirt to compute the overall transformation. flirt is also used to register the EPI’s to the subject’s structural image. This was then used along with fnirt-s warp in applywarp to normalize the EPIs.
Script for normalizing the T1-weighted structurals to the template:
Registering T1-structural to MNI152
bet my_structural my_betted_structural
flirt -ref ${FSLDIR}/data/standard/MNI152_T1_2mm_brain -in my_betted_structural -omat my_affine_transf.mat
fnirt –in=my_structural –aff=my_affine_transf.mat –cout=my_nonlinear_transf –config=T1_2_MNI152_2mm
applywarp –ref=${FSLDIR}/data/standard/MNI152_T1_2mm –in=my_structural –warp=my_nonlinear_transf –out=my_warped_structural
Registering functional data to MNI152 (via structural scan)
bet my_structural my_betted_structural
flirt -ref my_betted_structural -in my_functional -dof 7 -omat func2struct.mat
flirt -ref ${FSLDIR}/data/standard/MNI152_T1_2mm_brain -in my_betted_structural -omat my_affine_transf.mat
fnirt –in=my_structural –aff=my_affine_transf.mat –cout=my_nonlinear_transf –config=T1_2_MNI152_2mm
applywarp –ref=${FSLDIR}/data/standard/MNI152_T1_2mm –in=my_functional –warp=my_nonlinear_transf –premat=func2struct.mat –out=my_warped_functional