Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Swap direction of fmap-EPI transform #3106

Merged
merged 1 commit into from
Oct 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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