Skip to content

Commit 45405ab

Browse files
committed
TST: Use preproc T2w in original space
1 parent 90bdda8 commit 45405ab

File tree

1 file changed

+9
-3
lines changed
  • nibabies/workflows/anatomical

1 file changed

+9
-3
lines changed

nibabies/workflows/anatomical/base.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,15 +412,21 @@ def init_infant_anat_wf(
412412
mcribs_dir=str(config.execution.mcribs_dir), # Needed to preserve runs
413413
)
414414

415+
if precomp_mask:
416+
wf.connect(
417+
sdc_brain_extraction_wf, 'outputnode.out_file', surface_recon_wf, 'inputnode.t2w'
418+
)
419+
else:
420+
wf.connect(
421+
brain_extraction_wf, 'outputnode.t2w_preproc', surface_recon_wf, 'inputnode.t2w'
422+
)
423+
415424
# fmt:off
416425
wf.connect([
417426
(inputnode, surface_recon_wf, [
418427
("subject_id", "inputnode.subject_id"),
419428
("subjects_dir", "inputnode.subjects_dir"),
420429
]),
421-
(coregistration_wf, surface_recon_wf, [
422-
("outputnode.t2w_preproc", "inputnode.t2w"),
423-
]),
424430
(anat_seg_wf, surface_recon_wf, [
425431
("outputnode.anat_aseg", "inputnode.ants_segs"),
426432
]),

0 commit comments

Comments
 (0)