@@ -95,35 +95,17 @@ class BuildConnectome(MRTrix3Base):
95
95
96
96
>>> import nipype.interfaces.mrtrix3 as mrt
97
97
>>> mat = mrt.BuildConnectome()
98
- >>> mat.inputs.in_file = 'aparc+aseg.nii.gz '
99
- >>> mat.inputs.in_config = 'mrtrix3_labelconfig.txt '
98
+ >>> mat.inputs.in_file = 'tracked.tck '
99
+ >>> mat.inputs.in_parc = 'aparc+aseg.nii.gz '
100
100
>>> mat.cmdline # doctest: +ELLIPSIS
101
- 'labelconfig aparc+aseg.nii.gz mrtrix3_labelconfig.txt parcellation.mif '
101
+ 'tck2connectome tracked.tck aparc+aseg.nii.gz connectome.csv '
102
102
>>> mat.run() # doctest: +SKIP
103
103
"""
104
104
105
- _cmd = 'labelconfig '
105
+ _cmd = 'tck2connectome '
106
106
input_spec = BuildConnectomeInputSpec
107
107
output_spec = BuildConnectomeOutputSpec
108
108
109
- def _parse_inputs (self , skip = None ):
110
- if skip is None :
111
- skip = []
112
-
113
- if not isdefined (self .inputs .in_config ):
114
- from distutils .spawn import find_executable
115
- path = find_executable (self ._cmd )
116
- if path is None :
117
- path = os .getenv (MRTRIX3_HOME , '/opt/mrtrix3' )
118
- else :
119
- path = op .dirname (op .dirname (path ))
120
-
121
- self .inputs .in_config = op .join (
122
- path , 'src/dwi/tractography/connectomics/'
123
- 'example_configs/fs_default.txt' )
124
-
125
- return super (BuildConnectome , self )._parse_inputs (skip = skip )
126
-
127
109
def _list_outputs (self ):
128
110
outputs = self .output_spec ().get ()
129
111
outputs ['out_file' ] = op .abspath (self .inputs .out_file )
0 commit comments