Trouble Running dwifslpreproc with Custom Phase-Encoding Directions!

Hi everyone,

I am working on preprocessing diffusion data using dwifslpreproc,.., but I am running into issues when specifying custom phase-encoding directions. My dataset was acquired with two opposite phase-encoding directions (AP and PA), and I have structured my inputs accordingly.

Here’s the command I am using:

dwifslpreproc dwi.mif dwi_preproc.mif -pe_dir AP -rpe_pair -se_epi b0_pair.mif -readout_time 0.058

However.., I am getting an error related to the eddy backend complaining about the PE directions not matching. I double-checked the metadata, and everything seems okay.

Has anyone run into something similar: ?? Could it be a mismatch in image dimensions or a BIDS conversion issue: ?? Any insights or suggestions would be hugely appreciated !! I have also gone through many thread like this https://community.mrtrix.org/t/dwifslpreproc-output-is-the-same-as-input-sap-fico-training-in-chennai but couldn’t get enough help.

Thanks in advance for your time and help.

Marcelo