Skip to content

Commit

Permalink
Set seed when creating PSI datasets for reproducibility of unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
nuno-agostinho committed Feb 4, 2024
1 parent e9f9ae5 commit ce4e0fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/testDiscardLowCoveragePSIs.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
context("Discard low coverage PSI values")

createPSIdataset <- function(samples=20, events=50) {
set.seed(639245)
size <- samples * events
num <- sample(seq(100), size, replace=TRUE)
num[sample(size, size / 10)] <- NA
Expand Down

0 comments on commit ce4e0fb

Please sign in to comment.