forked from biowdl/tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhtseq.wdl
43 lines (38 loc) · 1.03 KB
/
htseq.wdl
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
41
42
43
version 1.0
task HTSeqCount {
input {
Array[File]+ inputBams
Array[File]+ inputBamsIndex
File gtfFile
String outputTable = "output.tsv"
String format = "bam"
String order = "pos"
String stranded = "no"
String? featureType
String? idattr
Array[String] additionalAttributes = []
Int memory = 40
String dockerImage = "quay.io/biocontainers/htseq:0.9.1--py36h7eb728f_2"
}
command {
set -e
mkdir -p $(dirname ~{outputTable})
htseq-count \
-f ~{format} \
-r ~{order} \
-s ~{stranded} \
~{"--type " + featureType} \
~{"--idattr " + idattr} \
~{true="--additional-attr " false="" length(additionalAttributes) > 0 }~{sep=" --additional-attr " additionalAttributes} \
~{sep=" " inputBams} \
~{gtfFile} \
> ~{outputTable}
}
output {
File counts = outputTable
}
runtime {
memory: memory
docker: dockerImage
}
}