mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
Combine output after code review
This commit is contained in:
parent
24d5e7feed
commit
1de1c2253e
2 changed files with 6 additions and 11 deletions
|
@ -13,16 +13,15 @@ process SAMTOOLS_CONVERT {
|
|||
path fai
|
||||
|
||||
output:
|
||||
tuple val(meta), path("*.cram"), path("*.crai") , emit: cram_crai, optional: true
|
||||
tuple val(meta), path("*.bam"), path("*.bai") , emit: bam_bai, optional:true
|
||||
path "versions.yml" , emit: versions
|
||||
tuple val(meta), path("*.{cram,bam}"), path("*.{crai,bai}") , emit: aligned_index
|
||||
path "versions.yml" , emit: versions
|
||||
|
||||
when:
|
||||
task.ext.when == null || task.ext.when
|
||||
|
||||
script:
|
||||
def args = task.ext.args ?: ''
|
||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||
prefix = task.ext.prefix ?: "${meta.id}"
|
||||
def file_type = input.getExtension() == "bam" ? "cram" : "bam"
|
||||
|
||||
"""
|
||||
|
|
|
@ -39,14 +39,10 @@ output:
|
|||
description: |
|
||||
Groovy Map containing sample information
|
||||
e.g. [ id:'test', single_end:false ]
|
||||
- cram_crai:
|
||||
- aligned_index:
|
||||
type: file
|
||||
description: filtered/converted CRAM file + index
|
||||
pattern: "*{.cram,.crai}"
|
||||
- bam_bai:
|
||||
type: file
|
||||
description: filtered/converted BAM file + index
|
||||
pattern: "*{.bam,.bai}"
|
||||
description: filtered/converted BAM/CRAM file + index
|
||||
pattern: "*{.bam/cram,.bai/crai}"
|
||||
- version:
|
||||
type: file
|
||||
description: File containing software version
|
||||
|
|
Loading…
Reference in a new issue