Skip to content

Commit 74ba311

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 6bc37f3 commit 74ba311

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
@@ -459,7 +459,7 @@ def init_brain_extraction_wf(
459459
])
460460
wf.connect([
461461
(inputnode, atropos_wf, [("in_files", "inputnode.in_files")]),
462-
(inu_n4_final, atropos_wf, [("output_image", "inputnode.in_corrected")]),
462+
(inu_n4, atropos_wf, [("output_image", "inputnode.in_corrected")]),
463463
(thr_brainmask, atropos_wf, [("output_image", "inputnode.in_mask")]),
464464
(atropos_wf, outputnode, [
465465
("outputnode.out_file", "out_file"),

0 commit comments

Comments
 (0)