@@ -115,8 +115,6 @@ def init_bold_reference_wf(omp_nthreads, bold_file=None, pre_mask=False,
115
115
116
116
gen_ref = pe .Node (EstimateReferenceImage (), name = "gen_ref" ,
117
117
mem_gb = 1 ) # OE: 128x128x128x50 * 64 / 8 ~ 900MB.
118
- # Re-run validation; no effect if no sbref; otherwise apply same validation to sbref as bold
119
- validate_ref = pe .Node (ValidateImage (), name = 'validate_ref' , mem_gb = DEFAULT_MEMORY_MIN_GB )
120
118
enhance_and_skullstrip_bold_wf = init_enhance_and_skullstrip_bold_wf (
121
119
omp_nthreads = omp_nthreads , pre_mask = pre_mask )
122
120
@@ -125,12 +123,11 @@ def init_bold_reference_wf(omp_nthreads, bold_file=None, pre_mask=False,
125
123
(inputnode , validate , [('bold_file' , 'in_file' )]),
126
124
(inputnode , gen_ref , [('sbref_file' , 'sbref_file' )]),
127
125
(validate , gen_ref , [('out_file' , 'in_file' )]),
128
- (gen_ref , validate_ref , [('ref_image' , 'in_file' )]),
129
- (validate_ref , enhance_and_skullstrip_bold_wf , [('out_file' , 'inputnode.in_file' )]),
126
+ (gen_ref , enhance_and_skullstrip_bold_wf , [('ref_image' , 'inputnode.in_file' )]),
130
127
(validate , outputnode , [('out_file' , 'bold_file' ),
131
128
('out_report' , 'validation_report' )]),
132
129
(gen_ref , outputnode , [('n_volumes_to_discard' , 'skip_vols' )]),
133
- (validate_ref , outputnode , [('out_file ' , 'raw_ref_image' )]),
130
+ (gen_ref , outputnode , [('ref_image ' , 'raw_ref_image' )]),
134
131
(enhance_and_skullstrip_bold_wf , outputnode , [
135
132
('outputnode.bias_corrected_file' , 'ref_image' ),
136
133
('outputnode.mask_file' , 'bold_mask' ),
0 commit comments