Skip to content

Commit

Permalink
FIX: Use tissue segmentations for FS recon-all
Browse files Browse the repository at this point in the history
  • Loading branch information
mgxd committed Apr 3, 2024
1 parent 7b1e91d commit cf7a401
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions nibabies/workflows/anatomical/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,14 +482,23 @@ def init_infant_anat_wf(
# fsaverage to fsLR
sphere_reg_wf = init_sphere_reg_wf()

# fmt:off
wf.connect([
(t2w_preproc_wf, surface_recon_wf, [
("outputnode.anat_preproc", "inputnode.t2w")]),
(anat_seg_wf, surface_recon_wf, [
("outputnode.anat_aseg", "inputnode.ants_segs")]),
])
# fmt:on

if recon_method == 'infantfs':
wf.connect([

Check warning on line 491 in nibabies/workflows/anatomical/base.py

View check run for this annotation

Codecov / codecov/patch

nibabies/workflows/anatomical/base.py#L490-L491

Added lines #L490 - L491 were not covered by tests
(anat_seg_wf, surface_recon_wf, [
("outputnode.anat_aseg", "inputnode.ants_segs"),
]),
]) # fmt:skip
if recon_method == 'freesurfer':
wf.connect([

Check warning on line 497 in nibabies/workflows/anatomical/base.py

View check run for this annotation

Codecov / codecov/patch

nibabies/workflows/anatomical/base.py#L496-L497

Added lines #L496 - L497 were not covered by tests
(anat_seg_wf, surface_recon_wf, [
("outputnode.anat_dseg", "inputnode.ants_segs"),
])
]) # fmt:skip

# Anatomical ribbon file using HCP signed-distance volume method
anat_ribbon_wf = init_anat_ribbon_wf()
Expand Down

0 comments on commit cf7a401

Please sign in to comment.