Skip to content

Commit fc4009b

Browse files
committed
FIX: Do not reorient magnitude images
1 parent 03d02e1 commit fc4009b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sdcflows/workflows/gre.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ def init_magnitude_wf(omp_nthreads, name='magnitude_wf'):
6565
name='outputnode')
6666

6767
# Merge input magnitude images
68-
magmrg = pe.Node(IntraModalMerge(hmc=False), name='magmrg')
68+
# Do not reorient to RAS to preserve the validity of PhaseEncodingDirection
69+
magmrg = pe.Node(IntraModalMerge(hmc=False, to_ras=False), name='magmrg')
6970

7071
# de-gradient the fields ("bias/illumination artifact")
7172
n4_correct = pe.Node(ants.N4BiasFieldCorrection(dimension=3, copy_header=True),

0 commit comments

Comments
 (0)