mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 02:58:17 +00:00
Set randomseed for UMI tools if not otherwise set (#1837)
Set randomseed if not otherwise set Co-authored-by: Simon Pearce <simon.pearce@cruk.manchester.ac.uk>
This commit is contained in:
parent
82fdff4fb4
commit
a363c12d71
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,8 @@ process UMITOOLS_DEDUP {
|
||||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def paired = meta.single_end ? "" : "--paired"
|
def paired = meta.single_end ? "" : "--paired"
|
||||||
def stats = get_output_stats ? "--output-stats $prefix" : ""
|
def stats = get_output_stats ? "--output-stats $prefix" : ""
|
||||||
|
|
||||||
|
if (!(args ==~ /.*--random-seed.*/)) {args += " --random-seed=100"}
|
||||||
"""
|
"""
|
||||||
umi_tools \\
|
umi_tools \\
|
||||||
dedup \\
|
dedup \\
|
||||||
|
|
Loading…
Reference in a new issue