Skip to content

Commit 5eda8ea

Browse files
Jenny ChenJenny Chen
authored andcommitted
rpe_all bug fix: consistent naming for eddy scratch part 2
1 parent 6cc0fc7 commit 5eda8ea

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/designer_func_wrappers.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -672,17 +672,19 @@ def run_eddy(shell_table, dwi_metadata):
672672
run.command('mrconvert -export_grad_mrtrix grad.txt working.mif tmp.mif', show=False)
673673
run.command('mrconvert -strides -1,+2,+3,+4 -grad grad.txt ' + app.ARGS.rpe_all + ' dwirpe.mif', show=False)
674674
run.command('mrcat -axis 3 working.mif dwirpe.mif dwipe_rpe.mif')
675-
run.command('dwifslpreproc -nocleanup -eddy_options "%s" -rpe_all -pe_dir "%s" "%s" "%s"' %
676-
(eddyopts,
675+
run.command('dwifslpreproc -nocleanup -scratch "%s" -eddy_options "%s" -rpe_all -pe_dir "%s" "%s" "%s"' %
676+
('eddy_processing',
677+
eddyopts,
677678
pe_dir,
678679
'dwi_pre_eddy_' + str(i) + '.mif',
679680
'dwi_post_eddy_' + str(i) + '.mif'))
680681
run.function(os.remove,'tmp.mif')
681682

682683
elif app.ARGS.rpe_header:
683684

684-
run.command('dwifslpreproc -nocleanup -eddy_options "%s" -rpe_header "%s" "%s"' %
685-
(eddyopts,
685+
run.command('dwifslpreproc -nocleanup -scratch "%s" -eddy_options "%s" -rpe_header "%s" "%s"' %
686+
('eddy_processing',
687+
eddyopts,
686688
'dwi_pre_eddy_' + str(i) + '.mif',
687689
'dwi_post_eddy_' + str(i) + '.mif'))
688690

0 commit comments

Comments
 (0)