mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
added metrics as optional output
This commit is contained in:
parent
b34e5ea6bf
commit
39e34418c9
1 changed files with 4 additions and 3 deletions
|
@ -14,7 +14,8 @@ process GATK4_MARKDUPLICATES_SPARK {
|
||||||
path dict
|
path dict
|
||||||
|
|
||||||
output:
|
output:
|
||||||
tuple val(meta), path("${prefix}"), emit: output
|
tuple val(meta), path("*.bam"), emit: bam
|
||||||
|
tuple val(meta), path("*.metrics"), emit: metrics, optional: true
|
||||||
path "versions.yml" , emit: versions
|
path "versions.yml" , emit: versions
|
||||||
|
|
||||||
when:
|
when:
|
||||||
|
@ -22,7 +23,7 @@ process GATK4_MARKDUPLICATES_SPARK {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
prefix = task.ext.prefix ?: "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}" + ".bam"
|
||||||
def input_list = bam.collect{"--input $it"}.join(' ')
|
def input_list = bam.collect{"--input $it"}.join(' ')
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue