mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 02:58: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,15 +14,16 @@ process GATK4_MARKDUPLICATES_SPARK {
|
|||
path dict
|
||||
|
||||
output:
|
||||
tuple val(meta), path("${prefix}"), emit: output
|
||||
path "versions.yml" , emit: versions
|
||||
tuple val(meta), path("*.bam"), emit: bam
|
||||
tuple val(meta), path("*.metrics"), emit: metrics, optional: true
|
||||
path "versions.yml" , emit: versions
|
||||
|
||||
when:
|
||||
task.ext.when == null || task.ext.when
|
||||
|
||||
script:
|
||||
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(' ')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue