Skip to content

Commit

Permalink
fix(workflow): Resolve resampling of BOLD into standard spaces
Browse files Browse the repository at this point in the history
This PR fixes nipreps#1626.

The ``transforms`` input to ``MultyApplyTransforms`` had not been
updated to get fed by the ``KeySelect`` interface that demultiplexes
parameterized fields.

With great thanks to @markushs for his invaluable help catching this.
  • Loading branch information
oesteban committed May 9, 2019
1 parent 1a4b64f commit c191ad5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fmriprep/workflows/bold/resampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,15 +363,15 @@ def init_bold_std_trans_wf(

workflow.connect([
(inputnode, merge_xforms, [
('anat2std_xfm', 'in1'),
(('itk_bold_to_t1', _aslist), 'in2')]),
(merge_xforms, bold_to_std_transform, [('out', 'transforms')]),
(inputnode, merge, [('name_source', 'header_source')]),
(inputnode, bold_to_std_transform, [('bold_split', 'input_image')]),
(select_std, merge_xforms, [('anat2std_xfm', 'in1')]),
(merge_xforms, bold_to_std_transform, [('out', 'transforms')]),
(gen_ref, bold_to_std_transform, [('out_file', 'reference_image')]),
(bold_to_std_transform, merge, [('out_files', 'in_files')]),
(merge, gen_final_ref, [('out_file', 'inputnode.bold_file')]),
(mask_std_tfm, gen_final_ref, [('output_image', 'inputnode.bold_mask')]),
(gen_ref, bold_to_std_transform, [('out_file', 'reference_image')]),
])

# Connect output nodes
Expand Down

0 comments on commit c191ad5

Please sign in to comment.