Skip to content

Commit a27a416

Browse files
committed
fix errors and missing parts
1 parent f03d224 commit a27a416

File tree

1 file changed

+4
-22
lines changed

1 file changed

+4
-22
lines changed

nipype/interfaces/mrtrix3/connectivity.py

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -95,35 +95,17 @@ class BuildConnectome(MRTrix3Base):
9595
9696
>>> import nipype.interfaces.mrtrix3 as mrt
9797
>>> 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'
100100
>>> 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'
102102
>>> mat.run() # doctest: +SKIP
103103
"""
104104

105-
_cmd = 'labelconfig'
105+
_cmd = 'tck2connectome'
106106
input_spec = BuildConnectomeInputSpec
107107
output_spec = BuildConnectomeOutputSpec
108108

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-
127109
def _list_outputs(self):
128110
outputs = self.output_spec().get()
129111
outputs['out_file'] = op.abspath(self.inputs.out_file)

0 commit comments

Comments
 (0)