feat: add original input as optional output channel (#1147)

This commit is contained in:
Maxime U. Garcia 2021-12-09 11:04:53 +01:00 committed by GitHub
parent a9dd46f010
commit 37c5cb495d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,10 +11,13 @@ process SAMTOOLS_INDEX {
tuple val(meta), path(input)
output:
tuple val(meta), path("*.bai") , optional:true, emit: bai
tuple val(meta), path("*.crai"), optional:true, emit: crai
tuple val(meta), path("*.csi") , optional:true, emit: csi
path "versions.yml" , emit: versions
tuple val(meta), path("*.bam" , includeInputs:true), path("*.bai") , optional:true, emit: bam_bai
tuple val(meta), path("*.bai") , optional:true, emit: bai
tuple val(meta), path("*.bam" , includeInputs:true), path("*.csi") , optional:true, emit: bam_csi
tuple val(meta), path("*.csi") , optional:true, emit: csi
tuple val(meta), path("*.cram", includeInputs:true), path("*.crai"), optional:true, emit: cram_crai
tuple val(meta), path("*.crai") , optional:true, emit: crai
path "versions.yml" , emit: versions
script:
def args = task.ext.args ?: ''