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

evaluate outputpaths before command section

parent d619ed18
No related branches found
No related tags found
2 merge requests!9Changes for virus assembly pipeline,!10Extra tasks required for assembly.
...@@ -15,7 +15,11 @@ task fastqc { ...@@ -15,7 +15,11 @@ task fastqc {
File? limits File? limits
Int? kmers Int? kmers
String? dir String? dir
# Chops of the .gz extension if present.
String name = sub(seqFile, "\\.gz$","")
# This regex chops of the extension and replaces it with _fastqc for the reportdir.
# Just as fastqc does it.
String reportDir = outdirPath + "/" + sub(basename(name), "\\.[^\\.]*$", "_fastqc")
command { command {
set -e -o pipefail set -e -o pipefail
${preCommand} ${preCommand}
...@@ -40,11 +44,6 @@ task fastqc { ...@@ -40,11 +44,6 @@ task fastqc {
} }
output { output {
# Chops of the .gz extension if present.
String name = sub(seqFile, "\\.gz$","")
# This regex chops of the extension and replaces it with _fastqc for the reportdir.
# Just as fastqc does it.
String reportDir = outdirPath + "/" + sub(basename(name), "\\.[^\\.]*$", "_fastqc")
File rawReport = reportDir + "/fastqc_data.txt" File rawReport = reportDir + "/fastqc_data.txt"
File htmlReport = reportDir + "/fastqc_report.html" File htmlReport = reportDir + "/fastqc_report.html"
File summary = reportDir + "/summary.txt" File summary = reportDir + "/summary.txt"
......
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