@@ -1087,27 +1087,6 @@ def build_workflow(subject_id, sub_dict, c, pipeline_name=None, num_ants_cores=1
1087
1087
1088
1088
new_strat_list += [new_strat ]
1089
1089
1090
- if "FSL" in c .skullstrip_option :
1091
- anat_preproc = create_anat_preproc (method = 'fsl' ,
1092
- config = c ,
1093
- wf_name = 'anat_preproc_bet_%d' % num_strat )
1094
-
1095
- anat_preproc .inputs .BET_options .set (
1096
- frac = c .bet_frac ,
1097
- mask_boolean = c .bet_mask_boolean ,
1098
- mesh_boolean = c .bet_mesh_boolean ,
1099
- outline = c .bet_outline ,
1100
- padding = c .bet_padding ,
1101
- radius = c .bet_radius ,
1102
- reduce_bias = c .bet_reduce_bias ,
1103
- remove_eyes = c .bet_remove_eyes ,
1104
- robust = c .bet_robust ,
1105
- skull = c .bet_skull ,
1106
- surfaces = c .bet_surfaces ,
1107
- threshold = c .bet_threshold ,
1108
- vertical_gradient = c .bet_vertical_gradient ,
1109
- )
1110
-
1111
1090
if "unet" in c .skullstrip_option :
1112
1091
anat_preproc = create_anat_preproc (method = 'unet' ,
1113
1092
config = c ,
@@ -1130,87 +1109,6 @@ def build_workflow(subject_id, sub_dict, c, pipeline_name=None, num_ants_cores=1
1130
1109
'anatomical_brain_mask' : (anat_preproc , 'outputspec.brain_mask' ),
1131
1110
})
1132
1111
1133
- if "niworkflows-ants" in c .skullstrip_option :
1134
- anat_preproc = create_anat_preproc (method = 'niworkflows-ants' ,
1135
- config = c ,
1136
- wf_name = 'anat_preproc_niworkflows_ants_%d' % num_strat )
1137
-
1138
- new_strat = strat .fork ()
1139
- node , out_file = new_strat ['anatomical' ]
1140
- workflow .connect (node , out_file ,
1141
- anat_preproc , 'inputspec.anat' )
1142
- new_strat .append_name (anat_preproc .name )
1143
- new_strat .set_leaf_properties (anat_preproc , 'outputspec.brain' )
1144
- new_strat .update_resource_pool ({
1145
- 'anatomical_brain' : (anat_preproc , 'outputspec.brain' ),
1146
- 'anatomical_skull_leaf' : (anat_preproc , 'outputspec.anat_skull_leaf' ),
1147
- 'anatomical_brain_mask' : (anat_preproc , 'outputspec.brain_mask' ),
1148
- })
1149
-
1150
- new_strat_list += [new_strat ]
1151
-
1152
- if "unet" in c .skullstrip_option :
1153
- anat_preproc = create_anat_preproc (method = 'unet' ,
1154
- config = c ,
1155
- acpc_target = acpc_target ,
1156
- wf_name = 'anat_preproc_unet_%d' % num_strat )
1157
-
1158
- new_strat = strat .fork ()
1159
- node , out_file = new_strat ['anatomical' ]
1160
- workflow .connect (node , out_file ,
1161
- anat_preproc , 'inputspec.anat' )
1162
- workflow .connect (c .acpc_template_skull , 'local_path' ,
1163
- anat_preproc , 'inputspec.template_skull_for_anat' )
1164
- workflow .connect (c .acpc_template_brain , 'local_path' ,
1165
- anat_preproc , 'inputspec.template_brain_only_for_anat' )
1166
- new_strat .append_name (anat_preproc .name )
1167
- new_strat .set_leaf_properties (anat_preproc , 'outputspec.brain' )
1168
- new_strat .update_resource_pool ({
1169
- 'anatomical_brain' : (anat_preproc , 'outputspec.brain' ),
1170
- 'anatomical_skull_leaf' : (anat_preproc , 'outputspec.anat_skull_leaf' ),
1171
- 'anatomical_brain_mask' : (anat_preproc , 'outputspec.brain_mask' ),
1172
- })
1173
-
1174
- if "niworkflows-ants" in c .skullstrip_option :
1175
- anat_preproc = create_anat_preproc (method = 'niworkflows-ants' ,
1176
- config = c ,
1177
- wf_name = 'anat_preproc_niworkflows_ants_%d' % num_strat )
1178
-
1179
- new_strat = strat .fork ()
1180
- node , out_file = new_strat ['anatomical' ]
1181
- workflow .connect (node , out_file ,
1182
- anat_preproc , 'inputspec.anat' )
1183
- new_strat .append_name (anat_preproc .name )
1184
- new_strat .set_leaf_properties (anat_preproc , 'outputspec.brain' )
1185
- new_strat .update_resource_pool ({
1186
- 'anatomical_brain' : (anat_preproc , 'outputspec.brain' ),
1187
- 'anatomical_reorient' : (anat_preproc , 'outputspec.reorient' ),
1188
- 'anatomical_brain_mask' : (anat_preproc , 'outputspec.brain_mask' ),
1189
- })
1190
-
1191
- new_strat_list += [new_strat ]
1192
-
1193
- if "unet" in c .skullstrip_option :
1194
- anat_preproc = create_anat_preproc (method = 'unet' ,
1195
- config = c ,
1196
- wf_name = 'anat_preproc_unet_%d' % num_strat )
1197
-
1198
- new_strat = strat .fork ()
1199
- node , out_file = new_strat ['anatomical' ]
1200
- workflow .connect (node , out_file ,
1201
- anat_preproc , 'inputspec.anat' )
1202
- workflow .connect (c .acpc_template_skull , 'local_path' ,
1203
- anat_preproc , 'inputspec.template_skull_for_anat' )
1204
- workflow .connect (c .acpc_template_brain , 'local_path' ,
1205
- anat_preproc , 'inputspec.template_brain_only_for_anat' )
1206
- new_strat .append_name (anat_preproc .name )
1207
- new_strat .set_leaf_properties (anat_preproc , 'outputspec.brain' )
1208
- new_strat .update_resource_pool ({
1209
- 'anatomical_brain' : (anat_preproc , 'outputspec.brain' ),
1210
- 'anatomical_skull_leaf' : (anat_preproc , 'outputspec.anat_skull_leaf' ),
1211
- 'anatomical_brain_mask' : (anat_preproc , 'outputspec.brain_mask' ),
1212
- })
1213
-
1214
1112
new_strat_list += [new_strat ]
1215
1113
1216
1114
0 commit comments