Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dweemx committed Nov 24, 2020
1 parent b543a8b commit ef7ab83
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/workflows/utils.nf
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ def setSeed(params) {
------------------------------------------------------------------
"""
}
// If seed is of type String, it should be converted to an Integer because R doesn't not allow to have seeds of type character (see set.seed)
if (params.global.seed instanceof String) {
params.global.seed = params.global.seed.hashCode().abs()
}
}
}

Expand Down

0 comments on commit ef7ab83

Please sign in to comment.