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

remove optional

parent 734b5440
No related branches found
No related tags found
1 merge request!75Add multiqc
...@@ -12,7 +12,7 @@ task MultiQC { ...@@ -12,7 +12,7 @@ task MultiQC {
String? title String? title
String? comment String? comment
String? fileName String? fileName
String? outDir String outDir = "."
String? template String? template
String? tag String? tag
String? ignore String? ignore
...@@ -38,12 +38,10 @@ task MultiQC { ...@@ -38,12 +38,10 @@ task MultiQC {
Boolean quiet = false Boolean quiet = false
} }
String outputDir = if defined(outDir) then select_first([outDir]) else "."
command { command {
set -e -o pipefail set -e -o pipefail
~{preCommand} ~{preCommand}
~{if defined(outDir) then "mkdir -p " + outputDir else ""} mkdir -p ~{outDir}
multiqc \ multiqc \
~{true="--force" false="" force} \ ~{true="--force" false="" force} \
~{true="--dirs" false="" dirs} \ ~{true="--dirs" false="" dirs} \
...@@ -79,7 +77,7 @@ task MultiQC { ...@@ -79,7 +77,7 @@ task MultiQC {
String reportFilename = if (defined(fileName)) then sub(select_first([fileName]), "\.html$", "") else "multiqc" String reportFilename = if (defined(fileName)) then sub(select_first([fileName]), "\.html$", "") else "multiqc"
output { output {
File multiqcReport = outputDir + "/" + reportFilename + "_report.html" File multiqcReport = outDir + "/" + reportFilename + "_report.html"
File multiqcDataDir = outputDir + "/" +reportFilename + "_data" File multiqcDataDir = outDir + "/" +reportFilename + "_data"
} }
} }
\ No newline at end of file
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