Skip to content

Commit

Permalink
FIX: Swap direction of fmap-EPI transform
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Oct 12, 2023
1 parent 511c838 commit 737d59e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fmriprep/workflows/bold/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,11 @@ def init_bold_fit_wf(
("fmap_coeff", "inputnode.fmap_coeff"),
]),
(fmapreg_buffer, unwarp_wf, [
("boldref2fmap_xfm", "inputnode.data2fmap_xfm"),
# This looks backwards, but unwarp_wf describes transforms in
# terms of points while we (and init_coeff2epi_wf) describe them
# in terms of images. Mapping fieldmap coordinates into boldref
# coordinates maps the boldref image onto the fieldmap image.
("boldref2fmap_xfm", "inputnode.fmap2data_xfm"),
]),
(enhance_boldref_wf, unwarp_wf, [
('outputnode.bias_corrected_file', 'inputnode.distorted'),
Expand Down

0 comments on commit 737d59e

Please sign in to comment.