@@ -196,7 +196,15 @@ def init_mcribs_morph_grayords_wf(
196
196
fslr_density = "32k" if grayord_density == "91k" else "59k"
197
197
198
198
inputnode = pe .Node (
199
- niu .IdentityInterface (fields = ["subject_id" , "subjects_dir" , "fsLR_midthickness" ]),
199
+ niu .IdentityInterface (
200
+ fields = [
201
+ "subject_id" ,
202
+ "subjects_dir" ,
203
+ "surfaces" ,
204
+ "morphometrics" ,
205
+ "fsLR_midthickness" ,
206
+ ]
207
+ ),
200
208
name = "inputnode" ,
201
209
)
202
210
@@ -213,6 +221,9 @@ def init_mcribs_morph_grayords_wf(
213
221
run_without_submitting = True ,
214
222
)
215
223
224
+ # TODO: Extract L/R midthickness from surfaces
225
+ # TODO: Coerce morphometrics into curv-L, curv-R, sulc-L, sulc-R, thickness-L, thickness-R
226
+
216
227
# Setup Workbench command. LR ordering for hemi can be assumed, as it is imposed
217
228
# by the iterfield of the MapNode in the surface sampling workflow above.
218
229
resample = pe .MapNode (
@@ -233,13 +244,11 @@ def init_mcribs_morph_grayords_wf(
233
244
str (atlases / 'mcribs' / 'lh.sphere.reg.dHCP42.surf.gii' ),
234
245
str (atlases / 'mcribs' / 'rh.sphere.reg.dHCP42.surf.gii' ),
235
246
] * 3
236
- # current area: FreeSurfer directory midthickness
247
+ # current area: FreeSurfer (M-CRIB-S) midthickness
237
248
resample .inputs .new_sphere = [
238
249
str (atlases / 'dHCP' / 'dHCP.week42.L.sphere.surf.gii' ),
239
250
str (atlases / 'dHCP' / 'dHCP.week42.R.sphere.surf.gii' ),
240
251
] * 3
241
- # new area: dHCP midthickness
242
-
243
252
resample .inputs .out_file = [
244
253
f"space-fsLR_hemi-{ h } _den-{ grayord_density } _{ morph } .shape.gii"
245
254
# Order: curv-L, curv-R, sulc-L, sulc-R, thickness-L, thickness-R
@@ -269,6 +278,7 @@ def init_mcribs_morph_grayords_wf(
269
278
]),
270
279
# (surfmorph_list, surf2surf, [('out', 'source_file')]),
271
280
# (surf2surf, resample, [('out_file', 'in_file')]),
281
+ (inputnode , resample , [("fsLR_midthickness" , "new_area" )]),
272
282
(resample , gen_cifti , [
273
283
(("out_file" , _collate ), "scalar_surfs" )]),
274
284
(gen_cifti , outputnode , [("out_file" , "cifti_morph" ),
0 commit comments