Skip to content

Commit 13a7bd9

Browse files
authored
Merge pull request #673 from nipreps/enh/output_all_bold
ENH: Return all bold files from init_bold_reference_wf
2 parents e6228c0 + 492497c commit 13a7bd9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

niworkflows/func/util.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ def init_bold_reference_wf(
9595
Indicates whether the ``pre_mask`` input will be set (and thus, step 1
9696
should be skipped).
9797
multiecho : :obj:`bool`
98-
If multiecho data was supplied, data from the first echo
99-
will be selected
98+
If multiecho data was supplied, data from the first echo will be selected
10099
name : :obj:`str`
101100
Name of workflow (default: ``bold_reference_wf``)
102101
gen_report : :obj:`bool`
@@ -106,6 +105,8 @@ def init_bold_reference_wf(
106105
------
107106
bold_file : str
108107
BOLD series NIfTI file
108+
all_bold_files : str
109+
Validated and header-corrected BOLD series; multiple if multi-echo
109110
bold_mask : bool
110111
A tentative brain mask to initialize the workflow (requires ``pre_mask``
111112
parameter set ``True``).
@@ -160,6 +161,7 @@ def init_bold_reference_wf(
160161
niu.IdentityInterface(
161162
fields=[
162163
"bold_file",
164+
"all_bold_files",
163165
"raw_ref_image",
164166
"skip_vols",
165167
"algo_dummy_scans",
@@ -212,6 +214,7 @@ def init_bold_reference_wf(
212214
(gen_avg, outputnode, [("out_file", "raw_ref_image")]),
213215
(get_dummy, outputnode, [("n_dummy", "algo_dummy_scans")]),
214216
(val_bold, outputnode, [(("out_file", _pop), "bold_file"),
217+
("out_file", "all_bold_files"),
215218
(("out_report", _pop), "validation_report")]),
216219
(enhance_and_skullstrip_bold_wf, outputnode, [
217220
("outputnode.bias_corrected_file", "ref_image"),

0 commit comments

Comments
 (0)