From 631635734e4777a452ad0306ff932c703f669269 Mon Sep 17 00:00:00 2001 From: MaxUlysse Date: Thu, 20 Jan 2022 16:14:29 +0100 Subject: [PATCH] feat: even better --- modules/bwa/index/main.nf | 4 ++-- modules/bwa/mem/main.nf | 4 ++-- modules/bwamem2/index/main.nf | 4 ++-- modules/bwamem2/mem/main.nf | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/bwa/index/main.nf b/modules/bwa/index/main.nf index ea3ee699c66..55d7b37f829 100644 --- a/modules/bwa/index/main.nf +++ b/modules/bwa/index/main.nf @@ -11,8 +11,8 @@ process BWA_INDEX { path fasta output: - tuple val("bwa/${fasta.baseName}"), path ("bwa") , emit: index - path "versions.yml" , emit: versions + path "bwa/*" , emit: index + path "versions.yml", emit: versions script: def args = task.ext.args ?: '' diff --git a/modules/bwa/mem/main.nf b/modules/bwa/mem/main.nf index 17cf890d0f9..0fed628c4cd 100644 --- a/modules/bwa/mem/main.nf +++ b/modules/bwa/mem/main.nf @@ -9,7 +9,7 @@ process BWA_MEM { input: tuple val(meta), path(reads) - tuple val(index_path), path(index) + path index val sort_bam output: @@ -27,7 +27,7 @@ process BWA_MEM { $args \\ $read_group \\ -t $task.cpus \\ - $index_path \\ + ${index[0].baseName} \\ $reads \\ | samtools $samtools_command $args2 --threads $task.cpus -o ${prefix}.bam - diff --git a/modules/bwamem2/index/main.nf b/modules/bwamem2/index/main.nf index ca85d45dc12..39f8b28e1e6 100644 --- a/modules/bwamem2/index/main.nf +++ b/modules/bwamem2/index/main.nf @@ -11,8 +11,8 @@ process BWAMEM2_INDEX { path fasta output: - tuple val("bwamem2/${fasta}"), path("bwamem2"), emit: index - path "versions.yml" , emit: versions + path "bwamem2/*" , emit: index + path "versions.yml", emit: versions script: def args = task.ext.args ?: '' diff --git a/modules/bwamem2/mem/main.nf b/modules/bwamem2/mem/main.nf index 86aae1f1bd6..46722ae07c6 100644 --- a/modules/bwamem2/mem/main.nf +++ b/modules/bwamem2/mem/main.nf @@ -9,7 +9,7 @@ process BWAMEM2_MEM { input: tuple val(meta), path(reads) - tuple val(index_path), path(index) + path index val sort_bam output: @@ -28,7 +28,7 @@ process BWAMEM2_MEM { $args \\ $read_group \\ -t $task.cpus \\ - $index_path \\ + ${index[0].baseName} \\ $reads \\ | samtools $samtools_command $args2 -@ $task.cpus -o ${prefix}.bam -