@@ -385,9 +385,9 @@ def init_func_preproc_wf(bold_file, ignore, freesurfer,
385
385
if run_stc is True : # bool('TooShort') == True, so check True explicitly
386
386
bold_stc_wf = init_bold_stc_wf (name = 'bold_stc_wf' , metadata = metadata )
387
387
workflow .connect ([
388
- (bold_stc_wf , boldbuffer , [('outputnode.stc_file' , 'bold_file' )]),
389
388
(bold_reference_wf , bold_stc_wf , [('outputnode.bold_file' , 'inputnode.bold_file' ),
390
389
('outputnode.skip_vols' , 'inputnode.skip_vols' )]),
390
+ (bold_stc_wf , boldbuffer , [('outputnode.stc_file' , 'bold_file' )]),
391
391
])
392
392
else : # bypass STC from original BOLD to the splitter through boldbuffer
393
393
workflow .connect ([
@@ -415,10 +415,10 @@ def init_func_preproc_wf(bold_file, ignore, freesurfer,
415
415
416
416
# MAIN WORKFLOW STRUCTURE #######################################################
417
417
workflow .connect ([
418
- # BOLD buffer has slice-time corrected if it was run, original otherwise
419
- (boldbuffer , bold_split , [('bold_file' , 'in_file' )]),
420
418
# Generate early reference
421
419
(inputnode , bold_reference_wf , [('bold_file' , 'inputnode.bold_file' )]),
420
+ # BOLD buffer has slice-time corrected if it was run, original otherwise
421
+ (boldbuffer , bold_split , [('bold_file' , 'in_file' )]),
422
422
# HMC
423
423
(bold_reference_wf , bold_hmc_wf , [
424
424
('outputnode.raw_ref_image' , 'inputnode.raw_ref_image' ),
@@ -525,10 +525,14 @@ def init_func_preproc_wf(bold_file, ignore, freesurfer,
525
525
workflow .disconnect ([
526
526
(inputnode , bold_reference_wf , [
527
527
('bold_file' , 'inputnode.bold_file' )]),
528
+ (bold_reference_wf , boldbuffer , [
529
+ ('outputnode.bold_file' , 'bold_file' )]),
528
530
])
529
531
workflow .connect ([
530
532
(me_first_echo , bold_reference_wf , [
531
- ('first_image' , 'inputnode.bold_file' )])
533
+ ('first_image' , 'inputnode.bold_file' )]),
534
+ (inputnode , boldbuffer , [
535
+ ('bold_file' , 'bold_file' )]),
532
536
])
533
537
534
538
if t2s_coreg :
0 commit comments