@@ -532,7 +532,7 @@ class ParcellateInputSpec(BaseInterfaceInputSpec):
532
532
class ParcellateOutputSpec (TraitedSpec ):
533
533
roi_file = File (
534
534
exists = True , desc = 'Region of Interest file for connectivity mapping' )
535
- roiv_file = File (exists = False , desc = 'Region of Interest file for fMRI connectivity mapping' )
535
+ roiv_file = File (desc = 'Region of Interest file for fMRI connectivity mapping' )
536
536
white_matter_mask_file = File (exists = True , desc = 'White matter mask file' )
537
537
cc_unknown_file = File (
538
538
desc = 'Image file with regions labelled as unknown cortical structures' ,
@@ -546,8 +546,7 @@ class ParcellateOutputSpec(TraitedSpec):
546
546
desc = 'ROI image resliced to the dimensions of the original structural image' ,
547
547
exists = True )
548
548
dilated_roi_file_in_structural_space = File (
549
- desc = 'dilated ROI image resliced to the dimensions of the original structural image' ,
550
- exists = True )
549
+ desc = 'dilated ROI image resliced to the dimensions of the original structural image' )
551
550
552
551
553
552
class Parcellate (BaseInterface ):
@@ -594,15 +593,17 @@ def _list_outputs(self):
594
593
else :
595
594
outputs ['roi_file' ] = op .abspath (
596
595
self ._gen_outfilename ('nii.gz' , 'ROI' ))
597
- outputs ['roiv_file' ] = op .abspath (self ._gen_outfilename (
596
+ if (self .inputs .dilation == True ):
597
+ outputs ['roiv_file' ] = op .abspath (self ._gen_outfilename (
598
598
'nii.gz' , 'ROIv' ))
599
599
outputs ['white_matter_mask_file' ] = op .abspath ('fsmask_1mm.nii.gz' )
600
600
outputs ['cc_unknown_file' ] = op .abspath ('cc_unknown.nii.gz' )
601
601
outputs ['ribbon_file' ] = op .abspath ('ribbon.nii.gz' )
602
602
outputs ['aseg_file' ] = op .abspath ('aseg.nii.gz' )
603
603
outputs ['roi_file_in_structural_space' ] = op .abspath (
604
604
'ROI_HR_th.nii.gz' )
605
- outputs ['dilated_roi_file_in_structural_space' ] = op .abspath (
605
+ if (self .inputs .dilation == True ):
606
+ outputs ['dilated_roi_file_in_structural_space' ] = op .abspath (
606
607
'ROIv_HR_th.nii.gz' )
607
608
return outputs
608
609
0 commit comments