@@ -84,24 +84,41 @@ def _gen_outfilename(self):
84
84
class DWI2TensorInputSpec (CommandLineInputSpec ):
85
85
in_file = InputMultiPath (File (exists = True ), argstr = '%s' , mandatory = True ,
86
86
position = - 2 , desc = 'Diffusion-weighted images' )
87
- out_filename = File (name_template = "%s_tensor.mif" , name_source = "in_file" , output_name = "tensor" ,
88
- argstr = '%s' , posidesc = 'Output tensor filename' , position = - 1 )
89
- encoding_file = File (argstr = '-grad %s' , position = 2 ,
87
+ out_filename = File (name_template = "%s_tensor.mif" , name_source = "in_file" ,
88
+ output_name = "tensor" , argstr = '%s' ,
89
+ desc = 'Output tensor filename' , position = - 1 )
90
+ encoding_file = File (argstr = '-grad %s' , position = 2 ,
90
91
desc = ('Encoding file supplied as a 4xN text file with '
91
92
'each line is in the format [ X Y Z b ], where '
92
93
'[ X Y Z ] describe the direction of the applied '
93
94
'gradient, and b gives the b-value in units '
94
95
'(1000 s/mm^2). See FSL2MRTrix()' ))
95
96
ignore_slice_by_volume = traits .List (traits .Int , argstr = '-ignoreslices %s' ,
96
- sep = ' ' , position = 2 , minlen = 2 , maxlen = 2 ,
97
- desc = 'Requires two values (i.e. [34 1] for [Slice Volume] Ignores the image slices specified when computing the tensor. Slice here means the z coordinate of the slice to be ignored.' )
98
- ignore_volumes = traits .List (traits .Int , argstr = '-ignorevolumes %s' , sep = ' ' , position = 2 , minlen = 1 ,
99
- desc = 'Requires two values (i.e. [2 5 6] for [Volumes] Ignores the image volumes specified when computing the tensor.' )
100
- quiet = traits .Bool (argstr = '-quiet' , position = 1 , desc = "Do not display information messages or progress status." )
101
- debug = traits .Bool (argstr = '-debug' , position = 1 , desc = "Display debugging messages." )
97
+ sep = ' ' , position = 2 , minlen = 2 ,
98
+ maxlen = 2 ,
99
+ desc = ('Requires two values (i.e. [34 '
100
+ '1] for [Slice Volume] Ignores '
101
+ 'the image slices specified '
102
+ 'when computing the tensor. '
103
+ 'Slice here means the z '
104
+ 'coordinate of the slice to be '
105
+ 'ignored.' ))
106
+ ignore_volumes = traits .List (traits .Int , argstr = '-ignorevolumes %s' ,
107
+ sep = ' ' , position = 2 , minlen = 1 ,
108
+ desc = ('Requires two values (i.e. [2 5 6] for '
109
+ '[Volumes] Ignores the image volumes '
110
+ 'specified when computing the tensor.' ))
111
+ quiet = traits .Bool (argstr = '-quiet' , position = 1 ,
112
+ desc = ("Do not display information messages or progress "
113
+ "status." ))
114
+ debug = traits .Bool (argstr = '-debug' , position = 1 ,
115
+ desc = "Display debugging messages." )
116
+
102
117
103
118
class DWI2TensorOutputSpec (TraitedSpec ):
104
- tensor = File (exists = True , desc = 'path/name of output diffusion tensor image' )
119
+ tensor = File (exists = True ,
120
+ desc = 'path/name of output diffusion tensor image' )
121
+
105
122
106
123
class DWI2Tensor (CommandLine ):
107
124
"""
0 commit comments