13
13
14
14
class BseInputSpec (CommandLineInputSpec ):
15
15
16
- inputMRIFile = File (exists = True , mandatory = True , argstr = '-i %s' ,
17
- desc = 'input MRI volume' , position = 0 )
18
- outputMRIVolume = File (mandatory = False ,
19
- desc = 'output brain-masked MRI volume. If'
16
+ inputMRIFile = File (mandatory = True , argstr = '-i %s' ,
17
+ desc = 'input MRI volume' )
18
+ outputMRIVolume = File (desc = 'output brain-masked MRI volume. If'
20
19
'unspecified, output file name will be auto'
21
20
'generated.' ,
22
- argstr = '-o %s' , position = 1 , hash_files = False ,
23
- genfile = True )
21
+ argstr = '-o %s' , hash_files = False , genfile = True )
24
22
diffusionConstant = traits .Float (25 , usedefault = True ,
25
23
desc = 'diffusion constant' , argstr = '-d %f' )
26
24
diffusionIterations = traits .Int (3 , usedefault = True ,
@@ -36,7 +34,7 @@ class BseInputSpec(CommandLineInputSpec):
36
34
desc = 'dilate final mask' , argstr = '-p' )
37
35
trim = traits .Bool (True , usedefault = True , desc = 'trim brainstem' ,
38
36
argstr = '--trim' )
39
- outputMaskFile = File (mandatory = False , desc = 'save smooth brain mask' ,
37
+ outputMaskFile = File (desc = 'save smooth brain mask' ,
40
38
argstr = '--mask %s' , hash_files = False )
41
39
outputDiffusionFilter = File (desc = 'diffusion filter output' ,
42
40
argstr = '--adf %s' , hash_files = False )
@@ -84,15 +82,13 @@ def _list_outputs(self):
84
82
85
83
86
84
class BfcInputSpec (CommandLineInputSpec ):
87
- inputMRIFile = File (exists = True , mandatory = True ,
88
- desc = 'input skull-stripped MRI volume' ,
89
- argstr = '-i %s' , position = 0 )
85
+ inputMRIFile = File (mandatory = True ,
86
+ desc = 'input skull-stripped MRI volume' , argstr = '-i %s' )
90
87
inputMaskFile = File (desc = 'mask file' , argstr = '-m %s' , hash_files = False )
91
- outputMRIVolume = File (mandatory = False ,
92
- desc = 'output bias-corrected MRI volume.'
88
+ outputMRIVolume = File (desc = 'output bias-corrected MRI volume.'
93
89
'If unspecified, output file name'
94
90
'will be auto generated.' , argstr = '-o %s' ,
95
- position = 1 , hash_files = False , genfile = True )
91
+ hash_files = False , genfile = True )
96
92
outputBiasField = File (desc = 'save bias field estimate' ,
97
93
argstr = '--bias %s' , hash_files = False )
98
94
outputMaskedBiasField = File (desc = 'save bias field estimate (masked)' ,
@@ -191,10 +187,8 @@ def _list_outputs(self):
191
187
class PvcInputSpec (CommandLineInputSpec ):
192
188
inputMRIFile = File (mandatory = True , desc = 'MRI file' , argstr = '-i %s' )
193
189
inputMaskFile = File (desc = 'brain mask file' , argstr = '-m %s' )
194
- outputLabelFile = File (
195
- mandatory = False , desc = 'output label file. If unspecified, output file name will be auto generated.' , argstr = '-o %s' , genfile = True )
196
- outputTissueFractionFile = File (
197
- mandatory = False , desc = 'output tissue fraction file' , argstr = '-f %s' , genfile = True )
190
+ outputLabelFile = File (desc = 'output label file. If unspecified, output file name will be auto generated.' , argstr = '-o %s' , genfile = True )
191
+ outputTissueFractionFile = File (desc = 'output tissue fraction file' , argstr = '-f %s' , genfile = True )
198
192
spatialPrior = traits .Float (desc = 'spatial prior strength' , argstr = '-l %f' )
199
193
verbosity = traits .Int (desc = 'verbosity level (0 = silent)' , argstr = '-v %d' )
200
194
threeClassFlag = traits .Bool (
@@ -234,10 +228,10 @@ class CerebroInputSpec(CommandLineInputSpec):
234
228
inputAtlasLabelFile = File (
235
229
mandatory = True , desc = 'atlas labeling' , argstr = '--atlaslabels %s' )
236
230
inputBrainMaskFile = File (desc = 'brain mask file' , argstr = '-m %s' )
237
- outputCerebrumMaskFile = File (
238
- mandatory = False , desc = 'output cerebrum mask volume. If unspecified, output file name will be auto generated.' , argstr = '-o %s' , genfile = True )
239
- outputLabelMaskFile = File (
240
- mandatory = False , desc = 'output labeled hemisphere/cerebrum volume. If unspecified, output file name will be auto generated.' , argstr = '-l %s' , genfile = True )
231
+ outputCerebrumMaskFile = File (desc = 'output cerebrum mask volume. If unspecified, output file name will be auto generated.' ,
232
+ argstr = '-o %s' , genfile = True )
233
+ outputLabelMaskFile = File (desc = 'output labeled hemisphere/cerebrum volume. If unspecified, output file name will be auto generated.' ,
234
+ argstr = '-l %s' , genfile = True )
241
235
costFunction = traits .Int (2 , usedefault = True , desc = '0,1,2' , argstr = '-c %d' )
242
236
useCentroids = traits .Bool (
243
237
desc = 'use centroids of data to initialize position' , argstr = '--centroids' )
@@ -290,7 +284,7 @@ class CortexInputSpec(CommandLineInputSpec):
290
284
inputHemisphereLabelFile = File (
291
285
mandatory = True , desc = 'hemisphere / lobe label volume' , argstr = '-h %s' )
292
286
outputCerebrumMask = File (
293
- mandatory = False , desc = 'output structure mask. If unspecified, output file name will be auto generated.' , argstr = '-o %s' , genfile = True )
287
+ desc = 'output structure mask. If unspecified, output file name will be auto generated.' , argstr = '-o %s' , genfile = True )
294
288
inputTissueFractionFile = File (
295
289
mandatory = True , desc = 'tissue fraction file (32-bit float)' , argstr = '-f %s' )
296
290
tissueFractionThreshold = traits .Float (
@@ -331,7 +325,7 @@ class ScrubmaskInputSpec(CommandLineInputSpec):
331
325
inputMaskFile = File (
332
326
mandatory = True , desc = 'input structure mask file' , argstr = '-i %s' )
333
327
outputMaskFile = File (
334
- mandatory = False , desc = 'output structure mask file. If unspecified, output file name will be auto generated.' , argstr = '-o %s' , genfile = True )
328
+ desc = 'output structure mask file. If unspecified, output file name will be auto generated.' , argstr = '-o %s' , genfile = True )
335
329
backgroundFillThreshold = traits .Int (
336
330
2 , usedefault = True , desc = 'background fill threshold' , argstr = '-b %d' )
337
331
foregroundTrimThreshold = traits .Int (
@@ -369,7 +363,7 @@ class TcaInputSpec(CommandLineInputSpec):
369
363
inputMaskFile = File (
370
364
mandatory = True , desc = 'input mask volume' , argstr = '-i %s' )
371
365
outputMaskFile = File (
372
- mandatory = False , desc = 'output mask volume. If unspecified, output file name will be auto generated.' , argstr = '-o %s' , genfile = True )
366
+ desc = 'output mask volume. If unspecified, output file name will be auto generated.' , argstr = '-o %s' , genfile = True )
373
367
minCorrectionSize = traits .Int (
374
368
2500 , usedefault = True , desc = 'maximum correction size' , argstr = '-m %d' )
375
369
maxCorrectionSize = traits .Int (
@@ -406,7 +400,7 @@ def _list_outputs(self):
406
400
class DewispInputSpec (CommandLineInputSpec ):
407
401
inputMaskFile = File (mandatory = True , desc = 'input file' , argstr = '-i %s' )
408
402
outputMaskFile = File (
409
- mandatory = False , desc = 'output file. If unspecified, output file name will be auto generated.' , argstr = '-o %s' , genfile = True )
403
+ desc = 'output file. If unspecified, output file name will be auto generated.' , argstr = '-o %s' , genfile = True )
410
404
verbosity = traits .Int (desc = 'verbosity' , argstr = '-v %d' )
411
405
sizeThreshold = traits .Int (desc = 'size threshold' , argstr = '-t %d' )
412
406
maximumIterations = traits .Int (
@@ -441,7 +435,7 @@ class DfsInputSpec(CommandLineInputSpec):
441
435
inputVolumeFile = File (
442
436
mandatory = True , desc = 'input 3D volume' , argstr = '-i %s' )
443
437
outputSurfaceFile = File (
444
- mandatory = False , desc = 'output surface mesh file. If unspecified, output file name will be auto generated.' , argstr = '-o %s' , genfile = True )
438
+ desc = 'output surface mesh file. If unspecified, output file name will be auto generated.' , argstr = '-o %s' , genfile = True )
445
439
inputShadingVolume = File (
446
440
desc = 'shade surface model with data from image volume' , argstr = '-c %s' )
447
441
smoothingIterations = traits .Int (
@@ -501,7 +495,7 @@ def _list_outputs(self):
501
495
class PialmeshInputSpec (CommandLineInputSpec ):
502
496
inputSurfaceFile = File (mandatory = True , desc = 'input file' , argstr = '-i %s' )
503
497
outputSurfaceFile = File (
504
- mandatory = False , desc = 'output file. If unspecified, output file name will be auto generated.' , argstr = '-o %s' , genfile = True )
498
+ desc = 'output file. If unspecified, output file name will be auto generated.' , argstr = '-o %s' , genfile = True )
505
499
verbosity = traits .Int (desc = 'verbosity' , argstr = '-v %d' )
506
500
inputTissueFractionFile = File (
507
501
mandatory = True , desc = 'floating point (32) tissue fraction image' , argstr = '-f %s' )
@@ -562,7 +556,7 @@ class SkullfinderInputSpec(CommandLineInputSpec):
562
556
inputMaskFile = File (
563
557
mandatory = True , desc = 'A brain mask file, 8-bit image (0=non-brain, 255=brain)' , argstr = '-m %s' )
564
558
outputLabelFile = File (
565
- mandatory = False , desc = 'output file. If unspecified, output file name will be auto generated.' , argstr = '-o %s' , genfile = True )
559
+ desc = 'output file. If unspecified, output file name will be auto generated.' , argstr = '-o %s' , genfile = True )
566
560
verbosity = traits .Int (desc = 'verbosity' , argstr = '-v %d' )
567
561
lowerThreshold = traits .Int (
568
562
desc = 'Lower threshold for segmentation' , argstr = '-l %d' )
@@ -613,15 +607,15 @@ class HemisplitInputSpec(CommandLineInputSpec):
613
607
inputHemisphereLabelFile = File (
614
608
mandatory = True , desc = 'input hemisphere label volume' , argstr = '-l %s' )
615
609
outputLeftHemisphere = File (
616
- mandatory = False , desc = 'output surface file, left hemisphere. If unspecified, output file name will be auto generated.' , argstr = '--left %s' , genfile = True )
610
+ desc = 'output surface file, left hemisphere. If unspecified, output file name will be auto generated.' , argstr = '--left %s' , genfile = True )
617
611
outputRightHemisphere = File (
618
- mandatory = False , desc = 'output surface file, right hemisphere. If unspecified, output file name will be auto generated.' , argstr = '--right %s' , genfile = True )
612
+ desc = 'output surface file, right hemisphere. If unspecified, output file name will be auto generated.' , argstr = '--right %s' , genfile = True )
619
613
pialSurfaceFile = File (
620
614
desc = 'pial surface file -- must have same geometry as input surface' , argstr = '-p %s' )
621
615
outputLeftPialHemisphere = File (
622
- mandatory = False , desc = 'output pial surface file, left hemisphere. If unspecified, output file name will be auto generated.' , argstr = '-pl %s' , genfile = True )
616
+ desc = 'output pial surface file, left hemisphere. If unspecified, output file name will be auto generated.' , argstr = '-pl %s' , genfile = True )
623
617
outputRightPialHemisphere = File (
624
- mandatory = False , desc = 'output pial surface file, right hemisphere. If unspecified, output file name will be auto generated.' , argstr = '-pr %s' , genfile = True )
618
+ desc = 'output pial surface file, right hemisphere. If unspecified, output file name will be auto generated.' , argstr = '-pr %s' , genfile = True )
625
619
verbosity = traits .Int (desc = 'verbosity (0 = silent)' , argstr = '-v %d' )
626
620
timer = traits .Bool (desc = 'timing function' , argstr = '--timer' )
627
621
0 commit comments