@@ -79,6 +79,8 @@ def init_bold_confs_wf(mem_gb, metadata, name="bold_confs_wf"):
79
79
the FoV
80
80
metadata : dict
81
81
BIDS metadata for BOLD file
82
+ name : str
83
+ Name of workflow (default: ``bold_confs_wf``)
82
84
83
85
**Inputs**
84
86
@@ -270,7 +272,7 @@ def _pick_wm(files):
270
272
return workflow
271
273
272
274
273
- def init_carpetplot_wf (mem_gb , metadata , name = "bold_confs_wf " ):
275
+ def init_carpetplot_wf (mem_gb , metadata , name = "bold_carpet_wf " ):
274
276
"""
275
277
276
278
Resamples the MNI parcellation (ad-hoc parcellation derived from the
@@ -284,6 +286,8 @@ def init_carpetplot_wf(mem_gb, metadata, name="bold_confs_wf"):
284
286
the FoV
285
287
metadata : dict
286
288
BIDS metadata for BOLD file
289
+ name : str
290
+ Name of workflow (default: ``bold_carpet_wf``)
287
291
288
292
**Inputs**
289
293
@@ -300,12 +304,20 @@ def init_carpetplot_wf(mem_gb, metadata, name="bold_confs_wf"):
300
304
t1_2_mni_reverse_transform
301
305
ANTs-compatible affine-and-warp transform file
302
306
307
+ **Outputs**
308
+
309
+ out_carpetplot
310
+ Path of the generated SVG file
311
+
303
312
"""
304
313
inputnode = pe .Node (niu .IdentityInterface (
305
314
fields = ['bold' , 'bold_mask' , 'confounds_file' ,
306
315
't1_bold_xform' , 't1_2_mni_reverse_transform' ]),
307
316
name = 'inputnode' )
308
317
318
+ outputnode = pe .Node (niu .IdentityInterface (
319
+ fields = ['out_carpetplot' ]), name = 'outputnode' )
320
+
309
321
# List transforms
310
322
mrg_xfms = pe .Node (niu .Merge (2 ), name = 'mrg_xfms' )
311
323
@@ -345,7 +357,7 @@ def init_carpetplot_wf(mem_gb, metadata, name="bold_confs_wf"):
345
357
('confounds_file' , 'confounds_file' )]),
346
358
(resample_parc , conf_plot , [('output_image' , 'in_segm' )]),
347
359
(conf_plot , ds_report_bold_conf , [('out_file' , 'in_file' )]),
348
-
360
+ ( conf_plot , outputnode , [( 'out_file' , 'out_carpetplot' )]),
349
361
])
350
362
return workflow
351
363
0 commit comments