mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-10 20:23:10 +00:00
Apply suggestions from code review
Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
This commit is contained in:
parent
57ab6dbcbf
commit
41329b8982
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
"""
|
||||
}
|
||||
|
|
|
@ -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
|
||||
"""
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue