Skip to content

Commit

Permalink
feat: even better
Browse files Browse the repository at this point in the history
  • Loading branch information
maxulysse committed Jan 20, 2022
1 parent f524d06 commit 6316357
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions modules/bwa/index/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?: ''
Expand Down
4 changes: 2 additions & 2 deletions modules/bwa/mem/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 -
Expand Down
4 changes: 2 additions & 2 deletions modules/bwamem2/index/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?: ''
Expand Down
4 changes: 2 additions & 2 deletions modules/bwamem2/mem/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 -
Expand Down

0 comments on commit 6316357

Please sign in to comment.