Skip to content

Commit d78546f

Browse files
committed
ENH: Caclulate fieldwarps in reference space
1 parent 726ca7e commit d78546f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

nibabies/workflows/bold/base.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,6 +1156,9 @@ def init_func_preproc_wf(bold_file, has_fieldmap=False, existing_derivatives=Non
11561156
("outputnode.boldref_file", "inputnode.target_ref")]),
11571157
(initial_boldref_wf, coeff2epi_wf, [
11581158
("outputnode.boldref_mask", "inputnode.target_mask")]), # skull-stripped brain
1159+
(initial_boldref_wf, unwarp_wf, [
1160+
("outputnode.boldref_file", "inputnode.distorted_ref"),
1161+
]),
11591162
(coeff2epi_wf, unwarp_wf, [
11601163
("outputnode.fmap_coeff", "inputnode.fmap_coeff")]),
11611164
(initial_boldref_wf, sdc_report, [("outputnode.boldref_file", "before")]),
@@ -1181,11 +1184,11 @@ def init_func_preproc_wf(bold_file, has_fieldmap=False, existing_derivatives=Non
11811184
]),
11821185
(unwarp_wf, bold_t1_trans_wf, [
11831186
# TEMPORARY: For the moment we can't use frame-wise fieldmaps
1184-
(("outputnode.fieldwarp", pop_file), "inputnode.fieldwarp"),
1187+
(("outputnode.fieldwarp_ref", pop_file), "inputnode.fieldwarp"),
11851188
]),
11861189
(unwarp_wf, bold_std_trans_wf, [
11871190
# TEMPORARY: For the moment we can't use frame-wise fieldmaps
1188-
(("outputnode.fieldwarp", pop_file), "inputnode.fieldwarp"),
1191+
(("outputnode.fieldwarp_ref", pop_file), "inputnode.fieldwarp"),
11891192
]),
11901193
])
11911194
# fmt:on

0 commit comments

Comments
 (0)