mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
fix formatting, fix code style
This commit is contained in:
parent
b4d2e374a0
commit
c4072f274c
1 changed files with 5 additions and 6 deletions
|
@ -20,10 +20,8 @@ process ELPREP_MERGE {
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
if (meta.single_end) {
|
|
||||||
args += " --single-end"
|
|
||||||
}
|
|
||||||
def suffix = args.contains("--output-type sam") ? "sam" : "bam"
|
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
|
# create directory and move all input so elprep can find and merge them before splitting
|
||||||
|
@ -34,6 +32,7 @@ process ELPREP_MERGE {
|
||||||
input \\
|
input \\
|
||||||
${prefix}.${suffix} \\
|
${prefix}.${suffix} \\
|
||||||
$args \\
|
$args \\
|
||||||
|
${single_end} \\
|
||||||
--nr-of-threads $task.cpus
|
--nr-of-threads $task.cpus
|
||||||
|
|
||||||
cat <<-END_VERSIONS > versions.yml
|
cat <<-END_VERSIONS > versions.yml
|
||||||
|
|
Loading…
Reference in a new issue