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

Incorrect number of words in bvecs file #5

Open
atbarr opened this issue Mar 9, 2017 · 5 comments
Open

Incorrect number of words in bvecs file #5

atbarr opened this issue Mar 9, 2017 · 5 comments

Comments

@atbarr
Copy link

atbarr commented Mar 9, 2017

I found your code after reading a paper on using ANTs to correct for susceptibility artifacts in diffusion images. I'm running into an issue when I run the motion_correct.sh script The script gives an error about the number of values in bvec file. However the text file contains 3 rows with 55 words each.

Could you provide some help into the issue I'm having. I've looked at the source code and as far as I can tell I'm meeting all of the criteria.

bvals_MJ0054.txt
bvecs_MJ0054.txt

" ERROR: bvecs file contains 165 words, it should be 3 x 55 = 165 words "

@danjonpeterson
Copy link
Owner

First of all, thank you for your interest!

Secondly, that certainly is confusing. I downloaded your files and ran them with a shortened diffusion run, and it seemed to work fine for me. Perhaps there is some difference between the way your computer is interpreting the conditional and mine. What shell are you running?

Alternately, since we have determined that your bvecs contains the correct number of lines, you COULD just comment out the offending line (#146) and see how that works. But I'd rather actually fix the problem if we can.

@bassamalfatly
Copy link

Hi Daniel, I also have a similar problem with the motion_correct.sh showing an error similar to the one above! any clue on that? I am using MacOS bash, thanks in advance. Bassam

@danjonpeterson
Copy link
Owner

HI Bassam - that's annoying! If there's some way you can send me the files, I'd be glad to take a look. This was developed on CentOS, so there may be some issue there - It could have something to do with strange whitespace. Again, you could also comment out the line, but that's unsatisfying. If lots of people are having this problem I'd rather fix it.

Thanks for your interest,
-Dan

@atbarr
Copy link
Author

atbarr commented Feb 18, 2021 via email

@bassamalfatly
Copy link

Hi Daniel, thanks for you reply, these are the bvals, bvecs, they are actually from a subject from the PPMI dataset, I have downloaded the DICOM images and imported them to nii, bvals bvecs using https://github.com/rordenlab/dcm2niix

dti_bvals.txt
dti_bvecs.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants