Skip to content

Commit

Permalink
Merge pull request #673 from nipreps/enh/output_all_bold
Browse files Browse the repository at this point in the history
ENH: Return all bold files from init_bold_reference_wf
  • Loading branch information
effigies authored Dec 7, 2021
2 parents e6228c0 + 492497c commit 13a7bd9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions niworkflows/func/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ def init_bold_reference_wf(
Indicates whether the ``pre_mask`` input will be set (and thus, step 1
should be skipped).
multiecho : :obj:`bool`
If multiecho data was supplied, data from the first echo
will be selected
If multiecho data was supplied, data from the first echo will be selected
name : :obj:`str`
Name of workflow (default: ``bold_reference_wf``)
gen_report : :obj:`bool`
Expand All @@ -106,6 +105,8 @@ def init_bold_reference_wf(
------
bold_file : str
BOLD series NIfTI file
all_bold_files : str
Validated and header-corrected BOLD series; multiple if multi-echo
bold_mask : bool
A tentative brain mask to initialize the workflow (requires ``pre_mask``
parameter set ``True``).
Expand Down Expand Up @@ -160,6 +161,7 @@ def init_bold_reference_wf(
niu.IdentityInterface(
fields=[
"bold_file",
"all_bold_files",
"raw_ref_image",
"skip_vols",
"algo_dummy_scans",
Expand Down Expand Up @@ -212,6 +214,7 @@ def init_bold_reference_wf(
(gen_avg, outputnode, [("out_file", "raw_ref_image")]),
(get_dummy, outputnode, [("n_dummy", "algo_dummy_scans")]),
(val_bold, outputnode, [(("out_file", _pop), "bold_file"),
("out_file", "all_bold_files"),
(("out_report", _pop), "validation_report")]),
(enhance_and_skullstrip_bold_wf, outputnode, [
("outputnode.bias_corrected_file", "ref_image"),
Expand Down

0 comments on commit 13a7bd9

Please sign in to comment.