# SynB0 issue

**URL:** <https://community.mrtrix.org/t/synb0-issue/5383>\
**Category:** Uncategorized\
**Created:** [November 17, 2021, 4:35pm UTC](https://community.mrtrix.org/t/synb0-issue/5383 "2021-11-17T16:35:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![XL258W](https://community.mrtrix.org/user_avatar/community.mrtrix.org/xl258w/32/5300_2.png) [@XL258W](https://community.mrtrix.org/u/XL258W)\
**Post date:** [November 17, 2021, 4:35pm UTC](https://community.mrtrix.org/t/synb0-issue/5383/1 "2021-11-17T16:35:06Z")

</div>

Hi all,

I’m using SynB0 and dwifslpreproc [#2266](https://github.com/MRtrix3/mrtrix3/pull/2266). After running SynB0, the topup files were fed into dwifslpreproc #2266 as follows, which ran without error, but it seems distortion still visible in the output files.

`dwifslpreproc Diffusion_denoise_unr.nii.gz Diffusion_denoise_unr_eddy.nii.gz -rpe_none -pe_dir AP -fslgrad bvec.bvecs bval.bvals -eddy_options=" --topup=topup"`

The outputs of synB0 (distortion was corrected)  
 ![Screenshot (20)](https://community.mrtrix.org/uploads/default/original/2X/e/e32f14e32ac22b61b43b7a7e1d752df75d752c79.png)

The output of _dwifslpreproc_ (seems still distorted, but differs a bit from the eddy output if I don’t feed any topup file)  
 ![Screenshot (19)](https://community.mrtrix.org/uploads/default/original/2X/1/139ed8104601e66ea32ee171fb253ed79b706eb7.png)

Did I miss some steps? Any help would be highly apreciated!

---

<div class="post-metadata">

**Author:** ![rsmith](https://community.mrtrix.org/user_avatar/community.mrtrix.org/rsmith/32/2672_2.png) [@rsmith](https://community.mrtrix.org/u/rsmith)\
**Post date:** [December 4, 2021, 1:38am UTC](https://community.mrtrix.org/t/synb0-issue/5383/2 "2021-12-04T01:38:06Z")

</div>

Hi @XL258W,

There’s too many variables at play here to diagnose where a problem may be, if indeed there is one; so it would require more experimentation.

E.g.:

- Is there an error (relative to reality) in the inhomogeneity field estimate, which is not visible when considering only the _b_=0 data but when examining the DWI data it’s clear there’s a residual error?

- Is there an error in estimation of motion in that DWI volume, such that the inhomogeneity field correction is applied incorrectly?

- Is the output of SynB0 being interpreted incorrectly by `dwifslpreproc`? What happens if you pass the output of that tool directly to `eddy` and bypass _MRtrix3_ entirely?

Rob

---

<div class="post-metadata">

**Author:** ![XL258W](https://community.mrtrix.org/user_avatar/community.mrtrix.org/xl258w/32/5300_2.png) [@XL258W](https://community.mrtrix.org/u/XL258W)\
**Post date:** [December 6, 2021, 3:46pm UTC](https://community.mrtrix.org/t/synb0-issue/5383/3 "2021-12-06T15:46:05Z")

</div>

Thank you very much for the help, Rob. I will check those points!

---

<div class="post-metadata">

**Author:** ![iPsych](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/i/e19b73/32.png) [@iPsych](https://community.mrtrix.org/u/iPsych)\
**Post date:** [October 28, 2023, 6:05am UTC](https://community.mrtrix.org/t/synb0-issue/5383/4 "2023-10-28T06:05:11Z")

</div>

@rsmith  
Thank you for continuous improvement of dwifslpreproc.  
Since the 3.1 is not yet released, Is there any good recommendation to adopt the result of synb0disco result to dwifslpreproc? It seems one of the best option for recover distortion of single-direction-only DWI image.

---

<div class="post-metadata">

**Author:** ![j-tseng](https://community.mrtrix.org/user_avatar/community.mrtrix.org/j-tseng/32/3096_2.png) [@j-tseng](https://community.mrtrix.org/u/j-tseng)\
**Post date:** [December 12, 2023, 3:07pm UTC](https://community.mrtrix.org/t/synb0-issue/5383/5 "2023-12-12T15:07:49Z")

</div>

The `dev` branch of MRtrix3 has a `-topup_files` option that allows you to specify the synb0 outputs. It’s a bit tricky as you will need to compile the dev branch from source vs. the more convenient installation strategies.
