[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>
This commit is contained in:
Benedetto Polimeni 2022-09-20 22:08:29 +02:00 committed by GitHub
parent c13f2274fb
commit d5d785b3d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 0 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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