Apply suggestions from code review

Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
This commit is contained in:
Kevin Menden 2020-12-18 08:16:18 +01:00 committed by GitHub
parent 57ab6dbcbf
commit 41329b8982
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -25,7 +25,7 @@ process BOWTIE_ALIGN {
output:
tuple val(meta), path('*.bam'), emit: bam
tuple val(meta), path('*.out'), emit: log
path 'bowtie.version.txt', emit: version
path '*.version.txt' , emit: version
script:
def software = getSoftwareName(task.process)
@ -45,6 +45,6 @@ process BOWTIE_ALIGN {
2> ${prefix}.out \\
| samtools view $options.args2 -@ $task.cpus -bS -o ${prefix}.bam -
bowtie --version | head -n 1 | cut -d" " -f3 > ${software}.version.txt
echo \$(bowtie --version 2>&1) | sed 's/^.*bowtie-align-s version //; s/ .*\$//' > ${software}.version.txt
"""
}

View file

@ -29,7 +29,7 @@ process BOWTIE_INDEX {
def software = getSoftwareName(task.process)
"""
mkdir bowtie
bowtie-build --threads $task.cpus ${fasta} bowtie/${fasta.baseName}.index
bowtie --version | head -n 1 | cut -d" " -f3 > ${software}.version.txt
bowtie-build --threads $task.cpus $fasta bowtie/${fasta.baseName}
echo \$(bowtie --version 2>&1) | sed 's/^.*bowtie-align-s version //; s/ .*\$//' > ${software}.version.txt
"""
}