reproducible_ants: Set reproducible seeds and threads for ANTsR execution

View source: R/reproducible_ants.R

reproducible_antsR Documentation

Set reproducible seeds and threads for ANTsR execution

Description

Set reproducible seeds and threads for ANTsR execution

Usage

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)

muschellij2/extrantsr documentation built on June 3, 2024, 7:04 p.m.