Skip to content

Commit e2b7047

Browse files
committed
ENH: Add random seed option to ANTs registration
1 parent f662acf commit e2b7047

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

nipype/interfaces/ants/registration.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,10 @@ class RegistrationInputSpec(ANTSCommandInputSpec):
585585
usedefault=True,
586586
desc="The Lower quantile to clip image ranges",
587587
)
588-
588+
random_seed = traits.Int(
589+
argstr="--random-seed %d",
590+
desc="Fixed seed for random number generation",
591+
)
589592
verbose = traits.Bool(
590593
argstr="-v", default_value=False, usedefault=True, nohash=True
591594
)
@@ -1708,6 +1711,10 @@ class RegistrationSynQuickInputSpec(ANTSCommandInputSpec):
17081711
desc="precision type (default = double)",
17091712
usedefault=True,
17101713
)
1714+
random_seed = traits.Int(
1715+
argstr="-e %d",
1716+
desc="fixed random seed",
1717+
)
17111718

17121719

17131720
class RegistrationSynQuickOutputSpec(TraitedSpec):

0 commit comments

Comments
 (0)