diff --git a/poretools.wdl b/poretools.wdl new file mode 100644 index 0000000000000000000000000000000000000000..5f961607b2212d3c1fe25d91e1c1d03ddd2eaf42 --- /dev/null +++ b/poretools.wdl @@ -0,0 +1,33 @@ +task fastq { + Array[File] files + String outputFile + String? preCommand + String? type + String? start + String? end + Int? minLength + Int? maxLength + Boolean? highQuality + Boolean? normalQuality + String? group + command { + set -e -o pipefail + mkdir -p $(dirname ${outputFile}) + ${preCommand} + + poretools fastq \ + ${"--type " + type} \ + ${"--start " + start } \ + ${"--end " + end } \ + ${"--min-length " + minLength } \ + ${"--max-length " + maxLength } \ + ${if highQuality then "--high-quality" else ""} \ + ${if normalQuality then "--normal-quality" else ""} \ + ${"--group " + group} \ + ${sep=" " files} > ${outputFile} + } + + output { + File fastq = outputFile + } +} \ No newline at end of file