@@ -615,16 +615,6 @@ def init_func_preproc_wf(bold_file, has_fieldmap=False):
615615 name = "outputnode" ,
616616 )
617617
618- # apply BOLD registration to T1w
619- bold_t1_trans_wf = init_bold_t1_trans_wf (
620- name = "bold_t1_trans_wf" ,
621- freesurfer = freesurfer ,
622- mem_gb = mem_gb ["resampled" ],
623- omp_nthreads = omp_nthreads ,
624- use_compression = False ,
625- )
626- bold_t1_trans_wf .inputs .inputnode .fieldwarp = "identity"
627-
628618 # get confounds
629619 bold_confounds_wf = init_bold_confs_wf (
630620 mem_gb = mem_gb ["largemem" ],
@@ -637,44 +627,6 @@ def init_func_preproc_wf(bold_file, has_fieldmap=False):
637627 )
638628 bold_confounds_wf .get_node ("inputnode" ).inputs .t1_transform_flags = [False ]
639629
640- # Map final BOLD mask into T1w space (if required)
641- nonstd_spaces = set (spaces .get_nonstandard ())
642- if nonstd_spaces .intersection (("T1w" , "anat" )):
643- from niworkflows .interfaces .fixes import (
644- FixHeaderApplyTransforms as ApplyTransforms ,
645- )
646-
647- boldmask_to_t1w = pe .Node (
648- ApplyTransforms (interpolation = "MultiLabel" ),
649- name = "boldmask_to_t1w" ,
650- mem_gb = 0.1 ,
651- )
652- # fmt:off
653- workflow .connect ([
654- (bold_reg_wf , boldmask_to_t1w , [("outputnode.itk_bold_to_t1" , "transforms" )]),
655- (bold_t1_trans_wf , boldmask_to_t1w , [("outputnode.bold_mask_t1" , "reference_image" )]),
656- (bold_final , boldmask_to_t1w , [("mask" , "input_image" )]),
657- (boldmask_to_t1w , outputnode , [("output_image" , "bold_mask_t1" )]),
658- ])
659- # fmt:on
660-
661- if multiecho :
662- t2star_to_t1w = pe .Node (
663- ApplyTransforms (interpolation = "LanczosWindowedSinc" , float = True ),
664- name = "t2star_to_t1w" ,
665- mem_gb = 0.1 ,
666- )
667- # fmt:off
668- workflow .connect ([
669- (bold_reg_wf , t2star_to_t1w , [("outputnode.itk_bold_to_t1" , "transforms" )]),
670- (bold_t1_trans_wf , t2star_to_t1w , [
671- ("outputnode.bold_mask_t1" , "reference_image" )
672- ]),
673- (bold_final , t2star_to_t1w , [("t2star" , "input_image" )]),
674- (t2star_to_t1w , outputnode , [("output_image" , "t2star_t1" )]),
675- ])
676- # fmt:on
677-
678630 if spaces .get_spaces (nonstandard = False , dim = (3 ,)):
679631 # Apply transforms in 1 shot
680632 bold_std_trans_wf = init_bold_std_trans_wf (
0 commit comments