Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
task Generate {
input {
String? preCommand
File? toolJar
File fastqR1
File fastqR2
String outputFile
String? sample
String? library
String? readgroup
Int memory = 4
Float memoryMultiplier = 2.0
}
String toolCommand = if defined(toolJar)
then "java -Xmx" + memory + "G -jar " + toolJar
else "biopet-seqstat -Xmx" + memory + "G"
command {
set -e -o pipefail
~{preCommand}
mkdir -p $(dirname ~{outputFile})
~{toolCommand} \
--fastqR1 ~{fastqR1} \
--fastqR2 ~{fastqR2} \
--output ~{outputFile} \
~{"--sample " + sample} \
~{"--library " + library } \
~{"--readgroup " + readgroup }
}
output {
File json = outputFile
}
runtime {
memory: ceil(memory * memoryMultiplier)
}
}