11
11
)
12
12
13
13
14
- class bseInputSpec (CommandLineInputSpec ):
14
+ class BseInputSpec (CommandLineInputSpec ):
15
15
16
16
inputMRIFile = File (exists = True , mandatory = True , argstr = '-i %s' ,
17
17
desc = 'input MRI volume' , position = 0 )
@@ -55,7 +55,7 @@ class bseInputSpec(CommandLineInputSpec):
55
55
timer = traits .Bool (desc = 'show timing' , argstr = '--timer' )
56
56
57
57
58
- class bseOutputSpec (TraitedSpec ):
58
+ class BseOutputSpec (TraitedSpec ):
59
59
outputMRIVolume = File (desc = 'path/name of brain-masked MRI volume' )
60
60
outputMaskFile = File (desc = 'path/name of smooth brain mask' )
61
61
outputDiffusionFilter = File (desc = 'path/name of diffusion filter output' )
@@ -64,9 +64,9 @@ class bseOutputSpec(TraitedSpec):
64
64
outputCortexFile = File (desc = 'path/name of cortex file' )
65
65
66
66
67
- class bse (CommandLine ):
68
- input_spec = bseInputSpec
69
- output_spec = bseOutputSpec
67
+ class Bse (CommandLine ):
68
+ input_spec = BseInputSpec
69
+ output_spec = BseOutputSpec
70
70
_cmd = 'bse'
71
71
72
72
def _gen_filename (self , name ):
@@ -88,16 +88,16 @@ def _list_outputs(self):
88
88
return l_outputs (self )
89
89
90
90
91
- class bfcInputSpec (CommandLineInputSpec ):
91
+ class BfcInputSpec (CommandLineInputSpec ):
92
92
inputMRIFile = File (exists = True , mandatory = True ,
93
93
desc = 'input skull-stripped MRI volume' ,
94
94
argstr = '-i %s' , position = 0 )
95
+ inputMaskFile = File (desc = 'mask file' , argstr = '-m %s' , hash_files = False )
95
96
outputMRIVolume = File (mandatory = False ,
96
97
desc = 'output bias-corrected MRI volume.'
97
98
'If unspecified, output file name'
98
99
'will be auto generated.' , argstr = '-o %s' ,
99
100
position = 1 , hash_files = False , genfile = True )
100
- outputMaskFile = File (desc = 'mask file' , argstr = '-m %s' , hash_files = False )
101
101
outputBiasField = File (desc = 'save bias field estimate' ,
102
102
argstr = '--bias %s' , hash_files = False )
103
103
outputMaskedBiasField = File (desc = 'save bias field estimate (masked)' ,
@@ -157,17 +157,16 @@ class bfcInputSpec(CommandLineInputSpec):
157
157
timer = traits .Bool (desc = 'display timing information' , argstr = '--timer' )
158
158
159
159
160
- class bfcOutputSpec (TraitedSpec ):
160
+ class BfcOutputSpec (TraitedSpec ):
161
161
outputMRIVolume = File (desc = 'path/name of output file' )
162
- outputMaskFile = File (desc = 'path/name of mask output file' )
163
162
outputBiasField = File (desc = 'path/name of bias field output file' )
164
163
outputMaskedBiasField = File (desc = 'path/name of masked bias field output' )
165
164
correctionScheduleFile = File (desc = 'path/name of schedule file' )
166
165
167
166
168
- class bfc (CommandLine ):
169
- input_spec = bfcInputSpec
170
- output_spec = bfcOutputSpec
167
+ class Bfc (CommandLine ):
168
+ input_spec = BfcInputSpec
169
+ output_spec = BfcOutputSpec
171
170
_cmd = 'bfc'
172
171
173
172
def _gen_filename (self , name ):
@@ -191,13 +190,13 @@ def _format_arg(self, name, spec, value):
191
190
if name == 'intermediate_file_type' :
192
191
return spec .argstr % {"analyze" : "--analyze" , "nifti" : "--nifti" , "gzippedAnalyze" : "--analyzegz" , "gzippedNifti" : "--niftigz" }[value ]
193
192
194
- return super (bfc , self )._format_arg (name , spec , value )
193
+ return super (Bfc , self )._format_arg (name , spec , value )
195
194
196
195
def _list_outputs (self ):
197
196
return l_outputs (self )
198
197
199
198
200
- class pvcInputSpec (CommandLineInputSpec ):
199
+ class PvcInputSpec (CommandLineInputSpec ):
201
200
inputMRIFile = File (mandatory = True , desc = 'MRI file' , argstr = '-i %s' )
202
201
inputMaskFile = File (desc = 'brain mask file' , argstr = '-m %s' )
203
202
outputLabelFile = File (
@@ -211,14 +210,14 @@ class pvcInputSpec(CommandLineInputSpec):
211
210
timer = traits .Bool (desc = 'time processing' , argstr = '--timer' )
212
211
213
212
214
- class pvcOutputSpec (TraitedSpec ):
213
+ class PvcOutputSpec (TraitedSpec ):
215
214
outputLabelFile = File (desc = 'path/name of label file' )
216
215
outputTissueFractionFile = File (desc = 'path/name of tissue fraction file' )
217
216
218
217
219
- class pvc (CommandLine ):
220
- input_spec = pvcInputSpec
221
- output_spec = pvcOutputSpec
218
+ class Pvc (CommandLine ):
219
+ input_spec = PvcInputSpec
220
+ output_spec = PvcOutputSpec
222
221
_cmd = 'pvc'
223
222
224
223
def _gen_filename (self , name ):
@@ -240,7 +239,7 @@ def _list_outputs(self):
240
239
return l_outputs (self )
241
240
242
241
243
- class cerebroInputSpec (CommandLineInputSpec ):
242
+ class CerebroInputSpec (CommandLineInputSpec ):
244
243
inputMRIFile = File (
245
244
mandatory = True , desc = 'input 3D MRI volume' , argstr = '-i %s' )
246
245
inputAtlasMRIFile = File (
@@ -274,16 +273,16 @@ class cerebroInputSpec(CommandLineInputSpec):
274
273
desc = 'create a temporary directory within this directory' , argstr = '--tempdirbase %s' )
275
274
276
275
277
- class cerebroOutputSpec (TraitedSpec ):
276
+ class CerebroOutputSpec (TraitedSpec ):
278
277
outputCerebrumMaskFile = File (desc = 'path/name of cerebrum mask file' )
279
278
outputLabelMaskFile = File (desc = 'path/name of label mask file' )
280
279
outputAffineTransformFile = File (desc = 'path/name of affine transform file' )
281
280
outputWarpTransformFile = File (desc = 'path/name of warp transform file' )
282
281
283
282
284
- class cerebro (CommandLine ):
285
- input_spec = cerebroInputSpec
286
- output_spec = cerebroOutputSpec
283
+ class Cerebro (CommandLine ):
284
+ input_spec = CerebroInputSpec
285
+ output_spec = CerebroOutputSpec
287
286
_cmd = 'cerebro'
288
287
289
288
def _gen_filename (self , name ):
@@ -306,7 +305,7 @@ def _list_outputs(self):
306
305
return l_outputs (self )
307
306
308
307
309
- class cortexInputSpec (CommandLineInputSpec ):
308
+ class CortexInputSpec (CommandLineInputSpec ):
310
309
inputHemisphereLabelFile = File (
311
310
mandatory = True , desc = 'hemisphere / lobe label volume' , argstr = '-h %s' )
312
311
outputCerebrumMask = File (
@@ -325,13 +324,13 @@ class cortexInputSpec(CommandLineInputSpec):
325
324
timer = traits .Bool (desc = 'timing function' , argstr = '--timer' )
326
325
327
326
328
- class cortexOutputSpec (TraitedSpec ):
327
+ class CortexOutputSpec (TraitedSpec ):
329
328
outputCerebrumMask = File (desc = 'path/name of cerebrum mask' )
330
329
331
330
332
- class cortex (CommandLine ):
333
- input_spec = cortexInputSpec
334
- output_spec = cortexOutputSpec
331
+ class Cortex (CommandLine ):
332
+ input_spec = CortexInputSpec
333
+ output_spec = CortexOutputSpec
335
334
_cmd = 'cortex'
336
335
337
336
def _gen_filename (self , name ):
@@ -350,7 +349,7 @@ def _list_outputs(self):
350
349
return l_outputs (self )
351
350
352
351
353
- class scrubmaskInputSpec (CommandLineInputSpec ):
352
+ class ScrubmaskInputSpec (CommandLineInputSpec ):
354
353
inputMaskFile = File (
355
354
mandatory = True , desc = 'input structure mask file' , argstr = '-i %s' )
356
355
outputMaskFile = File (
@@ -364,13 +363,13 @@ class scrubmaskInputSpec(CommandLineInputSpec):
364
363
timer = traits .Bool (desc = 'timing function' , argstr = '--timer' )
365
364
366
365
367
- class scrubmaskOutputSpec (TraitedSpec ):
366
+ class ScrubmaskOutputSpec (TraitedSpec ):
368
367
outputMaskFile = File (desc = 'path/name of mask file' )
369
368
370
369
371
- class scrubmask (CommandLine ):
372
- input_spec = scrubmaskInputSpec
373
- output_spec = scrubmaskOutputSpec
370
+ class Scrubmask (CommandLine ):
371
+ input_spec = ScrubmaskInputSpec
372
+ output_spec = ScrubmaskOutputSpec
374
373
_cmd = 'scrubmask'
375
374
376
375
def _gen_filename (self , name ):
@@ -388,7 +387,7 @@ def _list_outputs(self):
388
387
return l_outputs (self )
389
388
390
389
391
- class tcaInputSpec (CommandLineInputSpec ):
390
+ class TcaInputSpec (CommandLineInputSpec ):
392
391
inputMaskFile = File (
393
392
mandatory = True , desc = 'input mask volume' , argstr = '-i %s' )
394
393
outputMaskFile = File (
@@ -403,13 +402,13 @@ class tcaInputSpec(CommandLineInputSpec):
403
402
timer = traits .Bool (desc = 'timing function' , argstr = '--timer' )
404
403
405
404
406
- class tcaOutputSpec (TraitedSpec ):
405
+ class TcaOutputSpec (TraitedSpec ):
407
406
outputMaskFile = File (desc = 'path/name of mask file' )
408
407
409
408
410
- class tca (CommandLine ):
411
- input_spec = tcaInputSpec
412
- output_spec = tcaOutputSpec
409
+ class Tca (CommandLine ):
410
+ input_spec = TcaInputSpec
411
+ output_spec = TcaOutputSpec
413
412
_cmd = 'tca'
414
413
415
414
def _gen_filename (self , name ):
@@ -428,7 +427,7 @@ def _list_outputs(self):
428
427
return l_outputs (self )
429
428
430
429
431
- class dewispInputSpec (CommandLineInputSpec ):
430
+ class DewispInputSpec (CommandLineInputSpec ):
432
431
inputMaskFile = File (mandatory = True , desc = 'input file' , argstr = '-i %s' )
433
432
outputMaskFile = File (
434
433
mandatory = False , desc = 'output file. If unspecified, output file name will be auto generated.' , argstr = '-o %s' , genfile = True )
@@ -439,13 +438,13 @@ class dewispInputSpec(CommandLineInputSpec):
439
438
timer = traits .Bool (desc = 'time processing' , argstr = '--timer' )
440
439
441
440
442
- class dewispOutputSpec (TraitedSpec ):
441
+ class DewispOutputSpec (TraitedSpec ):
443
442
outputMaskFile = File (desc = 'path/name of mask file' )
444
443
445
444
446
- class dewisp (CommandLine ):
447
- input_spec = dewispInputSpec
448
- output_spec = dewispOutputSpec
445
+ class Dewisp (CommandLine ):
446
+ input_spec = DewispInputSpec
447
+ output_spec = DewispOutputSpec
449
448
_cmd = 'dewisp'
450
449
451
450
def _gen_filename (self , name ):
@@ -464,7 +463,7 @@ def _list_outputs(self):
464
463
return l_outputs (self )
465
464
466
465
467
- class dfsInputSpec (CommandLineInputSpec ):
466
+ class DfsInputSpec (CommandLineInputSpec ):
468
467
inputVolumeFile = File (
469
468
mandatory = True , desc = 'input 3D volume' , argstr = '-i %s' )
470
469
outputSurfaceFile = File (
@@ -494,13 +493,13 @@ class dfsInputSpec(CommandLineInputSpec):
494
493
timer = traits .Bool (desc = 'timing function' , argstr = '--timer' )
495
494
496
495
497
- class dfsOutputSpec (TraitedSpec ):
496
+ class DfsOutputSpec (TraitedSpec ):
498
497
outputSurfaceFile = File (desc = 'path/name of surface file' )
499
498
500
499
501
- class dfs (CommandLine ):
502
- input_spec = dfsInputSpec
503
- output_spec = dfsOutputSpec
500
+ class Dfs (CommandLine ):
501
+ input_spec = DfsInputSpec
502
+ output_spec = DfsOutputSpec
504
503
_cmd = 'dfs'
505
504
506
505
def _format_arg (self , name , spec , value ):
@@ -509,7 +508,7 @@ def _format_arg(self, name, spec, value):
509
508
if name == 'specialTessellation' :
510
509
threshold = self .inputs .tessellationThreshold
511
510
return spec .argstr % {"greater_than" : '' .join (("-gt %f" % threshold )), "less_than" : '' .join (("-lt %f" % threshold )), "equal_to" : '' .join (("-eq %f" % threshold ))}[value ]
512
- return super (dfs , self )._format_arg (name , spec , value )
511
+ return super (Dfs , self )._format_arg (name , spec , value )
513
512
514
513
def _gen_filename (self , name ):
515
514
exec ('is_user_defined = isdefined(self.inputs.' + name + ')' )
@@ -527,7 +526,7 @@ def _list_outputs(self):
527
526
return l_outputs (self )
528
527
529
528
530
- class pialmeshInputSpec (CommandLineInputSpec ):
529
+ class PialmeshInputSpec (CommandLineInputSpec ):
531
530
inputSurfaceFile = File (mandatory = True , desc = 'input file' , argstr = '-i %s' )
532
531
outputSurfaceFile = File (
533
532
mandatory = False , desc = 'output file. If unspecified, output file name will be auto generated.' , argstr = '-o %s' , genfile = True )
@@ -555,21 +554,21 @@ class pialmeshInputSpec(CommandLineInputSpec):
555
554
laplacianSmoothing = traits .Float (
556
555
0.025 , usedefault = True , desc = 'apply Laplacian smoothing' , argstr = '--smooth %f' )
557
556
timer = traits .Bool (desc = 'show timing' , argstr = '--timer' )
558
- recomputNormals = traits .Bool (
557
+ recomputeNormals = traits .Bool (
559
558
desc = 'recompute normals at each iteration' , argstr = '--norm' )
560
559
normalSmoother = traits .Float (
561
560
0.2 , usedefault = True , desc = 'strength of normal smoother.' , argstr = '--nc %f' )
562
561
tangentSmoother = traits .Float (
563
562
desc = 'strength of tangential smoother.' , argstr = '--tc %f' )
564
563
565
564
566
- class pialmeshOutputSpec (TraitedSpec ):
565
+ class PialmeshOutputSpec (TraitedSpec ):
567
566
outputSurfaceFile = File (desc = 'path/name of surface file' )
568
567
569
568
570
- class pialmesh (CommandLine ):
571
- input_spec = pialmeshInputSpec
572
- output_spec = pialmeshOutputSpec
569
+ class Pialmesh (CommandLine ):
570
+ input_spec = PialmeshInputSpec
571
+ output_spec = PialmeshOutputSpec
573
572
_cmd = 'pialmesh'
574
573
575
574
def _gen_filename (self , name ):
@@ -588,7 +587,7 @@ def _list_outputs(self):
588
587
return l_outputs (self )
589
588
590
589
591
- class skullfinderInputSpec (CommandLineInputSpec ):
590
+ class SkullfinderInputSpec (CommandLineInputSpec ):
592
591
inputMRIFile = File (mandatory = True , desc = 'input file' , argstr = '-i %s' )
593
592
inputMaskFile = File (
594
593
mandatory = True , desc = 'A brain mask file, 8-bit image (0=non-brain, 255=brain)' , argstr = '-m %s' )
@@ -615,13 +614,13 @@ class skullfinderInputSpec(CommandLineInputSpec):
615
614
desc = 'perform a final opening operation on the scalp mask' , argstr = '--finalOpening' )
616
615
617
616
618
- class skullfinderOutputSpec (TraitedSpec ):
617
+ class SkullfinderOutputSpec (TraitedSpec ):
619
618
outputLabelFile = File (desc = 'path/name of label file' )
620
619
621
620
622
- class skullfinder (CommandLine ):
623
- input_spec = skullfinderInputSpec
624
- output_spec = skullfinderOutputSpec
621
+ class Skullfinder (CommandLine ):
622
+ input_spec = SkullfinderInputSpec
623
+ output_spec = SkullfinderOutputSpec
625
624
_cmd = 'skullfinder'
626
625
627
626
def _gen_filename (self , name ):
@@ -640,7 +639,7 @@ def _list_outputs(self):
640
639
return l_outputs (self )
641
640
642
641
643
- class hemisplitInputSpec (CommandLineInputSpec ):
642
+ class HemisplitInputSpec (CommandLineInputSpec ):
644
643
inputSurfaceFile = File (
645
644
mandatory = True , desc = 'input surface' , argstr = '-i %s' )
646
645
inputHemisphereLabelFile = File (
@@ -659,16 +658,16 @@ class hemisplitInputSpec(CommandLineInputSpec):
659
658
timer = traits .Bool (desc = 'timing function' , argstr = '--timer' )
660
659
661
660
662
- class hemisplitOutputSpec (TraitedSpec ):
661
+ class HemisplitOutputSpec (TraitedSpec ):
663
662
outputLeftHemisphere = File (desc = 'path/name of left hemisphere' )
664
663
outputRightHemisphere = File (desc = 'path/name of right hemisphere' )
665
664
outputLeftPialHemisphere = File (desc = 'path/name of left pial hemisphere' )
666
665
outputRightPialHemisphere = File (desc = 'path/name of right pial hemisphere' )
667
666
668
667
669
- class hemisplit (CommandLine ):
670
- input_spec = hemisplitInputSpec
671
- output_spec = hemisplitOutputSpec
668
+ class Hemisplit (CommandLine ):
669
+ input_spec = HemisplitInputSpec
670
+ output_spec = HemisplitOutputSpec
672
671
_cmd = 'hemisplit'
673
672
674
673
def _gen_filename (self , name ):
0 commit comments