Skip to content

Commit 5f55944

Browse files
committed
docs improvements, nit picks
1 parent 1be00ab commit 5f55944

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

fmriprep/workflows/bold/confounds.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ def init_bold_confs_wf(mem_gb, metadata, name="bold_confs_wf"):
7979
the FoV
8080
metadata : dict
8181
BIDS metadata for BOLD file
82+
name : str
83+
Name of workflow (default: ``bold_confs_wf``)
8284
8385
**Inputs**
8486
@@ -270,7 +272,7 @@ def _pick_wm(files):
270272
return workflow
271273

272274

273-
def init_carpetplot_wf(mem_gb, metadata, name="bold_confs_wf"):
275+
def init_carpetplot_wf(mem_gb, metadata, name="bold_carpet_wf"):
274276
"""
275277
276278
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"):
284286
the FoV
285287
metadata : dict
286288
BIDS metadata for BOLD file
289+
name : str
290+
Name of workflow (default: ``bold_carpet_wf``)
287291
288292
**Inputs**
289293
@@ -300,12 +304,20 @@ def init_carpetplot_wf(mem_gb, metadata, name="bold_confs_wf"):
300304
t1_2_mni_reverse_transform
301305
ANTs-compatible affine-and-warp transform file
302306
307+
**Outputs**
308+
309+
out_carpetplot
310+
Path of the generated SVG file
311+
303312
"""
304313
inputnode = pe.Node(niu.IdentityInterface(
305314
fields=['bold', 'bold_mask', 'confounds_file',
306315
't1_bold_xform', 't1_2_mni_reverse_transform']),
307316
name='inputnode')
308317

318+
outputnode = pe.Node(niu.IdentityInterface(
319+
fields=['out_carpetplot']), name='outputnode')
320+
309321
# List transforms
310322
mrg_xfms = pe.Node(niu.Merge(2), name='mrg_xfms')
311323

@@ -345,7 +357,7 @@ def init_carpetplot_wf(mem_gb, metadata, name="bold_confs_wf"):
345357
('confounds_file', 'confounds_file')]),
346358
(resample_parc, conf_plot, [('output_image', 'in_segm')]),
347359
(conf_plot, ds_report_bold_conf, [('out_file', 'in_file')]),
348-
360+
(conf_plot, outputnode, [('out_file', 'out_carpetplot')]),
349361
])
350362
return workflow
351363

fmriprep/workflows/bold/resampling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,11 @@ def _aslist(in_value):
270270

271271
workflow.connect([
272272
(inputnode, gen_ref, [(('bold_split', _first), 'moving_image')]),
273+
(inputnode, mask_mni_tfm, [('bold_mask', 'input_image')]),
273274
(inputnode, mask_merge_tfms, [('t1_2_mni_forward_transform', 'in1'),
274275
(('itk_bold_to_t1', _aslist), 'in2')]),
275276
(mask_merge_tfms, mask_mni_tfm, [('out', 'transforms')]),
276277
(mask_mni_tfm, outputnode, [('output_image', 'bold_mask_mni')]),
277-
(inputnode, mask_mni_tfm, [('bold_mask', 'input_image')])
278278
])
279279

280280
bold_to_mni_transform = pe.Node(

0 commit comments

Comments
 (0)