-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More robust bvecs/bvals compatibility #2602
base: master
Are you sure you want to change the base?
Conversation
Where the gradient direction vector is zero, but the b-value is non-zero, when FSL's "eddy" attempts to rotate the directions of b>0 volumes according to subject rotation, this results in corrupted gradient directions. This change prevents such data from reaching "eddy" within dwifslpreproc, by detecting volumes where the gradient vector is zero and the b-value is non-zero but is classified by MRtrix3 as non-zero based on BZeroThreshold and forcing the value within the bvals file to be zero. Relates to #2577.
@Lestropie generating a Singularity image for that branch to test today. |
That works. |
Scope of PR has been expanded from just "clamp b-values interpreted by MRtrix3 as b=0 to a value of 0 when exporting bvals" to "change bvecs&bvals import/export for more robust interplay with FSL", closing #2577 in the process. The new tests (here attributed to |
6e90b23
to
ecaacef
Compare
Potential solution to #2577. Not a unique solution, but works for me, and the warning message is generated appropriately.
@araikes want to test?