Skip to content

Commit c1025dd

Browse files
committed
fix(brain_extraction_wf): Pass inu_n4 to atropos_wf
antsBrainExtraction.sh passes the original N4 corrected image to Atropos, where we have been running a masked N4 before Atropos. We have examples where this difference leads to failures that do not occur in the original ANTs workflow. Further, if we do run Atropos, then this result is discarded and N4 is run using a white-matter mask. This patch therefore simply passes the original N4 image to the Atropos workflow, but otherwise leaves the workflow unchanged.
1 parent 6ff29ba commit c1025dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

niworkflows/anat/ants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def init_brain_extraction_wf(
476476
])
477477
wf.connect([
478478
(inputnode, atropos_wf, [("in_files", "inputnode.in_files")]),
479-
(inu_n4_final, atropos_wf, [("output_image", "inputnode.in_corrected")]),
479+
(inu_n4, atropos_wf, [("output_image", "inputnode.in_corrected")]),
480480
(thr_brainmask, atropos_wf, [("output_image", "inputnode.in_mask")]),
481481
(atropos_wf, outputnode, [
482482
("outputnode.out_file", "out_file"),

0 commit comments

Comments
 (0)