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

[BUG] hcp 7t #76

Open
arnaudbore opened this issue Apr 27, 2023 · 2 comments
Open

[BUG] hcp 7t #76

arnaudbore opened this issue Apr 27, 2023 · 2 comments

Comments

@arnaudbore
Copy link
Contributor

arnaudbore commented Apr 27, 2023

No b0 found during Normalize_DWI process.
MRtrix dwinormalise fail :

Command:  dwiextract 100610__dwi_cropped.nii.gz -fslgrad 100610_dwi.bvec 100610_dwi.bval -bzero - | mrmath - mean - -axis 3 | mrstats - -mask fa_masked.nii.gz -output median

dwinormalise: [ERROR] dwiextract 100610__dwi_cropped.nii.gz -fslgrad 100610_dwi.bvec 100610_dwi.bval -bzero - | mrmath - mean - -axis 3 | mrstats - -mask fa_masked.nii.gz -output median (individual.py:66)
dwinormalise: [ERROR] Information from failed command:
dwinormalise:
              dwiextract: uncompressing image "100610__dwi_cropped.nii.gz"... [==================================================]
              dwiextract: [ERROR] No b=0 volumes present
              mrmath: [ERROR] no filename supplied to standard input (broken pipe?)
              mrmath: [ERROR] error opening image "-"
              mrstats: [ERROR] no filename supplied to standard input (broken pipe?)
              mrstats: [ERROR] error opening image "-"
@Ziqi-Hao
Copy link

Hi Arnaud,

I also encountered this issue. More specifically, I found the b0 of 7T is actually at a b-value of 15 (and all the b-values fluctuate at a level of 40 b-value deviation).

It's because of dwinormalise's default b0 tolerance is 10. https://mrtrix.readthedocs.io/en/latest/reference/config_file_options.html#cmdoption-arg-BZeroThreshold
I sloved the probelm by seting the "BZeroThreshold" to a higher b-vlaue. To achieve that, I created the config file at "~/.mrtrix.conf", within which I put a line of "BZeroThreshold: 20" . This solved my problem. But the drawback it that I need to set it manually.

Maybe we can add a feature in tractoflow, where if user provide specific b0 threshold, tractoflow pipeline will automatically create "~/.mrtrix.conf".

Best,
Ziqi

@arnaudbore
Copy link
Contributor Author

Thank you @Ziqi-Hao for your input, we are working on a brand new tractflow but it will take times to reach a release.
We'll let you know.

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

2 participants