@@ -66,7 +66,11 @@ def _list_outputs(self):
66
66
67
67
class Mesh2PVEInputSpec (CommandLineInputSpec ):
68
68
in_file = File (
69
- exists = True , argstr = "%s" , mandatory = True , position = - 3 , desc = "input mesh"
69
+ exists = True ,
70
+ argstr = "%s" ,
71
+ mandatory = True ,
72
+ position = - 3 ,
73
+ desc = "input mesh" ,
70
74
)
71
75
reference = File (
72
76
exists = True ,
@@ -134,9 +138,15 @@ class Generate5ttInputSpec(MRTrix3BaseInputSpec):
134
138
desc = "tissue segmentation algorithm" ,
135
139
)
136
140
in_file = File (
137
- exists = True , argstr = "%s" , mandatory = True , position = - 2 , desc = "input image"
141
+ exists = True ,
142
+ argstr = "%s" ,
143
+ mandatory = True ,
144
+ position = - 2 ,
145
+ desc = "input image" ,
146
+ )
147
+ out_file = File (
148
+ argstr = "%s" , mandatory = True , position = - 1 , desc = "output image"
138
149
)
139
- out_file = File (argstr = "%s" , mandatory = True , position = - 1 , desc = "output image" )
140
150
141
151
142
152
class Generate5ttOutputSpec (TraitedSpec ):
@@ -173,13 +183,21 @@ def _list_outputs(self):
173
183
174
184
class TensorMetricsInputSpec (CommandLineInputSpec ):
175
185
in_file = File (
176
- exists = True , argstr = "%s" , mandatory = True , position = - 1 , desc = "input DTI image"
186
+ exists = True ,
187
+ argstr = "%s" ,
188
+ mandatory = True ,
189
+ position = - 1 ,
190
+ desc = "input DTI image" ,
177
191
)
178
192
179
193
out_fa = File (argstr = "-fa %s" , desc = "output FA file" )
180
194
out_adc = File (argstr = "-adc %s" , desc = "output ADC file" )
181
- out_evec = File (argstr = "-vector %s" , desc = "output selected eigenvector(s) file" )
182
- out_eval = File (argstr = "-value %s" , desc = "output selected eigenvalue(s) file" )
195
+ out_evec = File (
196
+ argstr = "-vector %s" , desc = "output selected eigenvector(s) file"
197
+ )
198
+ out_eval = File (
199
+ argstr = "-value %s" , desc = "output selected eigenvalue(s) file"
200
+ )
183
201
component = traits .List (
184
202
[1 ],
185
203
usedefault = True ,
@@ -194,7 +212,8 @@ class TensorMetricsInputSpec(CommandLineInputSpec):
194
212
exists = True ,
195
213
argstr = "-mask %s" ,
196
214
desc = (
197
- "only perform computation within the specified binary" " brain mask image"
215
+ "only perform computation within the specified binary"
216
+ " brain mask image"
198
217
),
199
218
)
200
219
modulate = traits .Enum (
@@ -246,10 +265,18 @@ def _list_outputs(self):
246
265
247
266
class ComputeTDIInputSpec (CommandLineInputSpec ):
248
267
in_file = File (
249
- exists = True , argstr = "%s" , mandatory = True , position = - 2 , desc = "input tractography"
268
+ exists = True ,
269
+ argstr = "%s" ,
270
+ mandatory = True ,
271
+ position = - 2 ,
272
+ desc = "input tractography" ,
250
273
)
251
274
out_file = File (
252
- "tdi.mif" , argstr = "%s" , usedefault = True , position = - 1 , desc = "output TDI file"
275
+ "tdi.mif" ,
276
+ argstr = "%s" ,
277
+ usedefault = True ,
278
+ position = - 1 ,
279
+ desc = "output TDI file" ,
253
280
)
254
281
reference = File (
255
282
exists = True ,
@@ -274,7 +301,8 @@ class ComputeTDIInputSpec(CommandLineInputSpec):
274
301
)
275
302
max_tod = traits .Int (
276
303
argstr = "-tod %d" ,
277
- desc = "generate a Track Orientation " "Distribution (TOD) in each voxel." ,
304
+ desc = "generate a Track Orientation "
305
+ "Distribution (TOD) in each voxel." ,
278
306
)
279
307
280
308
contrast = traits .Enum (
@@ -353,7 +381,8 @@ class ComputeTDIInputSpec(CommandLineInputSpec):
353
381
"(these lengths are then taken into account during TWI calculation)" ,
354
382
)
355
383
ends_only = traits .Bool (
356
- argstr = "-ends_only" , desc = "only map the streamline" " endpoints to the image"
384
+ argstr = "-ends_only" ,
385
+ desc = "only map the streamline" " endpoints to the image" ,
357
386
)
358
387
359
388
tck_weights = File (
@@ -363,7 +392,8 @@ class ComputeTDIInputSpec(CommandLineInputSpec):
363
392
)
364
393
nthreads = traits .Int (
365
394
argstr = "-nthreads %d" ,
366
- desc = "number of threads. if zero, the number" " of available cpus will be used" ,
395
+ desc = "number of threads. if zero, the number"
396
+ " of available cpus will be used" ,
367
397
nohash = True ,
368
398
)
369
399
@@ -438,10 +468,18 @@ def _list_outputs(self):
438
468
439
469
class TCK2VTKInputSpec (CommandLineInputSpec ):
440
470
in_file = File (
441
- exists = True , argstr = "%s" , mandatory = True , position = - 2 , desc = "input tractography"
471
+ exists = True ,
472
+ argstr = "%s" ,
473
+ mandatory = True ,
474
+ position = - 2 ,
475
+ desc = "input tractography" ,
442
476
)
443
477
out_file = File (
444
- "tracks.vtk" , argstr = "%s" , usedefault = True , position = - 1 , desc = "output VTK file"
478
+ "tracks.vtk" ,
479
+ argstr = "%s" ,
480
+ usedefault = True ,
481
+ position = - 1 ,
482
+ desc = "output VTK file" ,
445
483
)
446
484
reference = File (
447
485
exists = True ,
@@ -460,7 +498,8 @@ class TCK2VTKInputSpec(CommandLineInputSpec):
460
498
461
499
nthreads = traits .Int (
462
500
argstr = "-nthreads %d" ,
463
- desc = "number of threads. if zero, the number" " of available cpus will be used" ,
501
+ desc = "number of threads. if zero, the number"
502
+ " of available cpus will be used" ,
464
503
nohash = True ,
465
504
)
466
505
@@ -498,9 +537,15 @@ def _list_outputs(self):
498
537
499
538
class DWIExtractInputSpec (MRTrix3BaseInputSpec ):
500
539
in_file = File (
501
- exists = True , argstr = "%s" , mandatory = True , position = - 2 , desc = "input image"
540
+ exists = True ,
541
+ argstr = "%s" ,
542
+ mandatory = True ,
543
+ position = - 2 ,
544
+ desc = "input image" ,
545
+ )
546
+ out_file = File (
547
+ argstr = "%s" , mandatory = True , position = - 1 , desc = "output image"
502
548
)
503
- out_file = File (argstr = "%s" , mandatory = True , position = - 1 , desc = "output image" )
504
549
bzero = traits .Bool (argstr = "-bzero" , desc = "extract b=0 volumes" )
505
550
nobzero = traits .Bool (argstr = "-no_bzero" , desc = "extract non b=0 volumes" )
506
551
singleshell = traits .Bool (
@@ -549,7 +594,11 @@ def _list_outputs(self):
549
594
550
595
class MRConvertInputSpec (MRTrix3BaseInputSpec ):
551
596
in_file = File (
552
- exists = True , argstr = "%s" , mandatory = True , position = - 2 , desc = "input image"
597
+ exists = True ,
598
+ argstr = "%s" ,
599
+ mandatory = True ,
600
+ position = - 2 ,
601
+ desc = "input image" ,
553
602
)
554
603
out_file = File (
555
604
"dwi.mif" ,
@@ -566,7 +615,10 @@ class MRConvertInputSpec(MRTrix3BaseInputSpec):
566
615
desc = "extract data at the specified coordinates" ,
567
616
)
568
617
vox = traits .List (
569
- traits .Float , sep = "," , argstr = "-vox %s" , desc = "change the voxel dimensions"
618
+ traits .Float ,
619
+ sep = "," ,
620
+ argstr = "-vox %s" ,
621
+ desc = "change the voxel dimensions" ,
570
622
)
571
623
axes = traits .List (
572
624
traits .Int ,
@@ -580,6 +632,12 @@ class MRConvertInputSpec(MRTrix3BaseInputSpec):
580
632
argstr = "-scaling %s" ,
581
633
desc = "specify the data scaling parameter" ,
582
634
)
635
+ json_import = File (
636
+ exists = True ,
637
+ argstr = "-json_import %s" ,
638
+ mandatory = False ,
639
+ desc = "import data from a JSON file into header key-value pairs" ,
640
+ )
583
641
584
642
585
643
class MRConvertOutputSpec (TraitedSpec ):
@@ -615,9 +673,15 @@ def _list_outputs(self):
615
673
616
674
class MRMathInputSpec (MRTrix3BaseInputSpec ):
617
675
in_file = File (
618
- exists = True , argstr = "%s" , mandatory = True , position = - 3 , desc = "input image"
676
+ exists = True ,
677
+ argstr = "%s" ,
678
+ mandatory = True ,
679
+ position = - 3 ,
680
+ desc = "input image" ,
681
+ )
682
+ out_file = File (
683
+ argstr = "%s" , mandatory = True , position = - 1 , desc = "output image"
619
684
)
620
- out_file = File (argstr = "%s" , mandatory = True , position = - 1 , desc = "output image" )
621
685
operation = traits .Enum (
622
686
"mean" ,
623
687
"median" ,
@@ -637,7 +701,9 @@ class MRMathInputSpec(MRTrix3BaseInputSpec):
637
701
desc = "operation to computer along a specified axis" ,
638
702
)
639
703
axis = traits .Int (
640
- 0 , argstr = "-axis %d" , desc = "specfied axis to perform the operation along"
704
+ 0 ,
705
+ argstr = "-axis %d" ,
706
+ desc = "specfied axis to perform the operation along" ,
641
707
)
642
708
643
709
@@ -677,7 +743,11 @@ def _list_outputs(self):
677
743
678
744
class MRResizeInputSpec (MRTrix3BaseInputSpec ):
679
745
in_file = File (
680
- exists = True , argstr = "%s" , position = - 2 , mandatory = True , desc = "input DWI image"
746
+ exists = True ,
747
+ argstr = "%s" ,
748
+ position = - 2 ,
749
+ mandatory = True ,
750
+ desc = "input DWI image" ,
681
751
)
682
752
image_size = traits .Tuple (
683
753
(traits .Int , traits .Int , traits .Int ),
@@ -794,7 +864,9 @@ class SHConvInputSpec(CommandLineInputSpec):
794
864
795
865
796
866
class SHConvOutputSpec (TraitedSpec ):
797
- out_file = File (exists = True , desc = "the output convoluted spherical harmonics file" )
867
+ out_file = File (
868
+ exists = True , desc = "the output convoluted spherical harmonics file"
869
+ )
798
870
799
871
800
872
class SHConv (CommandLine ):
@@ -858,7 +930,9 @@ class SH2AmpInputSpec(CommandLineInputSpec):
858
930
859
931
860
932
class SH2AmpOutputSpec (TraitedSpec ):
861
- out_file = File (exists = True , desc = "the output convoluted spherical harmonics file" )
933
+ out_file = File (
934
+ exists = True , desc = "the output convoluted spherical harmonics file"
935
+ )
862
936
863
937
864
938
class SH2Amp (CommandLine ):
0 commit comments