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:
Simon Pearce 2022-06-30 16:30:38 +01:00 committed by GitHub
parent 82fdff4fb4
commit a363c12d71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 \\