Skip to content
Snippets Groups Projects
Verified Commit 55144a92 authored by Laurent Modolo's avatar Laurent Modolo
Browse files

bowtie2: simplify index name

parent 9bc7e4c1
No related branches found
No related tags found
No related merge requests found
......@@ -15,17 +15,17 @@ process index_fasta {
tuple val(file_id), path(fasta)
output:
tuple val(file_id), path("*.index*"), emit: index
tuple val(file_id), path("*.bt2"), emit: index
tuple val(file_id), path("*_report.txt"), emit: report
script:
"""
bowtie2-build --threads ${task.cpus} \
${fasta} \
${fasta.baseName}.index &> \
${fasta.baseName}_bowtie2_index_report.txt
${fasta.simpleName} &> \
${fasta.simpleName}_bowtie2_index_report.txt
if grep -q "Error" ${fasta.baseName}_bowtie2_index_report.txt; then
if grep -q "Error" ${fasta.simpleName}_bowtie2_index_report.txt; then
exit 1
fi
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment