Set reproducible seeds and threads for ANTsR execution

reproducible_ants(seed = 1)

Arguments

seed

will execute Sys.setenv(ANTS_RANDOM_SEED = seed) before running to attempt a more reproducible result.

Value

A list of `ANTS_RANDOM_SEED` and `ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS`

Note

See https://github.com/ANTsX/ANTs/wiki/antsRegistration-reproducibility-issues for discussion.

Examples

reproducible_ants(1234)
#> $ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS #> [1] 1 #> #> $ANTS_RANDOM_SEED #> [1] 1234 #>