Skip to content

Commit 6e60124

Browse files
author
Alexander Schaefer
committed
added files to interface output
1 parent ab04ca4 commit 6e60124

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

nipype/interfaces/cmtk/parcellation.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ class ParcellateInputSpec(BaseInterfaceInputSpec):
459459

460460
class ParcellateOutputSpec(TraitedSpec):
461461
roi_file = File(exists=True, desc='Region of Interest file for connectivity mapping')
462+
roiv_file = File(exists=True, desc='Region of Interest file for fMRI connectivity mapping')
462463
white_matter_mask_file = File(exists=True, desc='White matter mask file')
463464
cc_unknown_file = File(desc='Image file with regions labelled as unknown cortical structures',
464465
exists=True)
@@ -468,7 +469,8 @@ class ParcellateOutputSpec(TraitedSpec):
468469
exists=True)
469470
roi_file_in_structural_space = File(desc='ROI image resliced to the dimensions of the original structural image',
470471
exists=True)
471-
472+
dilated_roi_file_in_structural_space = File(desc='dilated ROI image resliced to the dimensions of the original structural image',
473+
exists=True)
472474

473475
class Parcellate(BaseInterface):
474476
"""Subdivides segmented ROI file into smaller subregions
@@ -500,9 +502,9 @@ def _run_interface(self, runtime):
500502
raise Exception
501503
iflogger.info("ROI_HR_th.nii.gz / fsmask_1mm.nii.gz CREATION")
502504
iflogger.info("=============================================")
503-
#create_annot_label(self.inputs.subject_id, self.inputs.subjects_dir, self.inputs.freesurfer_dir, self.inputs.parcellation_name)
505+
create_annot_label(self.inputs.subject_id, self.inputs.subjects_dir, self.inputs.freesurfer_dir, self.inputs.parcellation_name)
504506
create_roi(self.inputs.subject_id, self.inputs.subjects_dir, self.inputs.freesurfer_dir, self.inputs.parcellation_name)
505-
#create_wm_mask(self.inputs.subject_id, self.inputs.subjects_dir, self.inputs.freesurfer_dir, self.inputs.parcellation_name)
507+
create_wm_mask(self.inputs.subject_id, self.inputs.subjects_dir, self.inputs.freesurfer_dir, self.inputs.parcellation_name)
506508
crop_and_move_datasets(self.inputs.subject_id, self.inputs.subjects_dir, self.inputs.freesurfer_dir, self.inputs.parcellation_name, self.inputs.out_roi_file)
507509
return runtime
508510

@@ -512,11 +514,13 @@ def _list_outputs(self):
512514
outputs['roi_file'] = op.abspath(self.inputs.out_roi_file)
513515
else:
514516
outputs['roi_file'] = op.abspath(self._gen_outfilename('nii.gz', 'ROI'))
517+
outputs['roiv_file'] = op.abspath(self._gen_outfilename('nii.gz', 'ROIv'))
515518
outputs['white_matter_mask_file'] = op.abspath('fsmask_1mm.nii.gz')
516519
outputs['cc_unknown_file'] = op.abspath('cc_unknown.nii.gz')
517520
outputs['ribbon_file'] = op.abspath('ribbon.nii.gz')
518521
outputs['aseg_file'] = op.abspath('aseg.nii.gz')
519522
outputs['roi_file_in_structural_space'] = op.abspath('ROI_HR_th.nii.gz')
523+
outputs['dilated_roi_file_in_structural_space'] = op.abspath('ROI_HR_th.nii.gz')
520524
return outputs
521525

522526
def _gen_outfilename(self, ext, prefix='ROI'):

0 commit comments

Comments
 (0)