fix formatting, fix code style

This commit is contained in:
Matthias De Smet 2022-04-22 11:39:22 +02:00
parent b4d2e374a0
commit c4072f274c

View file

@ -20,10 +20,8 @@ process ELPREP_MERGE {
script:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
if (meta.single_end) {
args += " --single-end"
}
def suffix = args.contains("--output-type sam") ? "sam" : "bam"
def single_end = meta.single_end ? " --single-end" : ""
"""
# create directory and move all input so elprep can find and merge them before splitting
@ -34,6 +32,7 @@ process ELPREP_MERGE {
input \\
${prefix}.${suffix} \\
$args \\
${single_end} \\
--nr-of-threads $task.cpus
cat <<-END_VERSIONS > versions.yml