@@ -459,6 +459,7 @@ class ParcellateInputSpec(BaseInterfaceInputSpec):
459
459
460
460
class ParcellateOutputSpec (TraitedSpec ):
461
461
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' )
462
463
white_matter_mask_file = File (exists = True , desc = 'White matter mask file' )
463
464
cc_unknown_file = File (desc = 'Image file with regions labelled as unknown cortical structures' ,
464
465
exists = True )
@@ -468,7 +469,8 @@ class ParcellateOutputSpec(TraitedSpec):
468
469
exists = True )
469
470
roi_file_in_structural_space = File (desc = 'ROI image resliced to the dimensions of the original structural image' ,
470
471
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 )
472
474
473
475
class Parcellate (BaseInterface ):
474
476
"""Subdivides segmented ROI file into smaller subregions
@@ -500,9 +502,9 @@ def _run_interface(self, runtime):
500
502
raise Exception
501
503
iflogger .info ("ROI_HR_th.nii.gz / fsmask_1mm.nii.gz CREATION" )
502
504
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 )
504
506
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 )
506
508
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 )
507
509
return runtime
508
510
@@ -512,11 +514,13 @@ def _list_outputs(self):
512
514
outputs ['roi_file' ] = op .abspath (self .inputs .out_roi_file )
513
515
else :
514
516
outputs ['roi_file' ] = op .abspath (self ._gen_outfilename ('nii.gz' , 'ROI' ))
517
+ outputs ['roiv_file' ] = op .abspath (self ._gen_outfilename ('nii.gz' , 'ROIv' ))
515
518
outputs ['white_matter_mask_file' ] = op .abspath ('fsmask_1mm.nii.gz' )
516
519
outputs ['cc_unknown_file' ] = op .abspath ('cc_unknown.nii.gz' )
517
520
outputs ['ribbon_file' ] = op .abspath ('ribbon.nii.gz' )
518
521
outputs ['aseg_file' ] = op .abspath ('aseg.nii.gz' )
519
522
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' )
520
524
return outputs
521
525
522
526
def _gen_outfilename (self , ext , prefix = 'ROI' ):
0 commit comments