-
Notifications
You must be signed in to change notification settings - Fork 29
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
Ordering of BVAL/BVEC in DTI data #90
Comments
@mcraig-ibme Thank you for creating this issue, and sorry for the long delay on this. In terms of finding the correct BVEC, |
I can confirm that the change in I would suggest, personally, a visual assessment using color FA maps as well as a sanity check using MRtrix's EDIT: Regarding the flip/permutation, I think this is a difference between XYZ orientation in the bvecs as I'm writing them and the orientation of the NIFTI (RPS?) |
The ordering of the BVECs produced for DTI data has changed in recent versions of brkraw, and the new code seems to be incorrect at least for some data sets
To Reproduce
Convert DTI data using current PyPi release of brkraw
Repeat conversion using current GitHub code
Expected behavior
BVALS/BVECS should match, or if not the new code should be correct if a bug has been fixed
Actual behaviour
These are the BVECs returned by the current PyPi release for a sample test data set:
These are the BVECs returned by the current Github code for the same data set:
The BVEC values in the newer code are scaled relative to the PyPi release which may not be a problem. However they are also in a different order - note that in the Github code all the zero vectors occur at the start of the list whereas in the PyPi code there are fewer at the start and others distributed through the list and at the end.
Comparison with the 4D DTI data shows that the PyPi release is consistent with the data (we see brighter images corresponding to zero BVECs at the exact positions of the zero vectors in the PyPi code, but not for the github code).
The cause seems to be a change to
_get_bdata
inloader.py
flagged as being made on 220201. The data set I previously sent regarding issue #88 can be used to demonstrate the problem.Please let me know if you need any further information.
The text was updated successfully, but these errors were encountered: