Closed bschilder closed 1 year ago
See section "3.7A note on reproducibility" for info on setting the seed: https://www.bioconductor.org/packages/devel/bioc/vignettes/regioneR/inst/doc/regioneR.html#a-note-on-reproducibility
In order to create reproducible code with functions that use random numbers such as the permutation testing in regioneR , it is necessary to use set.seed. However, since regioneR uses parallel to perform the test it is also necessary to set the mc.set.seed parameter to FALSE to ensure reproducibility.
I've now implemented this with 2 extra args.
Set the seed as an argument for reproducible results.