From a363c12d719d85ced43f6976383cae2224438351 Mon Sep 17 00:00:00 2001 From: Simon Pearce <24893913+SPPearce@users.noreply.github.com> Date: Thu, 30 Jun 2022 16:30:38 +0100 Subject: [PATCH] Set randomseed for UMI tools if not otherwise set (#1837) Set randomseed if not otherwise set Co-authored-by: Simon Pearce --- modules/umitools/dedup/main.nf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/umitools/dedup/main.nf b/modules/umitools/dedup/main.nf index 07e6061d..56cb3a4b 100644 --- a/modules/umitools/dedup/main.nf +++ b/modules/umitools/dedup/main.nf @@ -26,6 +26,8 @@ process UMITOOLS_DEDUP { def prefix = task.ext.prefix ?: "${meta.id}" def paired = meta.single_end ? "" : "--paired" def stats = get_output_stats ? "--output-stats $prefix" : "" + + if (!(args ==~ /.*--random-seed.*/)) {args += " --random-seed=100"} """ umi_tools \\ dedup \\