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 {
File? limits
Int? kmers
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 {
set -e -o pipefail
${preCommand}
......@@ -40,11 +44,6 @@ task fastqc {
}
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 htmlReport = reportDir + "/fastqc_report.html"
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