@@ -455,19 +455,19 @@ class CorticalThicknessInputSpec(ANTSCommandInputSpec):
455455 exists = True ,
456456 argstr = '-a %s' ,
457457 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.' ),
464464 mandatory = True )
465465 brain_template = File (
466466 exists = True ,
467467 argstr = '-e %s' ,
468468 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.' ),
471471 mandatory = True )
472472 brain_probability_mask = File (
473473 exists = True ,
@@ -492,10 +492,10 @@ class CorticalThicknessInputSpec(ANTSCommandInputSpec):
492492 t1_registration_template = File (
493493 exists = True ,
494494 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.' ),
499499 argstr = '-t %s' ,
500500 mandatory = True )
501501 extraction_registration_mask = File (
@@ -508,66 +508,64 @@ class CorticalThicknessInputSpec(ANTSCommandInputSpec):
508508 desc = 'Keep brain extraction/segmentation warps, etc (default = 0).' )
509509 max_iterations = traits .Int (
510510 argstr = '-i %d' ,
511- desc = ('ANTS registration max iterations'
512- '(default = 100x100x70x20)' ))
511+ desc = ('ANTS registration max iterations (default = 100x100x70x20)' ))
513512 prior_segmentation_weight = traits .Float (
514513 argstr = '-w %f' ,
515514 desc = ('Atropos spatial prior *probability* weight for'
516- 'the segmentation' ))
515+ ' the segmentation' ))
517516 segmentation_iterations = traits .Int (
518517 argstr = '-n %d' ,
519518 desc = ('N4 -> Atropos -> N4 iterations during segmentation'
520- '(default = 3)' ))
519+ ' (default = 3)' ))
521520 posterior_formulation = traits .Str (
522521 argstr = '-b %s' ,
523522 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).' ))
529528 use_floatingpoint_precision = traits .Enum (
530529 0 ,
531530 1 ,
532531 argstr = '-j %d' ,
533- desc = ('Use floating point precision '
534- 'in registrations (default = 0)' ))
532+ desc = ('Use floating point precision in registrations (default = 0)' ))
535533 use_random_seeding = traits .Enum (
536534 0 ,
537535 1 ,
538536 argstr = '-u %d' ,
539537 desc = ('Use random number generated from system clock in Atropos'
540- '(default = 1)' ))
538+ ' (default = 1)' ))
541539 b_spline_smoothing = traits .Bool (
542540 argstr = '-v' ,
543541 desc = ('Use B-spline SyN for registrations and B-spline'
544- 'exponential mapping in DiReCT.' ))
542+ ' exponential mapping in DiReCT.' ))
545543 cortical_label_image = File (
546544 exists = True , desc = 'Cortical ROI labels to use as a prior for ATITH.' )
547545 label_propagation = traits .Str (
548546 argstr = '-l %s' ,
549547 desc =
550548 ('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].' ))
558556 quick_registration = traits .Bool (
559557 argstr = '-q 1' ,
560558 desc =
561559 ('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).' ))
565563 debug = traits .Bool (
566564 argstr = '-z 1' ,
567565 desc = (
568566 '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.'
571569 ))
572570
573571
@@ -704,25 +702,25 @@ class BrainExtractionInputSpec(ANTSCommandInputSpec):
704702 exists = True ,
705703 argstr = '-a %s' ,
706704 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.' ),
713711 mandatory = True )
714712 brain_template = File (
715713 exists = True ,
716714 argstr = '-e %s' ,
717715 desc = ('Anatomical template created using e.g. LPBA40 data set with'
718- 'buildtemplateparallel.sh in ANTs.' ),
716+ ' buildtemplateparallel.sh in ANTs.' ),
719717 mandatory = True )
720718 brain_probability_mask = File (
721719 exists = True ,
722720 argstr = '-m %s' ,
723721 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.' ),
726724 copyfile = False ,
727725 mandatory = True )
728726 out_prefix = traits .Str (
@@ -737,7 +735,7 @@ class BrainExtractionInputSpec(ANTSCommandInputSpec):
737735 argstr = '-f %s' ,
738736 desc = ('Mask (defined in the template space) used during'
739737 ' registration for brain extraction.'
740- 'To limit the metric computation to a specific region.' ))
738+ ' To limit the metric computation to a specific region.' ))
741739 image_suffix = traits .Str (
742740 'nii.gz' ,
743741 desc = ('any of standard ITK formats,'
@@ -749,22 +747,21 @@ class BrainExtractionInputSpec(ANTSCommandInputSpec):
749747 1 ,
750748 argstr = '-u %d' ,
751749 desc = ('Use random number generated from system clock in Atropos'
752- '(default = 1)' ))
750+ ' (default = 1)' ))
753751 keep_temporary_files = traits .Int (
754752 argstr = '-k %d' ,
755753 desc = 'Keep brain extraction/segmentation warps, etc (default = 0).' )
756754 use_floatingpoint_precision = traits .Enum (
757755 0 ,
758756 1 ,
759757 argstr = '-q %d' ,
760- desc = ('Use floating point precision '
761- 'in registrations (default = 0)' ))
758+ desc = ('Use floating point precision in registrations (default = 0)' ))
762759 debug = traits .Bool (
763760 argstr = '-z 1' ,
764761 desc = (
765762 '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.'
768765 ))
769766
770767
@@ -949,21 +946,19 @@ class JointFusionInputSpec(ANTSCommandInputSpec):
949946 default = 'Joint' ,
950947 argstr = '-m %s' ,
951948 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]' ))
955952 alpha = traits .Float (
956953 default = 0.1 ,
957954 usedefault = True ,
958955 requires = ['method' ],
959- desc = ('Regularization term added to matrix Mx for '
960- 'inverse' ))
956+ desc = ('Regularization term added to matrix Mx for inverse' ))
961957 beta = traits .Int (
962958 default = 2 ,
963959 usedefault = True ,
964960 requires = ['method' ],
965- desc = ('Exponent for mapping intensity difference to joint'
966- ' error' ))
961+ desc = ('Exponent for mapping intensity difference to joint error' ))
967962 output_label_image = File (
968963 argstr = '%s' ,
969964 mandatory = True ,
@@ -985,14 +980,12 @@ class JointFusionInputSpec(ANTSCommandInputSpec):
985980 exclusion_region = File (
986981 exists = True ,
987982 argstr = '-x %s' ,
988- desc = ('Specify an exclusion region for the given '
989- 'label.' ))
983+ desc = ('Specify an exclusion region for the given label.' ))
990984 atlas_group_id = traits .ListInt (
991985 argstr = '-gp %d...' , desc = 'Assign a group ID for each atlas' )
992986 atlas_group_weights = traits .ListInt (
993987 argstr = '-gpw %d...' ,
994- desc = ('Assign the voting weights to '
995- 'each atlas group' ))
988+ desc = ('Assign the voting weights to each atlas group' ))
996989
997990
998991class JointFusionOutputSpec (TraitedSpec ):
@@ -1086,25 +1079,24 @@ class DenoiseImageInputSpec(ANTSCommandInputSpec):
10861079 default_value = 1 ,
10871080 usedefault = True ,
10881081 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.' ))
10941087 output_image = File (
10951088 argstr = "-o %s" ,
10961089 name_source = ['input_image' ],
10971090 hash_files = False ,
10981091 keep_extension = True ,
10991092 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.' )
11021095 save_noise = traits .Bool (
11031096 False ,
11041097 mandatory = True ,
11051098 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.' ),
11081100 xor = ['noise_image' ])
11091101 noise_image = File (
11101102 name_source = ['input_image' ],
@@ -1449,8 +1441,8 @@ class KellyKapowskiInputSpec(ANTSCommandInputSpec):
14491441 argstr = '--segmentation-image "%s"' ,
14501442 mandatory = True ,
14511443 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." ,
14541446 )
14551447
14561448 gray_matter_label = traits .Int (
@@ -1470,26 +1462,26 @@ class KellyKapowskiInputSpec(ANTSCommandInputSpec):
14701462 exists = True ,
14711463 argstr = '--gray-matter-probability-image "%s"' ,
14721464 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." )
14761468
14771469 white_matter_prob_image = File (
14781470 exists = True ,
14791471 argstr = '--white-matter-probability-image "%s"' ,
14801472 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." )
14841476
14851477 convergence = traits .Str (
14861478 default = "[50,0.001,10]" ,
14871479 argstr = '--convergence "%s"' ,
14881480 usedefault = True ,
14891481 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." ,
14931485 )
14941486
14951487 thickness_prior_estimate = traits .Float (
@@ -1520,9 +1512,9 @@ class KellyKapowskiInputSpec(ANTSCommandInputSpec):
15201512 1.5 , usedefault = True ,
15211513 argstr = "--smoothing-velocity-field-parameter %f" ,
15221514 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)." )
15261518
15271519 use_bspline_smoothing = traits .Bool (
15281520 argstr = "--use-bspline-smoothing 1" ,
@@ -1536,7 +1528,7 @@ class KellyKapowskiInputSpec(ANTSCommandInputSpec):
15361528 max_invert_displacement_field_iters = traits .Int (
15371529 20 , usedefault = True ,
15381530 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"
15401532 "displacement field." )
15411533
15421534 cortical_thickness = File (
0 commit comments