37
37
from nibabies import config
38
38
from nibabies .interfaces import DerivativesDataSink
39
39
from nibabies .workflows .anatomical .brain_extraction import init_infant_brain_extraction_wf
40
- from nibabies .workflows .anatomical .outputs import init_anat_reports_wf
40
+ from nibabies .workflows .anatomical .outputs import init_anat_reports_wf , init_coreg_report_wf
41
41
from nibabies .workflows .anatomical .preproc import init_anat_preproc_wf , init_csf_norm_wf
42
42
from nibabies .workflows .anatomical .registration import (
43
43
init_concat_registrations_wf ,
@@ -768,6 +768,8 @@ def init_infant_anat_fit_wf(
768
768
run_without_submitting = True ,
769
769
)
770
770
771
+ coreg_report_wf = init_coreg_report_wf (output_dir = output_dir )
772
+
771
773
workflow .connect ([
772
774
(t1w_validate , coregistration_wf , [
773
775
('out_file' , 'inputnode.in_t1w' ),
@@ -792,6 +794,12 @@ def init_infant_anat_fit_wf(
792
794
('outputnode.t1w2t2w_xfm' , 't1w2t2w_xfm' ),
793
795
('outputnode.t2w2t1w_xfm' , 't2w2t1w_xfm' ),
794
796
]),
797
+ (coregistration_wf , coreg_report_wf , [
798
+ ('outputnode.t1w_preproc' , 'inputnode.t1w_preproc' ),
799
+ ('outputnode.t2w_preproc' , 'inputnode.t2w_preproc' ),
800
+ ('outputnode.t1w_mask' , 'inputnode.in_mask' ),
801
+ ]),
802
+ (sourcefile_buffer , coreg_report_wf , [('anat_source_files' , 'inputnode.source_file' )]),
795
803
]) # fmt:skip
796
804
797
805
if probmap :
0 commit comments