# Dwipreproc run for too long time

**URL:** https://community.mrtrix.org/t/dwipreproc-run-for-too-long-time/2058
**Category:** Uncategorized
**Created:** [November 18, 2018, 11:28pm UTC](https://community.mrtrix.org/t/dwipreproc-run-for-too-long-time/2058 "2018-11-18T23:28:17Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![jdtournier](https://community.mrtrix.org/user_avatar/community.mrtrix.org/jdtournier/32/2594_2.png) [@jdtournier](https://community.mrtrix.org/u/jdtournier)
#### Post date: [November 20, 2018, 4:52pm UTC](https://community.mrtrix.org/t/dwipreproc-run-for-too-long-time/2058/2 "2018-11-20T16:52:59Z")

</div>

> [@Yixin\_Ma](#):
>
> I used the notation of i, j an k. (which I think it means 1st, 2nd and 3rd dimension of the volume, am I right?)

Yes, but if you’re in doubt, you can always use the anatomical labels such as `AP` instead.

> [@Yixin\_Ma](#):
>
> But it takes forever to run the code. (More than 12 hours, does it mean that I miss some parameters and make it unable to converge?)

This might be due to there being lots of _b_ =0 images, which `topup` takes ages to process – see [this recent thread](http://community.mrtrix.org/t/dwipreproc-topup-with-many-b0-up-down-reverse-phase-pairs/2047) on this issue.

> [@Yixin\_Ma](#):
>
> How important is to give correct PE direction, because if I give a wrong PE direction of k, the code won’t run for that long time.

Very. The distortion correction assumes the distortions are along that direction only. If you correct along the wrong direction, you’ll get the wrong correction.

> [@Yixin\_Ma](#):
>
> Is there any way to not to specify phase encoding direction?

Only if your data contain enough information in the right format for MRtrix3 to figure out the phase-encoding direction by itself. Otherwise, you’ll need to know. But the distortions are typically obvious enough that you figure out by simple looking at the data, right?

---

_[View the full topic](https://community.mrtrix.org/t/dwipreproc-run-for-too-long-time/2058)._
