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

add extra operater to concatenateTextFiles

parent a5d69668
No related branches found
No related tags found
2 merge requests!9Changes for virus assembly pipeline,!10Extra tasks required for assembly.
......@@ -51,12 +51,13 @@ task concatenateTextFiles {
Array[File] fileList
String combinedFilePath
Boolean? unzip=false
Boolean? zip=false
command {
set -e -o pipefail
${"mkdir -p $(dirname " + combinedFilePath + ")"}
${true='zcat' false= 'cat' unzip} ${sep=' ' fileList} \
> ${combinedFilePath}
${true="| gzip -c" false="" zip} > ${combinedFilePath}
}
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