RajLabMSSM / echoannot

echoverse module: Annotate fine-mapping results
2 stars 0 forks source link

`echoannot::test_enrichment`: set seed #5

Closed bschilder closed 1 year ago

bschilder commented 1 year ago

Set the seed as an argument for reproducible results.

bschilder commented 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.