FSL topup and eddy
FSL offers command line tools for susceptibility distortion and eddy current correction. This is often the first step in preparing diffusion data for analysis.
topup: Correcting for Susceptibility Distortion
1: Create the --imain file
fslroi sub-101_ses-01_acq-b1500_dir-ap_dwi.nii.gz AP_b0.nii.gz 0 1 \
fslroi sub-101_ses-01_acq-b1500_dir-pa_dwi.nii.gz PA_b0.nii.gz 0 1 \
fslmerge -t AP_PA_b0 AP_b0.nii.gz PA_b0.nii.gz2: Create the parameters file
0 -1 0 0.0903501
0 1 0 0.09035013: Run topup
eddy: Correcting for Eddy Current Distortion
1: Create the index file
2: Create a brain mask

3: Run eddy

Additional Resources
Last updated
Was this helpful?