36
36
"PUTAMEN_LEFT" ,
37
37
"PUTAMEN_RIGHT" ,
38
38
"THALAMUS_LEFT" ,
39
- "THALAMUS_RIGHT"
39
+ "THALAMUS_RIGHT" ,
40
40
)
41
41
42
42
@@ -94,9 +94,9 @@ class CiftiCreateDenseFromTemplateInputSpec(CommandLineInputSpec):
94
94
desc = "the input is cropped to the size of the voxel data in the template file" ,
95
95
)
96
96
label_collision = traits .Enum (
97
- ' ERROR' ,
98
- ' SURFACES_FIRST' ,
99
- ' LEGACY' ,
97
+ " ERROR" ,
98
+ " SURFACES_FIRST" ,
99
+ " LEGACY" ,
100
100
argstr = "-label-collision %s" ,
101
101
position = 8 ,
102
102
desc = "how to handle conflicts between label keys, use 'LEGACY' to match v1.4.2 and earlier" ,
@@ -122,7 +122,9 @@ class CiftiCreateDenseFromTemplateInputSpec(CommandLineInputSpec):
122
122
volume = InputMultiObject (
123
123
traits .Either (
124
124
traits .Tuple (traits .Enum (VALID_STRUCTURES ), File (exists = True )),
125
- traits .Tuple (traits .Enum (VALID_STRUCTURES ), File (exists = True ), traits .Bool ())
125
+ traits .Tuple (
126
+ traits .Enum (VALID_STRUCTURES ), File (exists = True ), traits .Bool ()
127
+ ),
126
128
),
127
129
argstr = "%s" ,
128
130
position = 12 ,
@@ -214,7 +216,7 @@ class CiftiCreateDenseTimeseriesInputSpec(CommandLineInputSpec):
214
216
exists = True ,
215
217
argstr = "-roi-left %s" ,
216
218
position = 4 ,
217
- requires = [' left_metric' ],
219
+ requires = [" left_metric" ],
218
220
desc = "ROI (as metric file) of vertices to use from left surface" ,
219
221
)
220
222
right_metric = File (
@@ -227,7 +229,7 @@ class CiftiCreateDenseTimeseriesInputSpec(CommandLineInputSpec):
227
229
exists = True ,
228
230
argstr = "-roi-right %s" ,
229
231
position = 6 ,
230
- requires = [' right_metric' ],
232
+ requires = [" right_metric" ],
231
233
desc = "ROI (as metric file) of vertices to use from right surface" ,
232
234
)
233
235
cerebellum_metric = File (
@@ -240,7 +242,7 @@ class CiftiCreateDenseTimeseriesInputSpec(CommandLineInputSpec):
240
242
exists = True ,
241
243
argstr = "-roi-cerebellum %s" ,
242
244
position = 8 ,
243
- requires = [' cerebellum_metric' ],
245
+ requires = [" cerebellum_metric" ],
244
246
desc = "ROI (as metric file) of vertices to use from cerebellum" ,
245
247
)
246
248
timestep = traits .Float (
@@ -256,10 +258,14 @@ class CiftiCreateDenseTimeseriesInputSpec(CommandLineInputSpec):
256
258
desc = "the time at the first frame, in seconds" ,
257
259
)
258
260
unit = traits .Enum (
259
- "SECOND" , "HERTZ" , "METER" , "RADIAN" ,
261
+ "SECOND" ,
262
+ "HERTZ" ,
263
+ "METER" ,
264
+ "RADIAN" ,
260
265
usedefault = True ,
261
266
argstr = "-unit %s" ,
262
- desc = "use a unit other than time" )
267
+ desc = "use a unit other than time" ,
268
+ )
263
269
264
270
265
271
class CiftiCreateDenseTimeseriesOutputSpec (TraitedSpec ):
@@ -427,7 +433,9 @@ class CiftiDilateInputSpec(CommandLineInputSpec):
427
433
428
434
429
435
class CiftiCreateLabelInputSpec (CommandLineInputSpec ):
430
- out_file = File (mandatory = True , argstr = "%s" , position = 0 , desc = "the output CIFTI file" )
436
+ out_file = File (
437
+ mandatory = True , argstr = "%s" , position = 0 , desc = "the output CIFTI file"
438
+ )
431
439
volume_label = File (
432
440
exists = True ,
433
441
requires = ["structure_label_volume" ],
@@ -453,7 +461,7 @@ class CiftiCreateLabelInputSpec(CommandLineInputSpec):
453
461
requires = ["left_label" ],
454
462
argstr = "-roi-left %s" ,
455
463
position = 4 ,
456
- desc = "roi of vertices to use from left surface as a metric file"
464
+ desc = "roi of vertices to use from left surface as a metric file" ,
457
465
)
458
466
right_label = File (
459
467
exists = True ,
@@ -466,7 +474,7 @@ class CiftiCreateLabelInputSpec(CommandLineInputSpec):
466
474
requires = ["right_label" ],
467
475
argstr = "-roi-right %s" ,
468
476
position = 6 ,
469
- desc = "roi of vertices to use from right surface as a metric file"
477
+ desc = "roi of vertices to use from right surface as a metric file" ,
470
478
)
471
479
cerebellum_label = File (
472
480
exists = True ,
@@ -479,9 +487,10 @@ class CiftiCreateLabelInputSpec(CommandLineInputSpec):
479
487
requires = ["cerebellum_label" ],
480
488
argstr = "-roi-cerebellum %s" ,
481
489
position = 8 ,
482
- desc = "roi of vertices to use from cerebellum"
490
+ desc = "roi of vertices to use from cerebellum" ,
483
491
)
484
492
493
+
485
494
class CiftiCreateLabelOutputSpec (TraitedSpec ):
486
495
out_file = File (exists = True , desc = "the output CIFTI file" )
487
496
@@ -592,7 +601,8 @@ class CiftiResampleInputSpec(CommandLineInputSpec):
592
601
desc = "the CIFTI file to resample" ,
593
602
)
594
603
direction = traits .Enum (
595
- "ROW" , "COLUMN" ,
604
+ "ROW" ,
605
+ "COLUMN" ,
596
606
mandatory = True ,
597
607
argstr = "%s" ,
598
608
position = 1 ,
@@ -606,21 +616,25 @@ class CiftiResampleInputSpec(CommandLineInputSpec):
606
616
desc = "a CIFTI file containing the CIFTI space to resample to" ,
607
617
)
608
618
template_direction = traits .Enum (
609
- "ROW" , "COLUMN" ,
619
+ "ROW" ,
620
+ "COLUMN" ,
610
621
mandatory = True ,
611
622
argstr = "%s" ,
612
623
position = 3 ,
613
624
desc = "the direction of the template to use as the resampling space" ,
614
625
)
615
626
surface_method = traits .Enum (
616
- "ADAP_BARY_AREA" , "BARYCENTRIC" ,
627
+ "ADAP_BARY_AREA" ,
628
+ "BARYCENTRIC" ,
617
629
mandatory = True ,
618
630
argstr = "%s" ,
619
631
position = 4 ,
620
632
desc = "surface resampling method" ,
621
633
)
622
634
volume_method = traits .Enum (
623
- "CUBIC" , "ENCLOSING_VOXEL" , "TRILINEAR" ,
635
+ "CUBIC" ,
636
+ "ENCLOSING_VOXEL" ,
637
+ "TRILINEAR" ,
624
638
mandatory = True ,
625
639
argstr = "%s" ,
626
640
position = 5 ,
@@ -657,7 +671,7 @@ class CiftiResampleInputSpec(CommandLineInputSpec):
657
671
xor = ["volume_predilate_nearest" ],
658
672
argstr = "-weighted" ,
659
673
position = 10 ,
660
- desc = "use weighted dilation (default)"
674
+ desc = "use weighted dilation (default)" ,
661
675
)
662
676
volume_predilate_weighted_exponent = traits .Int (
663
677
requires = ["volume_predilate_weighted" ],
@@ -714,7 +728,7 @@ class CiftiResampleInputSpec(CommandLineInputSpec):
714
728
exists = True ,
715
729
argstr = "-affine %s" ,
716
730
position = 19 ,
717
- desc = "affine file for transformation on the volume components"
731
+ desc = "affine file for transformation on the volume components" ,
718
732
)
719
733
affine_flirt_source = File (
720
734
exists = True ,
@@ -765,7 +779,7 @@ class CiftiResampleInputSpec(CommandLineInputSpec):
765
779
requires = ["left_sphere_current" , "left_area_surf_new" ],
766
780
argstr = "-left-area-surfs %s" ,
767
781
position = 26 ,
768
- desc = "a relevant left anatomical surface with current mesh"
782
+ desc = "a relevant left anatomical surface with current mesh" ,
769
783
)
770
784
left_area_surf_new = File (
771
785
exists = True ,
@@ -807,7 +821,7 @@ class CiftiResampleInputSpec(CommandLineInputSpec):
807
821
requires = ["right_sphere_current" , "right_area_surf_new" ],
808
822
argstr = "-right-area-surfs %s" ,
809
823
position = 32 ,
810
- desc = "a relevant right anatomical surface with current mesh"
824
+ desc = "a relevant right anatomical surface with current mesh" ,
811
825
)
812
826
right_area_surf_new = File (
813
827
exists = True ,
@@ -849,7 +863,7 @@ class CiftiResampleInputSpec(CommandLineInputSpec):
849
863
requires = ["cerebellum_sphere_current" , "cerebellum_area_surf_new" ],
850
864
argstr = "-cerebellum-area-surfs %s" ,
851
865
position = 38 ,
852
- desc = "a relevant cerebellum anatomical surface with current mesh"
866
+ desc = "a relevant cerebellum anatomical surface with current mesh" ,
853
867
)
854
868
cerebellum_area_surf_new = File (
855
869
exists = True ,
@@ -937,12 +951,14 @@ class VolumeAffineResampleInputSpec(CommandLineInputSpec):
937
951
desc = "a volume file in the volume space you want for the output" ,
938
952
)
939
953
method = traits .Enum (
940
- "CUBIC" , "ENCLOSING_VOXEL" , "TRILINEAR" ,
954
+ "CUBIC" ,
955
+ "ENCLOSING_VOXEL" ,
956
+ "TRILINEAR" ,
941
957
mandatory = True ,
942
958
argstr = "%s" ,
943
959
position = 2 ,
944
960
desc = "The resampling method. The recommended methods are CUBIC "
945
- "(cubic spline) for most data, and ENCLOSING_VOXEL for label data." ,
961
+ "(cubic spline) for most data, and ENCLOSING_VOXEL for label data." ,
946
962
)
947
963
out_file = File (
948
964
name_source = ["in_file" ],
@@ -967,12 +983,12 @@ class VolumeAffineResampleInputSpec(CommandLineInputSpec):
967
983
flirt_source_volume = File (
968
984
exists = True ,
969
985
desc = "the source volume used when generating the affine; defaults to in_file" ,
970
- requires = [' flirt' ],
986
+ requires = [" flirt" ],
971
987
)
972
988
flirt_target_volume = File (
973
989
exists = True ,
974
990
desc = "the target volume used when generating the affine; defaults to volume_space" ,
975
- requires = [' flirt' ],
991
+ requires = [" flirt" ],
976
992
)
977
993
978
994
@@ -1037,7 +1053,8 @@ class VolumeAllLabelsToROIsInputSpec(CommandLineInputSpec):
1037
1053
desc = "the input volume label file" ,
1038
1054
)
1039
1055
label_map = traits .Either (
1040
- traits .Int , Str ,
1056
+ traits .Int ,
1057
+ Str ,
1041
1058
mandatory = True ,
1042
1059
argstr = "%s" ,
1043
1060
position = 1 ,
@@ -1086,7 +1103,8 @@ class VolumeLabelExportTableInputSpec(CommandLineInputSpec):
1086
1103
desc = "the input volume label file" ,
1087
1104
)
1088
1105
label_map = traits .Either (
1089
- traits .Int , Str ,
1106
+ traits .Int ,
1107
+ Str ,
1090
1108
mandatory = True ,
1091
1109
argstr = "%s" ,
1092
1110
position = 1 ,
@@ -1158,7 +1176,8 @@ class VolumeLabelImportInputSpec(CommandLineInputSpec):
1158
1176
desc = "the value that will be interpreted as unlabeled" ,
1159
1177
)
1160
1178
subvolume = traits .Either (
1161
- traits .Int , Str ,
1179
+ traits .Int ,
1180
+ Str ,
1162
1181
argstr = "-subvolume %s" ,
1163
1182
desc = "select a single subvolume to import (number or name)" ,
1164
1183
)
0 commit comments