@@ -455,19 +455,19 @@ class CorticalThicknessInputSpec(ANTSCommandInputSpec):
455
455
exists = True ,
456
456
argstr = '-a %s' ,
457
457
desc = ('Structural *intensity* image, typically T1.'
458
- 'If more than one anatomical image is specified,'
459
- 'subsequently specified images are used during the'
460
- 'segmentation process. However, only the first'
461
- 'image is used in the registration of priors.'
462
- 'Our suggestion would be to specify the T1'
463
- 'as the first image.' ),
458
+ ' If more than one anatomical image is specified,'
459
+ ' subsequently specified images are used during the'
460
+ ' segmentation process. However, only the first'
461
+ ' image is used in the registration of priors.'
462
+ ' Our suggestion would be to specify the T1'
463
+ ' as the first image.' ),
464
464
mandatory = True )
465
465
brain_template = File (
466
466
exists = True ,
467
467
argstr = '-e %s' ,
468
468
desc = ('Anatomical *intensity* template (possibly created using a'
469
- 'population data set with buildtemplateparallel.sh in ANTs).'
470
- 'This template is *not* skull-stripped.' ),
469
+ ' population data set with buildtemplateparallel.sh in ANTs).'
470
+ ' This template is *not* skull-stripped.' ),
471
471
mandatory = True )
472
472
brain_probability_mask = File (
473
473
exists = True ,
@@ -492,10 +492,10 @@ class CorticalThicknessInputSpec(ANTSCommandInputSpec):
492
492
t1_registration_template = File (
493
493
exists = True ,
494
494
desc = ('Anatomical *intensity* template'
495
- '(assumed to be skull-stripped). A common'
496
- 'case would be where this would be the same'
497
- 'template as specified in the -e option which'
498
- 'is not skull stripped.' ),
495
+ ' (assumed to be skull-stripped). A common'
496
+ ' case would be where this would be the same'
497
+ ' template as specified in the -e option which'
498
+ ' is not skull stripped.' ),
499
499
argstr = '-t %s' ,
500
500
mandatory = True )
501
501
extraction_registration_mask = File (
@@ -508,66 +508,64 @@ class CorticalThicknessInputSpec(ANTSCommandInputSpec):
508
508
desc = 'Keep brain extraction/segmentation warps, etc (default = 0).' )
509
509
max_iterations = traits .Int (
510
510
argstr = '-i %d' ,
511
- desc = ('ANTS registration max iterations'
512
- '(default = 100x100x70x20)' ))
511
+ desc = ('ANTS registration max iterations (default = 100x100x70x20)' ))
513
512
prior_segmentation_weight = traits .Float (
514
513
argstr = '-w %f' ,
515
514
desc = ('Atropos spatial prior *probability* weight for'
516
- 'the segmentation' ))
515
+ ' the segmentation' ))
517
516
segmentation_iterations = traits .Int (
518
517
argstr = '-n %d' ,
519
518
desc = ('N4 -> Atropos -> N4 iterations during segmentation'
520
- '(default = 3)' ))
519
+ ' (default = 3)' ))
521
520
posterior_formulation = traits .Str (
522
521
argstr = '-b %s' ,
523
522
desc = ('Atropos posterior formulation and whether or not'
524
- 'to use mixture model proportions.'
525
- '''e.g 'Socrates[1]' (default) or 'Aristotle[1]'.'''
526
- 'Choose the latter if you'
527
- 'want use the distance priors (see also the -l option'
528
- 'for label propagation control).' ))
523
+ ' to use mixture model proportions.'
524
+ ''' e.g 'Socrates[1]' (default) or 'Aristotle[1]'.'''
525
+ ' Choose the latter if you'
526
+ ' want use the distance priors (see also the -l option'
527
+ ' for label propagation control).' ))
529
528
use_floatingpoint_precision = traits .Enum (
530
529
0 ,
531
530
1 ,
532
531
argstr = '-j %d' ,
533
- desc = ('Use floating point precision '
534
- 'in registrations (default = 0)' ))
532
+ desc = ('Use floating point precision in registrations (default = 0)' ))
535
533
use_random_seeding = traits .Enum (
536
534
0 ,
537
535
1 ,
538
536
argstr = '-u %d' ,
539
537
desc = ('Use random number generated from system clock in Atropos'
540
- '(default = 1)' ))
538
+ ' (default = 1)' ))
541
539
b_spline_smoothing = traits .Bool (
542
540
argstr = '-v' ,
543
541
desc = ('Use B-spline SyN for registrations and B-spline'
544
- 'exponential mapping in DiReCT.' ))
542
+ ' exponential mapping in DiReCT.' ))
545
543
cortical_label_image = File (
546
544
exists = True , desc = 'Cortical ROI labels to use as a prior for ATITH.' )
547
545
label_propagation = traits .Str (
548
546
argstr = '-l %s' ,
549
547
desc =
550
548
('Incorporate a distance prior one the posterior formulation. Should be'
551
- '''of the form 'label[lambda,boundaryProbability]' where label'''
552
- 'is a value of 1,2,3,... denoting label ID. The label'
553
- 'probability for anything outside the current label'
554
- ' = boundaryProbability * exp( -lambda * distanceFromBoundary )'
555
- 'Intuitively, smaller lambda values will increase the spatial capture'
556
- 'range of the distance prior. To apply to all label values, simply omit'
557
- 'specifying the label, i.e. -l [lambda,boundaryProbability].' ))
549
+ ''' of the form 'label[lambda,boundaryProbability]' where label'''
550
+ ' is a value of 1,2,3,... denoting label ID. The label'
551
+ ' probability for anything outside the current label'
552
+ ' = boundaryProbability * exp( -lambda * distanceFromBoundary )'
553
+ ' Intuitively, smaller lambda values will increase the spatial capture'
554
+ ' range of the distance prior. To apply to all label values, simply omit'
555
+ ' specifying the label, i.e. -l [lambda,boundaryProbability].' ))
558
556
quick_registration = traits .Bool (
559
557
argstr = '-q 1' ,
560
558
desc =
561
559
('If = 1, use antsRegistrationSyNQuick.sh as the basis for registration'
562
- 'during brain extraction, brain segmentation, and'
563
- '(optional) normalization to a template.'
564
- 'Otherwise use antsRegistrationSyN.sh (default = 0).' ))
560
+ ' during brain extraction, brain segmentation, and'
561
+ ' (optional) normalization to a template.'
562
+ ' Otherwise use antsRegistrationSyN.sh (default = 0).' ))
565
563
debug = traits .Bool (
566
564
argstr = '-z 1' ,
567
565
desc = (
568
566
'If > 0, runs a faster version of the script.'
569
- 'Only for testing. Implies -u 0.'
570
- 'Requires single thread computation for complete reproducibility.'
567
+ ' Only for testing. Implies -u 0.'
568
+ ' Requires single thread computation for complete reproducibility.'
571
569
))
572
570
573
571
@@ -704,25 +702,25 @@ class BrainExtractionInputSpec(ANTSCommandInputSpec):
704
702
exists = True ,
705
703
argstr = '-a %s' ,
706
704
desc = ('Structural image, typically T1. If more than one'
707
- 'anatomical image is specified, subsequently specified'
708
- 'images are used during the segmentation process. However,'
709
- 'only the first image is used in the registration of priors.'
710
- 'Our suggestion would be to specify the T1 as the first image.'
711
- 'Anatomical template created using e.g. LPBA40 data set with'
712
- 'buildtemplateparallel.sh in ANTs.' ),
705
+ ' anatomical image is specified, subsequently specified'
706
+ ' images are used during the segmentation process. However,'
707
+ ' only the first image is used in the registration of priors.'
708
+ ' Our suggestion would be to specify the T1 as the first image.'
709
+ ' Anatomical template created using e.g. LPBA40 data set with'
710
+ ' buildtemplateparallel.sh in ANTs.' ),
713
711
mandatory = True )
714
712
brain_template = File (
715
713
exists = True ,
716
714
argstr = '-e %s' ,
717
715
desc = ('Anatomical template created using e.g. LPBA40 data set with'
718
- 'buildtemplateparallel.sh in ANTs.' ),
716
+ ' buildtemplateparallel.sh in ANTs.' ),
719
717
mandatory = True )
720
718
brain_probability_mask = File (
721
719
exists = True ,
722
720
argstr = '-m %s' ,
723
721
desc = ('Brain probability mask created using e.g. LPBA40 data set which'
724
- 'have brain masks defined, and warped to anatomical template and'
725
- 'averaged resulting in a probability image.' ),
722
+ ' have brain masks defined, and warped to anatomical template and'
723
+ ' averaged resulting in a probability image.' ),
726
724
copyfile = False ,
727
725
mandatory = True )
728
726
out_prefix = traits .Str (
@@ -737,7 +735,7 @@ class BrainExtractionInputSpec(ANTSCommandInputSpec):
737
735
argstr = '-f %s' ,
738
736
desc = ('Mask (defined in the template space) used during'
739
737
' registration for brain extraction.'
740
- 'To limit the metric computation to a specific region.' ))
738
+ ' To limit the metric computation to a specific region.' ))
741
739
image_suffix = traits .Str (
742
740
'nii.gz' ,
743
741
desc = ('any of standard ITK formats,'
@@ -749,22 +747,21 @@ class BrainExtractionInputSpec(ANTSCommandInputSpec):
749
747
1 ,
750
748
argstr = '-u %d' ,
751
749
desc = ('Use random number generated from system clock in Atropos'
752
- '(default = 1)' ))
750
+ ' (default = 1)' ))
753
751
keep_temporary_files = traits .Int (
754
752
argstr = '-k %d' ,
755
753
desc = 'Keep brain extraction/segmentation warps, etc (default = 0).' )
756
754
use_floatingpoint_precision = traits .Enum (
757
755
0 ,
758
756
1 ,
759
757
argstr = '-q %d' ,
760
- desc = ('Use floating point precision '
761
- 'in registrations (default = 0)' ))
758
+ desc = ('Use floating point precision in registrations (default = 0)' ))
762
759
debug = traits .Bool (
763
760
argstr = '-z 1' ,
764
761
desc = (
765
762
'If > 0, runs a faster version of the script.'
766
- 'Only for testing. Implies -u 0.'
767
- 'Requires single thread computation for complete reproducibility.'
763
+ ' Only for testing. Implies -u 0.'
764
+ ' Requires single thread computation for complete reproducibility.'
768
765
))
769
766
770
767
@@ -949,21 +946,19 @@ class JointFusionInputSpec(ANTSCommandInputSpec):
949
946
default = 'Joint' ,
950
947
argstr = '-m %s' ,
951
948
usedefault = True ,
952
- desc = ('Select voting method. Options: Joint (Joint '
953
- 'Label Fusion). May be followed by optional '
954
- 'parameters in brackets, e.g., -m Joint[0.1,2]' ))
949
+ desc = ('Select voting method. Options: Joint (Joint'
950
+ ' Label Fusion). May be followed by optional'
951
+ ' parameters in brackets, e.g., -m Joint[0.1,2]' ))
955
952
alpha = traits .Float (
956
953
default = 0.1 ,
957
954
usedefault = True ,
958
955
requires = ['method' ],
959
- desc = ('Regularization term added to matrix Mx for '
960
- 'inverse' ))
956
+ desc = ('Regularization term added to matrix Mx for inverse' ))
961
957
beta = traits .Int (
962
958
default = 2 ,
963
959
usedefault = True ,
964
960
requires = ['method' ],
965
- desc = ('Exponent for mapping intensity difference to joint'
966
- ' error' ))
961
+ desc = ('Exponent for mapping intensity difference to joint error' ))
967
962
output_label_image = File (
968
963
argstr = '%s' ,
969
964
mandatory = True ,
@@ -985,14 +980,12 @@ class JointFusionInputSpec(ANTSCommandInputSpec):
985
980
exclusion_region = File (
986
981
exists = True ,
987
982
argstr = '-x %s' ,
988
- desc = ('Specify an exclusion region for the given '
989
- 'label.' ))
983
+ desc = ('Specify an exclusion region for the given label.' ))
990
984
atlas_group_id = traits .ListInt (
991
985
argstr = '-gp %d...' , desc = 'Assign a group ID for each atlas' )
992
986
atlas_group_weights = traits .ListInt (
993
987
argstr = '-gpw %d...' ,
994
- desc = ('Assign the voting weights to '
995
- 'each atlas group' ))
988
+ desc = ('Assign the voting weights to each atlas group' ))
996
989
997
990
998
991
class JointFusionOutputSpec (TraitedSpec ):
@@ -1086,25 +1079,24 @@ class DenoiseImageInputSpec(ANTSCommandInputSpec):
1086
1079
default_value = 1 ,
1087
1080
usedefault = True ,
1088
1081
argstr = '-s %s' ,
1089
- desc = ('Running noise correction on large images can '
1090
- 'be time consuming. To lessen computation time, '
1091
- 'the input image can be resampled. The shrink '
1092
- 'factor, specified as a single integer, describes '
1093
- 'this resampling. Shrink factor = 1 is the default.' ))
1082
+ desc = ('Running noise correction on large images can'
1083
+ ' be time consuming. To lessen computation time,'
1084
+ ' the input image can be resampled. The shrink'
1085
+ ' factor, specified as a single integer, describes'
1086
+ ' this resampling. Shrink factor = 1 is the default.' ))
1094
1087
output_image = File (
1095
1088
argstr = "-o %s" ,
1096
1089
name_source = ['input_image' ],
1097
1090
hash_files = False ,
1098
1091
keep_extension = True ,
1099
1092
name_template = '%s_noise_corrected' ,
1100
- desc = 'The output consists of the noise corrected '
1101
- ' version of the input image.' )
1093
+ desc = 'The output consists of the noise corrected'
1094
+ ' version of the input image.' )
1102
1095
save_noise = traits .Bool (
1103
1096
False ,
1104
1097
mandatory = True ,
1105
1098
usedefault = True ,
1106
- desc = ('True if the estimated noise should be saved '
1107
- 'to file.' ),
1099
+ desc = ('True if the estimated noise should be saved to file.' ),
1108
1100
xor = ['noise_image' ])
1109
1101
noise_image = File (
1110
1102
name_source = ['input_image' ],
@@ -1449,8 +1441,8 @@ class KellyKapowskiInputSpec(ANTSCommandInputSpec):
1449
1441
argstr = '--segmentation-image "%s"' ,
1450
1442
mandatory = True ,
1451
1443
desc =
1452
- "A segmentation image must be supplied labeling the gray and white matters.\n "
1453
- "Default values = 2 and 3, respectively." ,
1444
+ "A segmentation image must be supplied labeling the gray and white matters."
1445
+ " Default values = 2 and 3, respectively." ,
1454
1446
)
1455
1447
1456
1448
gray_matter_label = traits .Int (
@@ -1470,26 +1462,26 @@ class KellyKapowskiInputSpec(ANTSCommandInputSpec):
1470
1462
exists = True ,
1471
1463
argstr = '--gray-matter-probability-image "%s"' ,
1472
1464
desc =
1473
- "In addition to the segmentation image, a gray matter probability image can be\n "
1474
- "used. If no such image is supplied, one is created using the segmentation image\n "
1475
- "and a variance of 1.0 mm." )
1465
+ "In addition to the segmentation image, a gray matter probability image can be"
1466
+ " used. If no such image is supplied, one is created using the segmentation image"
1467
+ " and a variance of 1.0 mm." )
1476
1468
1477
1469
white_matter_prob_image = File (
1478
1470
exists = True ,
1479
1471
argstr = '--white-matter-probability-image "%s"' ,
1480
1472
desc =
1481
- "In addition to the segmentation image, a white matter probability image can be\n "
1482
- "used. If no such image is supplied, one is created using the segmentation image\n "
1483
- "and a variance of 1.0 mm." )
1473
+ "In addition to the segmentation image, a white matter probability image can be"
1474
+ " used. If no such image is supplied, one is created using the segmentation image"
1475
+ " and a variance of 1.0 mm." )
1484
1476
1485
1477
convergence = traits .Str (
1486
1478
default = "[50,0.001,10]" ,
1487
1479
argstr = '--convergence "%s"' ,
1488
1480
usedefault = True ,
1489
1481
desc =
1490
- "Convergence is determined by fitting a line to the normalized energy profile of\n "
1491
- "the last N iterations (where N is specified by the window size) and determining\n "
1492
- "the slope which is then compared with the convergence threshold." ,
1482
+ "Convergence is determined by fitting a line to the normalized energy profile of"
1483
+ " the last N iterations (where N is specified by the window size) and determining"
1484
+ " the slope which is then compared with the convergence threshold." ,
1493
1485
)
1494
1486
1495
1487
thickness_prior_estimate = traits .Float (
@@ -1520,9 +1512,9 @@ class KellyKapowskiInputSpec(ANTSCommandInputSpec):
1520
1512
1.5 , usedefault = True ,
1521
1513
argstr = "--smoothing-velocity-field-parameter %f" ,
1522
1514
desc =
1523
- "Defines the Gaussian smoothing of the velocity field (default = 1.5).\n "
1524
- "If the b-spline smoothing option is chosen, then this defines the \n "
1525
- "isotropic mesh spacing for the smoothing spline (default = 15)." )
1515
+ "Defines the Gaussian smoothing of the velocity field (default = 1.5)."
1516
+ " If the b-spline smoothing option is chosen, then this defines the"
1517
+ " isotropic mesh spacing for the smoothing spline (default = 15)." )
1526
1518
1527
1519
use_bspline_smoothing = traits .Bool (
1528
1520
argstr = "--use-bspline-smoothing 1" ,
@@ -1536,7 +1528,7 @@ class KellyKapowskiInputSpec(ANTSCommandInputSpec):
1536
1528
max_invert_displacement_field_iters = traits .Int (
1537
1529
20 , usedefault = True ,
1538
1530
argstr = "--maximum-number-of-invert-displacement-field-iterations %d" ,
1539
- desc = "Maximum number of iterations for estimating the invert \n "
1531
+ desc = "Maximum number of iterations for estimating the invert"
1540
1532
"displacement field." )
1541
1533
1542
1534
cortical_thickness = File (
0 commit comments