Skip to content
Snippets Groups Projects
Commit 4e4f4bf8 authored by Ruben Vorderman's avatar Ruben Vorderman
Browse files

fix bwa index output file error

parent ef2914cb
No related branches found
No related tags found
1 merge request!11Changes needed for the iterative assembly pipeline
...@@ -35,6 +35,7 @@ task index { ...@@ -35,6 +35,7 @@ task index {
Int? blockSize Int? blockSize
String? outputDir String? outputDir
String fastaFilename = basename(fasta) String fastaFilename = basename(fasta)
String outputFile = if (defined(outputDir)) then outputDir + "/" + fastaFilename else fasta
command { command {
set -e -o pipefail set -e -o pipefail
...@@ -47,7 +48,7 @@ task index { ...@@ -47,7 +48,7 @@ task index {
bwa index \ bwa index \
${"-a " + constructionAlgorithm} \ ${"-a " + constructionAlgorithm} \
${"-b" + blockSize} \ ${"-b" + blockSize} \
${outputDir + "/"}${fastaFilename} ${outputFile}
} }
output { output {
......
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