Hello!
I am trying to run the dwifslpreproc but got a “No diffusion gradient table found”. I looked it up online and it mentioned that I have to provide this information using one of the command-line options (-grad or -fslgrad). I tried to do this but didn’t get anything again. Here is my script:
Akilas-MacBook-Air:sub_01 akilasekar$ mrconvert sub1.dwi.nii dwi.mif
mrconvert: [100%] copying from "sub1.dwi.nii" to "dwi.mif"
Akilas-MacBook-Air:sub_01 akilasekar$ dwifslpreproc dwi.mif dwi_pp.mif -rpe_none -pe_dir j
dwifslpreproc:
dwifslpreproc: Note that this script makes use of commands / algorithms that have relevant articles for citation; INCLUDING FROM EXTERNAL SOFTWARE PACKAGES. Please consult the help page (-help option) for more information.
dwifslpreproc:
dwifslpreproc: Generated scratch directory: /Users/akilasekar/Desktop/Cambridge/Data/sub_01/dwifslpreproc-tmp-GO6P6T/
Command: mrconvert /Users/akilasekar/Desktop/Cambridge/Data/sub_01/dwi.mif /Users/akilasekar/Desktop/Cambridge/Data/sub_01/dwifslpreproc-tmp-GO6P6T/dwi.mif -json_export /Users/akilasekar/Desktop/Cambridge/Data/sub_01/dwifslpreproc-tmp-GO6P6T/dwi.json
dwifslpreproc: Changing to scratch directory (/Users/akilasekar/Desktop/Cambridge/Data/sub_01/dwifslpreproc-tmp-GO6P6T/)
dwifslpreproc: [ERROR] No diffusion gradient table found
Akilas-MacBook-Air:sub_01 akilasekar$ dwifslpreproc dwi.mif dwi_pp.mif -fslgrad dwi.mif.bvec dw.mif.bval -nocleanup -pe_dir j -rpe_none
dwifslpreproc:
dwifslpreproc: *Note that this script makes use of commands / algorithms that have relevant articles for citation; INCLUDING FROM EXTERNAL SOFTWARE PACKAGES. Please consult the help page (-help option) for more information.*
dwifslpreproc:
dwifslpreproc: *Generated scratch directory: /Users/akilasekar/Desktop/Cambridge/Data/sub_01/dwifslpreproc-tmp-353R1G/*
*Command:* mrconvert /Users/akilasekar/Desktop/Cambridge/Data/sub_01/dwi.mif /Users/akilasekar/Desktop/Cambridge/Data/sub_01/dwifslpreproc-tmp-353R1G/dwi.mif -fslgrad /Users/akilasekar/Desktop/Cambridge/Data/sub_01/dwi.mif.bvec /Users/akilasekar/Desktop/Cambridge/Data/sub_01/dw.mif.bval -json_export /Users/akilasekar/Desktop/Cambridge/Data/sub_01/dwifslpreproc-tmp-353R1G/dwi.json
dwifslpreproc: **[ERROR] mrconvert /Users/akilasekar/Desktop/Cambridge/Data/sub_01/dwi.mif /Users/akilasekar/Desktop/Cambridge/Data/sub_01/dwifslpreproc-tmp-353R1G/dwi.mif -fslgrad /Users/akilasekar/Desktop/Cambridge/Data/sub_01/dwi.mif.bvec /Users/akilasekar/Desktop/Cambridge/Data/sub_01/dw.mif.bval -json_export /Users/akilasekar/Desktop/Cambridge/Data/sub_01/dwifslpreproc-tmp-353R1G/dwi.json** *(dwifslpreproc:182)*
dwifslpreproc: **[ERROR] Information from failed command:**
dwifslpreproc:
mrconvert: [ERROR] input file "/Users/akilasekar/Desktop/Cambridge/Data/sub_01/dwi.mif.bvec" for option "-fslgrad" not found
dwifslpreproc:
dwifslpreproc: **[ERROR] For debugging, inspect contents of scratch directory: /Users/akilasekar/Desktop/Cambridge/Data/sub_01/dwifslpreproc-tmp-353R1G/**
dwifslpreproc: *Scratch directory retained; location: /Users/akilasekar/Desktop/Cambridge/Data/sub_01/dwifslpreproc-tmp-353R1G/*
Thanks for the help!