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

solve poretools issue

parent 3ddf2f10
No related branches found
No related tags found
2 merge requests!9Changes for virus assembly pipeline,!10Extra tasks required for assembly.
task fastq {
Array[String]+ files # Array[String]+ instead of Array[File]+ to allow for globs
Array[File]+ files # Files should exist! Also accepts multiple directories (unlike poretools).
String outputFile
String? preCommand
String? type
......@@ -16,16 +16,22 @@ task fastq {
mkdir -p $(dirname ${outputFile})
${preCommand}
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} \
${sep=" " files} ${true="| gzip " false="" gzip}> ${outputFile}
(
# 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 {
......
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