Skip to content

Commit d6560f1

Browse files
author
David Ellis
committed
FIX: Adds filled input to Aparc2Aseg.
1 parent ac60065 commit d6560f1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

nipype/interfaces/freesurfer/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2742,6 +2742,8 @@ class Aparc2AsegInputSpec(FSTraitedSpec):
27422742
rh_annotation = File(mandatory=True, exists=True,
27432743
desc="Input file must be <subject_id>/label/rh.aparc.annot")
27442744
# optional
2745+
filled = File(exists=True,
2746+
desc="Implicit input filled file. Only required with FS v5.3.")
27452747
aseg = File(argstr="--aseg %s", mandatory=False, exists=True,
27462748
desc="Input aseg file")
27472749
volmask = traits.Bool(argstr="--volmask", mandatory=False,
@@ -2824,6 +2826,7 @@ def run(self, **inputs):
28242826
copy2subjdir(self, self.inputs.rh_ribbon, 'mri', 'rh.ribbon.mgz')
28252827
copy2subjdir(self, self.inputs.ribbon, 'mri', 'ribbon.mgz')
28262828
copy2subjdir(self, self.inputs.aseg, 'mri')
2829+
copy2subjdir(self, self.inputs.filled, 'mri', 'filled.mgz')
28272830
copy2subjdir(self, self.inputs.lh_annotation, 'label')
28282831
copy2subjdir(self, self.inputs.rh_annotation, 'label')
28292832

nipype/workflows/smri/freesurfer/autorecon3.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,9 @@ def create_AutoRecon3(name="AutoRecon3", qcache=False, plugin_args=None,
685685
(aparc_2_aseg, wm_parcellation, [('out_file', 'ctxseg')])
686686
])
687687

688+
if fsvernum < 6:
689+
ar3_wf.connect([(inputspec, wm_parcellation, [('filled', 'filled')])])
690+
688691
# White Matter Segmentation Stats
689692

690693
wm_segstats = pe.Node(SegStatsReconAll(), name="WM_Segmentation_Statistics")

0 commit comments

Comments
 (0)