NIPY logo
Home · Quickstart · Documentation · Citation · NiPy
Loading

Table Of Contents

Versions

ReleaseDevel
0.5.3pre-0.6
Download Github

Links

interfaces.cmtk.parcellation

Parcellate

Code: file:///tmp/buildd/nipype-0.5.3/nipype/interfaces/cmtk/parcellation.py#L376

Subdivides segmented ROI file into smaller subregions

This interface implements the same procedure as in the ConnectomeMapper’s parcellation stage (cmp/stages/parcellation/maskcreation.py) for a single parcellation scheme (e.g. ‘scale500’).

Example

>>> import nipype.interfaces.cmtk as cmtk
>>> parcellate = cmtk.Parcellate()
>>> parcellate.inputs.freesurfer_dir = '.'
>>> parcellate.inputs.subjects_dir = '.'
>>> parcellate.inputs.subject_id = 'subj1'
>>> parcellate.inputs.parcellation_name = 'scale500'
>>> parcellate.run()                 

Inputs:

[Mandatory]
subject_id: (a string)
        Subject ID

[Optional]
freesurfer_dir: (a directory name)
        Freesurfer main directory
ignore_exception: (a boolean, nipype default value: False)
        Print an error message instead of throwing an exception in case the interface fails to
        run
out_roi_file: (a file name)
        Region of Interest file for connectivity mapping
parcellation_name: ('scale33' or 'scale60' or 'scale125' or 'scale250' or 'scale500',
         nipype default value: scale500)
subjects_dir: (a directory name)
        Freesurfer main directory

Outputs:

aseg_file: (an existing file name)
        Automated segmentation file converted from Freesurfer "subjects" directory
cc_unknown_file: (an existing file name)
        Image file with regions labelled as unknown cortical structures
ribbon_file: (an existing file name)
        Image file detailing the cortical ribbon
roi_file: (an existing file name)
        Region of Interest file for connectivity mapping
roi_file_in_structural_space: (an existing file name)
        ROI image resliced to the dimensions of the original structural image
white_matter_mask_file: (a file name)
        White matter mask file

create_roi()

Code: file:///tmp/buildd/nipype-0.5.3/nipype/interfaces/cmtk/parcellation.py#L105

Creates the ROI_%s.nii.gz files using the given parcellation information from networks. Iteratively create volume.