Dear MRtrix experts,
I am running into a problem with dwifslpreproc, which probably has to do primarily with a problem in my DW encoding scheme.
The error I get when attempting to run the command:
dwifslpreproc degibbs.mif geomcorr_eddy.mif -rpe_none -pe_dir AP -eddy_options " --slm=linear --repol " -eddyqc_all eddyqc/
is the following:
Command: eddy --imain=eddy_in.nii --mask=eddy_mask.nii --acqp=eddy_config.txt --index=eddy_indices.txt --bvecs=bvecs --bvals=bvals --slm=linear --repol --out=dwi_post_eddy --verbose libc++abi.dylib: terminating with uncaught exception of type EDDY::EddyException: eddy: msg=DiffPara::DiffPara: b-value must be non-negative dwifslpreproc: [ERROR] eddy* --imain=eddy_in.nii --mask=eddy_mask.nii --acqp=eddy_config.txt --index=eddy_indices.txt --bvecs=bvecs --bvals=bvals --slm=linear --repol --out=dwi_post_eddy --verbose (app.py:197) dwifslpreproc: [ERROR] Information from failed command: dwifslpreproc: ========= eddy_cuda ========= ==== eddy ==== Reading images eddy: msg=DiffPara::DiffPara: b-value must be non-negative ========= eddy_cuda ========= dyld: Library not loaded: @rpath/libcudart.7.5.dylib Referenced from: /usr/local/fsl/bin/eddy_cuda Reason: image not found ==== eddy ==== libc++abi.dylib: terminating with uncaught exception of type EDDY::EddyException: eddy: msg=DiffPara::DiffPara: b-value must be non-negative
The problem is indeed that some of the b0 volumes have a negative b-value. Here is the output of mrinfo -dwgrad
:
0 0 0 -16383
-0.861795269114119 0.357031917905849 0.360329188005903 1000
-0.861622250494381 -0.357672261897667 0.360107831797651 1000
-0.863377119710764 -0.358428262504469 -0.355118472904427 1000
-0.863553414721423 0.357784876108876 -0.355338546108815 1000
-0.358433740402349 0.358433590402349 -0.86200383700565 1000
-0.357784872306874 0.86355340551659 -0.355338572306827 1000
-0.357032025696173 0.861795191890763 0.360329265896138 1000
-0.356348114390319 0.356348234390319 0.863731414976535 1000
-0.356129876497093 -0.356988786397086 0.863556898792952 1000
-0.356767176596269 -0.862016491890984 0.360062146596234 1000
-0.357517273407207 -0.863773455617413 -0.355072973607158 1000
-0.358433740402349 -0.358433590402349 -0.86200383700565 1000
0 0 0 -16383
-0.842678153857924 -0.216424400689194 -0.493005078875384 1995
0.87492211008887 -0.124921648598411 -0.467873789594048 1995
-0.111009188705875 0.97046373365136 -0.214189406111335 2000
0.846872030113457 -0.311775980004954 0.430817250006846 2005
-0.219743532700669 0.544028431401656 0.809781356702465 2005
-0.902910108534189 0.425803899316123 0.0586887999022223 2000
-0.154940155996924 0.37525222879255 -0.913881454481856 1990
-0.532461034809397 0.115926339802046 0.838478580614798 2005
-0.0452936001497172 -0.761383592595246 0.646717492195962 2005
0.626120730127172 -0.609536209026452 -0.486249361121102 1995
0.598249170398451 -0.795526370397941 0.0961026748797512 2000
0.611741447191967 0.658149324691358 0.438875686494237 2005
0.577350209189624 -0.577350329189624 0.577350269189624 5
-0.316863415295032 -0.945191936585182 -0.0788021513787646 2000
-0.141865749993124 -0.805595819960953 -0.575229939972119 1995
0.994247999031917 0.106629853103423 0.0100494202903226 2000
-0.781534420975464 -0.367090725788475 0.504428734184163 2005
-0.484843505605816 0.653662051007842 -0.581078908706971 1995
-0.805586364965754 -0.592035428374832 0.0229054607090263 2000
0.560370072178956 -0.0958044272064022 0.822682741969105 2005
0.0262364481002517 -0.0867375637308321 -0.995885658009554 1990
0.369541505610376 0.388290617410903 0.844197531423704 2005
-0.256061979500007 0.920461696300026 0.295266876400008 2000
0.385286919587153 0.384058639787194 -0.839078632072021 1995
0.477068153385919 0.788444198676729 -0.38828046898854 1995
0.577350209189624 -0.577350329189624 0.577350269189624 5
0 0 0 -16383
0.385983746502629 0.759484601905173 -0.523640799503567 2995
-0.762136051540026 0.647132948833986 -0.0191725187810069 3000
0.746466005324426 -0.322251245010545 0.58218780301905 3005
0.0101655505901426 0.197271211402767 0.980296246413748 3010
0.40683372907834 0.265410202885869 0.874095956453463 3010
0.104012291802266 0.166764058903633 -0.980495380821361 2990
0.724576528006702 0.599804098405548 -0.33944645910314 2995
-0.476709089118885 0.855588582033895 0.201783603507994 3000
0.184881998607796 0.979007652641282 0.0858059593536182 3000
0.713852437098488 -0.602379850098724 -0.357145928499244 2995
0.459866212784234 0.202673952393052 -0.86454978767036 2990
0.627130993400736 -0.0179671801000211 0.778706554200913 3010
0.577350209189624 -0.577350329189624 0.577350269189624 5
-0.466829618993068 0.363091754794608 -0.806371182788026 2990
-0.716723691411955 -0.310267214905175 -0.624532949910417 2995
0.833513685481386 -0.26913999239399 -0.482512798389225 2995
0.902148709193698 -0.351708945797543 0.249857006998255 3005
0.123776926903747 -0.935616930728323 -0.330605854910008 2995
0.933330132100929 0.336249144400335 -0.125822801600125 3000
-0.772691710629473 -0.634303123324195 -0.0246387513009398 3000
-0.143030485804879 -0.521349751117784 -0.841270894028698 2990
-0.695334673029167 0.0279851077111739 0.718141021130123 3005
0.0215612301695114 0.759780295982782 -0.649822295085274 2995
0.249740702113442 0.850216979145762 0.463422776824943 3005
-0.490448504705796 -0.854255643610096 0.172358810602037 3000
0.577350209189624 -0.577350329189624 0.577350269189624 5
0.503770723000055 0.838936931600091 0.205912319800022 3000
0.909343312114766 0.325936725905293 0.258572990504199 3005
0.961380221644481 0.000320769993914841 -0.275223484712734 2995
-0.167796476096209 0.985297837077737 -0.032132769249274 3000
-0.586588511525863 -0.470945219220764 0.65888126292905 3005
-0.141776046004628 -0.943730099830803 0.298785962609752 3005
-0.825594836976401 -0.245416429092985 0.508098358085477 3005
-0.995387536583265 0.00939013987284213 -0.0954750087083948 3000
-0.929368465287316 0.347535416995257 0.124472445398301 3000
-0.268301956094544 0.0829054487783142 -0.959760775880484 2990
0.367674706699034 -0.150883036299604 -0.91763261679759 2990
-0.244252223499957 -0.514733680599908 0.821821202799854 3010
0.577350209189624 -0.577350329189624 0.577350269189624 5
-0.0472568074484826 0.759757059075604 0.648487475079177 3005
-0.694760525678063 -0.599704403881064 -0.397067298987463 2995
0.118873460699291 -0.462994621797239 0.878353619294761 3010
-0.887254530720143 -0.00567486955712883 -0.461245264010471 2995
0.37258150748895 -0.670029575580127 0.642061825780957 3005
-0.575561814395987 0.413483765997117 0.705520923195082 3005
0.496037264299085 -0.850135303098432 0.176683329299674 3000
-0.443998803113935 -0.607671209619072 -0.658483685320667 2995
0.409444957908689 -0.726891269515426 -0.5513473576117 2995
0.215062927692957 -0.889992170470854 0.402071975686833 3005
-0.237676427211874 0.489156343724437 0.839187694941924 3010
-0.659282584587175 0.63024195618774 -0.410050667992023 2995
0.577350209189624 -0.577350329189624 0.577350269189624 5
I ran dwidenoise and mrdegibbs without encountering any error message.
Any suggestion on how to solve this issue? Is it something that can be revised in the post-processing or is it a “revise-your-sequence” kind of problem?
Please let me know if I need to provide any additional information
Thanks in advance!
Sam