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 { ...@@ -15,17 +15,17 @@ process index_fasta {
tuple val(file_id), path(fasta) tuple val(file_id), path(fasta)
output: 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 tuple val(file_id), path("*_report.txt"), emit: report
script: script:
""" """
bowtie2-build --threads ${task.cpus} \ bowtie2-build --threads ${task.cpus} \
${fasta} \ ${fasta} \
${fasta.baseName}.index &> \ ${fasta.simpleName} &> \
${fasta.baseName}_bowtie2_index_report.txt ${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 exit 1
fi fi
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment