Skip to content

Commit

Permalink
FIX: Pass reference image to unwarp_wf, use reference fieldwarp for s…
Browse files Browse the repository at this point in the history
…ingle shot (#2945)

Hook up to nipreps/sdcflows#334.

This is a workflow change, so requires a minor release bump for sdcflows
and fmriprep.

This is based on reviewing the analysis provided by @sgiavasis and his
group.
  • Loading branch information
effigies committed Mar 6, 2023
2 parents 268ee21 + 62ba697 commit 084c5d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions fmriprep/workflows/bold/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1173,6 +1173,9 @@ def _last(inlist):
(initial_boldref_wf, coeff2epi_wf, [
("outputnode.ref_image", "inputnode.target_ref"),
("outputnode.bold_mask", "inputnode.target_mask")]),
(initial_boldref_wf, unwarp_wf, [
("outputnode.ref_image", "inputnode.distorted_ref"),
]),
(coeff2epi_wf, unwarp_wf, [
("outputnode.fmap_coeff", "inputnode.fmap_coeff")]),
(bold_hmc_wf, unwarp_wf, [
Expand Down Expand Up @@ -1266,11 +1269,11 @@ def _last(inlist):
]),
(unwarp_wf, bold_t1_trans_wf, [
# TEMPORARY: For the moment we can't use frame-wise fieldmaps
(("outputnode.fieldwarp", pop_file), "inputnode.fieldwarp"),
(("outputnode.fieldwarp_ref", pop_file), "inputnode.fieldwarp"),
]),
(unwarp_wf, bold_std_trans_wf, [
# TEMPORARY: For the moment we can't use frame-wise fieldmaps
(("outputnode.fieldwarp", pop_file), "inputnode.fieldwarp"),
(("outputnode.fieldwarp_ref", pop_file), "inputnode.fieldwarp"),
]),
])
# fmt:on
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies = [
"psutil >= 5.4",
"pybids >= 0.15.2",
"requests",
"sdcflows ~= 2.2.2",
"sdcflows ~= 2.3.0",
"smriprep @ git+https://github.com/nipreps/smriprep.git@master",
"tedana ~= 0.0.9",
"templateflow >= 23.0.0",
Expand Down

0 comments on commit 084c5d0

Please sign in to comment.