@@ -215,6 +215,11 @@ def _bold_reg_suffix(fallback):
215
215
# fmt: on
216
216
217
217
if "eddy" not in config .workflow .ignore :
218
+ from sdcflows .workflows .ancillary import init_brainextraction_wf
219
+
220
+ # Brain extraction not run just yet
221
+ brainextraction_wf = init_brainextraction_wf ()
222
+
218
223
# Eddy distortion correction
219
224
eddy_wf = init_eddy_wf (debug = config .execution .debug )
220
225
eddy_wf .inputs .inputnode .metadata = layout .get_metadata (str (dwi_file ))
@@ -240,17 +245,17 @@ def _bold_reg_suffix(fallback):
240
245
241
246
# fmt:off
242
247
workflow .connect ([
243
- (dwi_reference_wf , eddy_wf , [
244
- ("outputnode.dwi_file" , "inputnode.dwi_file" ),
245
- ("outputnode.dwi_mask" , "inputnode.dwi_mask" ),
246
- ]),
247
- (inputnode , eddy_wf , [
248
- ("in_bvec" , "inputnode.in_bvec" ),
249
- ("in_bval" , "inputnode.in_bval" )
248
+ (inputnode , eddy_wf , [("dwi_file" , "inputnode.dwi_file" ),
249
+ ("in_bvec" , "inputnode.in_bvec" ),
250
+ ("in_bval" , "inputnode.in_bval" )]),
251
+ (inputnode , ds_report_eddy , [("dwi_file" , "source_file" )]),
252
+ (dwi_reference_wf , brainextraction_wf , [
253
+ ("outputnode.epi_ref_file" , "inputnode.in_file" )]),
254
+ (brainextraction_wf , eddy_wf , [
255
+ ("outputnode.out_mask" , "inputnode.dwi_mask" ),
250
256
]),
251
- (dwi_reference_wf , eddy_report , [("outputnode.epi_ref_file " , "before" )]),
257
+ (brainextraction_wf , eddy_report , [("outputnode.out_file " , "before" )]),
252
258
(eddy_wf , eddy_report , [('outputnode.eddy_ref_image' , 'after' )]),
253
- (dwi_reference_wf , ds_report_eddy , [("outputnode.dwi_file" , "source_file" )]),
254
259
(eddy_report , ds_report_eddy , [("out_report" , "in_file" )]),
255
260
])
256
261
# fmt:on
0 commit comments