@@ -142,12 +142,12 @@ def init_dwi_preproc_wf(
142
142
'bvec_file' , 'bval_file' ]),
143
143
name = 'inputnode' )
144
144
inputnode .inputs .dwi_file = dwi_file
145
- inputnode .inputs .bvec_file = layout .get_bvec (bvec_file )
146
- inputnode .inputs .bval_file = layout .get_bval (bval_file )
145
+ inputnode .inputs .bvec_file = layout .get_bvec (dwi_file )
146
+ inputnode .inputs .bval_file = layout .get_bval (dwi_file )
147
147
148
148
outputnode = pe .Node (niu .IdentityInterface (
149
- fields = ['dwi_file ' , 'bvec_file ' , 'bval_file ' , 'rasb_file ' ,
150
- 'dwi_mask ' ]),
149
+ fields = ['out_dwi ' , 'out_bvec ' , 'out_bval ' , 'out_rasb ' ,
150
+ 'out_dwi_mask ' ]),
151
151
name = 'outputnode' )
152
152
153
153
summary = pe .Node (
@@ -159,8 +159,6 @@ def init_dwi_preproc_wf(
159
159
160
160
dwi_reference_wf = init_dwi_reference_wf (omp_nthreads = 1 , gen_report = True )
161
161
162
- # dwi_derivatives_wf = init_dwi_derivatives_wf()
163
-
164
162
# MAIN WORKFLOW STRUCTURE
165
163
workflow .connect ([
166
164
(inputnode , gradient_table , [
@@ -170,11 +168,12 @@ def init_dwi_preproc_wf(
170
168
(inputnode , dwi_reference_wf , [('dwi_file' , 'inputnode.dwi_file' )]),
171
169
(gradient_table , dwi_reference_wf , [('b0_ixs' , 'inputnode.b0_ixs' )]),
172
170
(dwi_reference_wf , outputnode , [
173
- ('outputnode.dwi_file' , 'dwi_file ' ),
174
- ('outputnode.dwi_mask' , 'dwi_mask ' )]),
171
+ ('outputnode.dwi_file' , 'out_dwi ' ),
172
+ ('outputnode.dwi_mask' , 'out_dwi_mask ' )]),
175
173
(gradient_table , outputnode , [
176
- ('bvec_file' , 'bvec_file' ),
177
- ('bval_file' , 'bval_file' )])
174
+ ('out_bvec' , 'out_bvec' ),
175
+ ('out_bval' , 'out_bval' ),
176
+ ('out_rasb' , 'out_rasb' )])
178
177
])
179
178
180
179
# REPORTING
0 commit comments