mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 02:58:17 +00:00
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:
parent
f43778b0e6
commit
a0019d4175
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Reference in a new issue