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

remove poretools.wdl

parent 10e3ffc6
No related branches found
No related tags found
2 merge requests!9Changes for virus assembly pipeline,!10Extra tasks required for assembly.
task fastq {
Array[File]+ files # Files should exist! Also accepts multiple directories (unlike poretools).
String outputFile
String? preCommand
String? type
String? start
String? end
Int? minLength
Int? maxLength
Boolean? highQuality
Boolean? normalQuality
String? group
Boolean? gzip = true
command {
set -e -o pipefail
mkdir -p $(dirname ${outputFile})
${preCommand}
(
# Allow for multiple directory input by looping over files
for file in ${sep=" " files}
do
poretools fastq \
${"--type " + type} \
${"--start " + start } \
${"--end " + end } \
${"--min-length " + minLength } \
${"--max-length " + maxLength } \
${true="--high-quality" false="" highQuality} \
${true="--normal-quality" false="" normalQuality} \
${"--group " + group} \
$file
done
) ${true="| gzip " false="" gzip}> ${outputFile}
}
output {
File fastq = outputFile
}
}
\ 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