@@ -1601,7 +1601,7 @@ def FSL_registration_connector(
16011601 fnirt_reg_anat_mni ,
16021602 "outputspec.output_head" ,
16031603 ),
1604- f"space-{ sym } template_desc-{ orig } _mask" : (
1604+ f"space-{ sym } template_desc-{ 'brain' if orig == 'T1w' else orig } _mask" : (
16051605 fnirt_reg_anat_mni ,
16061606 "outputspec.output_mask" ,
16071607 ),
@@ -2318,26 +2318,28 @@ def register_FSL_anat_to_template(wf, cfg, strat_pool, pipe_num, opt=None):
23182318 "dilated-symmetric-brain-mask" ,
23192319 ],
23202320 outputs = {
2321- "space-symtemplate_desc-preproc_T1w" : {
2322- "Template" : "T1w-brain-template-symmetric"
2323- },
2324- "from-T1w_to-symtemplate_mode-image_desc-linear_xfm" : {
2325- "Template" : "T1w-template-symmetric"
2326- },
2327- "from-symtemplate_to-T1w_mode-image_desc-linear_xfm" : {
2328- "Template" : "T1w-template-symmetric"
2329- },
2330- "from-T1w_to-symtemplate_mode-image_xfm" : {
2331- "Template" : "T1w-template-symmetric"
2332- },
2333- "from-longitudinal_to-symtemplate_mode-image_desc-linear_xfm" : {
2334- "Template" : "T1w-template-symmetric"
2335- },
2336- "from-symtemplate_to-longitudinal_mode-image_desc-linear_xfm" : {
2337- "Template" : "T1w-template-symmetric"
2321+ ** {
2322+ f"space-symtemplate_desc-{ suffix } " : {
2323+ "Template" : "T1w-brain-template-symmetric"
2324+ }
2325+ for suffix in [
2326+ * [f"{ desc } _T1w" for desc in ["brain" , "preproc" ]],
2327+ "brain_mask" ,
2328+ ]
23382329 },
2339- "from-longitudinal_to-symtemplate_mode-image_xfm" : {
2340- "Template" : "T1w-template-symmetric"
2330+ ** {
2331+ output : {"Template" : "T1w-template-symmetric" }
2332+ for output in [
2333+ "space-symtemplate_desc-head_T1w" ,
2334+ "from-T1w_to-symtemplate_mode-image_desc-linear_xfm" ,
2335+ "from-symtemplate_to-T1w_mode-image_desc-linear_xfm" ,
2336+ "from-T1w_to-symtemplate_mode-image_warp" ,
2337+ "from-T1w_to-symtemplate_mode-image_xfm" ,
2338+ "from-longitudinal_to-symtemplate_mode-image_desc-linear_xfm" ,
2339+ "from-symtemplate_to-longitudinal_mode-image_desc-linear_xfm" ,
2340+ "from-longitudinal_to-symtemplate_mode-image_xfm" ,
2341+ "space-symtemplate_desc-T1wT2w_biasfield" ,
2342+ ]
23412343 },
23422344 },
23432345)
0 commit comments