Skip to content

Commit

Permalink
fix bug in -rpe_all: b0rpe2pe registration
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenny Chen committed Dec 12, 2024
1 parent 76ff609 commit 9043865
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/designer_func_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,8 @@ def run_eddy(shell_table, dwi_metadata):

run.command('mrconvert -strides -1,+2,+3,+4 -grad grad.txt "%s" dwirpe.mif' % (app.ARGS.rpe_all))
run.command('dwiextract -bzero dwirpe.mif - | mrconvert -coord 3 0 - b0rpe.nii')
run.command('flirt -in b0rpe.nii -ref b0pe.mif -dof 6 -out b0rpe2pe.nii.gz')
run.command('mrconvert b0pe.mif b0pe.nii')
run.command('flirt -in b0rpe.nii -ref b0pe.nii -dof 6 -out b0rpe2pe.nii.gz')
run.command('mrcat -axis 3 b0pe.mif b0rpe2pe.nii.gz b0_pair_topup.nii')

# if any of the image dims are odd dont subsample during topup. might be better off changing this to padding so topup doesnt take forever
Expand Down

0 comments on commit 9043865

Please sign in to comment.