Code for preprocessing of functional and structural MRI data into standardized MNI space using SPM12.
- Code in /spm12_nondartel_1struct is for datasets that include only one structural scan (e.g. either T1 MPRAGE or T2 matched-bandwidth)
- Code for datasets that include two structural scans (e.g. T1 MPRAGE and T2 matched-bandwidth) may be developed in the future
Instructions:
Within each folder there is a wrapper script and a run function. All user-editable parameters are in an the epynomous section of the wrapper. Other sections of the wrapper script and run function shouldn't be edited unless you know what you're doing. Call only the wrapper as the wrapper will call the run function in either a for or parfor loop. Make sure to enable the "parallelize" variable in the wrapper if running 4+ subjects. A "runStatus" struc containg each subject's status will be saved in the folder specified in "batchDir" A text log of the matlab console output will be saved for predartel & dartel in the "batchDir" folder
1struct algorithm:
- Realign functionals to mean functional & unwarp
- Segment, bias-correct, and get MNI normalization deformation fields for structural
- Coregister functionals to bias-corrected structural grey matter
- Normalize functionals to MNI space using forward deformations from structural
- Smooth functionals using FWHM kernel
- Normalize bias-corrected structural from segmentation deformations