fix: picard sortsam (#605)

* Add picard/sortsam module

* Fix container links

* Changes after code review

* Input meta in the right place

* Correct output file suffix

* Define only `bam` in output tuple
This commit is contained in:
James A. Fellows Yates 2021-07-21 15:34:21 +02:00 committed by GitHub
parent f43778b0e6
commit a0019d4175
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -24,7 +24,7 @@ process PICARD_SORTSAM {
val sort_order
output:
tuple val(meta), path("*.sorted.bam"), emit: bam
tuple val(meta), path("*.bam"), emit: bam
path "*.version.txt" , emit: version
script:
@ -41,7 +41,7 @@ process PICARD_SORTSAM {
SortSam \\
-Xmx${avail_mem}g \\
--INPUT $bam \\
--OUTPUT ${prefix}.sorted.bam \\
--OUTPUT ${prefix}.bam \\
--SORT_ORDER $sort_order
echo \$(picard SortSam --version 2>&1) | grep -o 'Version:.*' | cut -f2- -d: > ${software}.version.txt

View file

@ -2,7 +2,7 @@
nextflow.enable.dsl = 2
include { PICARD_SORTSAM } from '../../../../modules/picard/sortsam/main.nf' addParams( options: [:] )
include { PICARD_SORTSAM } from '../../../../modules/picard/sortsam/main.nf' addParams( options: [suffix:'.sorted'] )
workflow test_picard_sortsam {