mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-14 05:43:08 +00:00
[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:
parent
c13f2274fb
commit
d5d785b3d8
6 changed files with 16 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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 "
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue