forked from biowdl/tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcollect-columns.wdl
43 lines (38 loc) · 1.11 KB
/
collect-columns.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 CollectColumns {
input {
Array[File]+ inputTables
String outputPath
Int? featureColumn
Int? valueColumn
Int? separator
Array[String]? sampleNames
Boolean header = false
Array[String]? additionalAttributes
File? referenceGtf
String? featureAttribute
String dockerImage = "quay.io/biocontainers/collect-columns:0.2.0--py_1"
}
command {
set -e
mkdir -p $(dirname ~{outputPath})
collect-columns \
~{outputPath} \
~{sep=" " inputTables} \
~{"-f " + featureColumn} \
~{"-c " + valueColumn} \
~{"-s " + separator} \
~{true="-n" false="" defined(sampleNames)} ~{sep=" " sampleNames} \
~{true="-H" false="" header} \
~{true="-a" false="" defined(additionalAttributes)} ~{sep=" " additionalAttributes} \
~{"-g " + referenceGtf} \
~{"-F " + featureAttribute}
}
output {
File outputTable = outputPath
}
runtime {
memory: 4 + ceil(0.5* length(inputTables))
docker: dockerImage
}
}