102102 warp_bold_mean_to_T1template ,
103103 warp_bold_mask_to_T1template ,
104104 warp_deriv_mask_to_T1template ,
105+ warp_denoiseNofilt_to_T1template ,
105106 warp_timeseries_to_EPItemplate ,
106107 warp_bold_mean_to_EPItemplate ,
107108 warp_bold_mask_to_EPItemplate ,
183184 multiple_regression
184185)
185186
186- from CPAC .alff .alff import alff_falff
187- from CPAC .reho .reho import reho
187+ from CPAC .alff .alff import alff_falff , alff_falff_space_template
188+ from CPAC .reho .reho import reho , reho_space_template
188189
189190from CPAC .vmhc .vmhc import (
190191 smooth_func_vmhc ,
@@ -1282,6 +1283,10 @@ def build_workflow(subject_id, sub_dict, cfg, pipeline_name=None,
12821283 if not rpool .check_rpool ('space-template_desc-bold_mask' ):
12831284 pipeline_blocks += [warp_bold_mask_to_T1template ,
12841285 warp_deriv_mask_to_T1template ]
1286+
1287+ target_space_alff = cfg .amplitude_low_frequency_fluctuation ['target_space' ]
1288+ if 'Template' in target_space_alff and not rpool .check_rpool ('space-template_desc-denoisedNofilt_bold' ):
1289+ pipeline_blocks += [warp_denoiseNofilt_to_T1template ]
12851290
12861291 template = cfg .registration_workflows ['functional_registration' ]['func_registration_to_template' ]['target_template' ]['using' ]
12871292
@@ -1324,6 +1329,7 @@ def build_workflow(subject_id, sub_dict, cfg, pipeline_name=None,
13241329 tse_atlases , sca_atlases = gather_extraction_maps (cfg )
13251330 cfg .timeseries_extraction ['tse_atlases' ] = tse_atlases
13261331 cfg .seed_based_correlation_analysis ['sca_atlases' ] = sca_atlases
1332+ target_space_reho = cfg .regional_homogeneity ['target_space' ]
13271333
13281334 if not rpool .check_rpool ('desc-Mean_timeseries' ) and \
13291335 'Avg' in tse_atlases :
@@ -1349,11 +1355,21 @@ def build_workflow(subject_id, sub_dict, cfg, pipeline_name=None,
13491355 'MultReg' in sca_atlases :
13501356 pipeline_blocks += [multiple_regression ]
13511357
1352- if not rpool .check_rpool ('alff' ):
1353- pipeline_blocks += [alff_falff ]
1354-
1355- if not rpool .check_rpool ('reho' ):
1356- pipeline_blocks += [reho ]
1358+ if 'Native' in target_space_alff :
1359+ if not rpool .check_rpool ('alff' ):
1360+ pipeline_blocks += [alff_falff ]
1361+
1362+ if 'Template' in target_space_alff :
1363+ if not rpool .check_rpool ('space-template_alff' ):
1364+ pipeline_blocks += [alff_falff_space_template ]
1365+
1366+ if 'Native' in target_space_reho :
1367+ if not rpool .check_rpool ('reho' ):
1368+ pipeline_blocks += [reho ]
1369+
1370+ if 'Template' in target_space_reho :
1371+ if not rpool .check_rpool ('space-template_reho' ):
1372+ pipeline_blocks += [reho_space_template ]
13571373
13581374 if not rpool .check_rpool ('vmhc' ):
13591375 pipeline_blocks += [smooth_func_vmhc ,
0 commit comments