Skip to content
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

mrconvert: fslgrad and RealignTransform: 0 #2477

Open
bjeurissen opened this issue May 23, 2022 · 2 comments
Open

mrconvert: fslgrad and RealignTransform: 0 #2477

bjeurissen opened this issue May 23, 2022 · 2 comments
Labels

Comments

@bjeurissen
Copy link
Member

I noticed that running mrconvert data.nii.gz -fslgrad bvecs bvals dwi.mif with RealignTransform: 0 in the config file can lead to a mif file with incorrectly oriented gradient directions (e.g. on the HCP data).

Not sure how big a deal this is, but at least it was unexpected.

@bjeurissen bjeurissen added the bug label May 23, 2022
@Lestropie
Copy link
Member

This will be the use case where my hypothetical in #2416 actually causes a demonstrable problem.

@diagiraldo
Copy link

Something similar is happening vice versa, when I have RealignTransform: 0 in .mrtrix.conf and convert from mif to nifti with -strides -1,2,3,4 the resulting gradients are not correct, here the example:

mrconvert DWI.mif -strides -1,2,3,4 -export_grad_fsl bvecs.txt bvals.txt DWI.nii.gz 
dwiextract DWI.nii.gz -singleshell - -fslgrad bvecs.txt bvals.txt | amp2sh - sh_DWI.mif -force 

screenshot0000

I should say it doesn't happen with -strides 1,2,3,4:

mrconvert DWI.mif -strides 1,2,3,4 -export_grad_fsl bvecs.txt bvals.txt DWI.nii.gz 
dwiextract DWI.nii.gz -singleshell - -fslgrad bvecs.txt bvals.txt | amp2sh - sh_DWI.mif -force 

screenshot0001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

3 participants