separate gvcf and vcf in output channels (#1371)

* separate gvcf and vcf in output channels

* regex not working, just using prefix now
This commit is contained in:
FriederikeHanssen 2022-03-03 11:54:07 +01:00 committed by GitHub
parent 0816df1e8b
commit c450b08a75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,8 +17,8 @@ process DEEPVARIANT {
path(fai) path(fai)
output: output:
tuple val(meta), path("*.vcf.gz") , emit: vcf tuple val(meta), path("${prefix}.vcf.gz") , emit: vcf
tuple val(meta), path("*g.vcf.gz"), emit: gvcf tuple val(meta), path("${prefix}.g.vcf.gz"), emit: gvcf
path "versions.yml" , emit: versions path "versions.yml" , emit: versions
when: when:
@ -26,7 +26,7 @@ process DEEPVARIANT {
script: script:
def args = task.ext.args ?: '' def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}" prefix = task.ext.prefix ?: "${meta.id}"
def regions = intervals ? "--regions ${intervals}" : "" def regions = intervals ? "--regions ${intervals}" : ""
""" """