[samtools] add optional csi output (#2064)

* [samtools] add optional csi output, when applicable

* Remove empty line

Co-authored-by: James A. Fellows Yates <jfy133@gmail.com>

Co-authored-by: James A. Fellows Yates <jfy133@gmail.com>
Co-authored-by: Matthieu Muffato <mm49@sanger.ac.uk>
master
Benedetto Polimeni 2 years ago committed by GitHub
parent c13f2274fb
commit d5d785b3d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -15,8 +15,10 @@ process SAMTOOLS_MERGE {
output:
tuple val(meta), path("${prefix}.bam") , optional:true, emit: bam
tuple val(meta), path("${prefix}.cram"), optional:true, emit: cram
tuple val(meta), path("*.csi") , optional:true, emit: csi
path "versions.yml" , emit: versions
when:
task.ext.when == null || task.ext.when

@ -51,6 +51,10 @@ output:
type: file
description: File containing software versions
pattern: "versions.yml"
- csi:
type: file
description: BAM index file (optional)
pattern: "*.csi"
authors:
- "@drpatelh"
- "@yuukiiwa "

@ -12,6 +12,7 @@ process SAMTOOLS_SORT {
output:
tuple val(meta), path("*.bam"), emit: bam
tuple val(meta), path("*.csi"), emit: csi, optional: true
path "versions.yml" , emit: versions
when:

@ -39,6 +39,10 @@ output:
type: file
description: File containing software versions
pattern: "versions.yml"
- csi:
type: file
description: BAM index file (optional)
pattern: "*.csi"
authors:
- "@drpatelh"
- "@ewels"

@ -14,6 +14,7 @@ process SAMTOOLS_VIEW {
output:
tuple val(meta), path("*.bam") , emit: bam , optional: true
tuple val(meta), path("*.cram"), emit: cram, optional: true
tuple val(meta), path("*.csi") , emit: csi, optional: true
path "versions.yml" , emit: versions
when:

@ -51,6 +51,10 @@ output:
type: file
description: File containing software versions
pattern: "versions.yml"
- csi:
type: file
description: BAM index file (optional)
pattern: "*.csi"
authors:
- "@drpatelh"
- "@joseespinosa"

Loading…
Cancel
Save