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

add gzip

parent 80333781
No related branches found
No related tags found
2 merge requests!9Changes for virus assembly pipeline,!10Extra tasks required for assembly.
task fastq { task fastq {
Array[File] files Array[File]+ files
String outputFile String outputFile
String? preCommand String? preCommand
String? type String? type
...@@ -10,6 +10,7 @@ task fastq { ...@@ -10,6 +10,7 @@ task fastq {
Boolean? highQuality Boolean? highQuality
Boolean? normalQuality Boolean? normalQuality
String? group String? group
Boolean? gzip = true
command { command {
set -e -o pipefail set -e -o pipefail
mkdir -p $(dirname ${outputFile}) mkdir -p $(dirname ${outputFile})
...@@ -24,7 +25,7 @@ task fastq { ...@@ -24,7 +25,7 @@ task fastq {
${if highQuality then "--high-quality" else ""} \ ${if highQuality then "--high-quality" else ""} \
${if normalQuality then "--normal-quality" else ""} \ ${if normalQuality then "--normal-quality" else ""} \
${"--group " + group} \ ${"--group " + group} \
${sep=" " files} > ${outputFile} ${sep=" " files} ${if gzip then "| gzip " else ""}> ${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