forked from UW-GAC/anvil-util-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
data_model_report.wdl
51 lines (43 loc) · 1.12 KB
/
data_model_report.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
44
45
46
47
48
49
50
51
version 1.0
workflow data_model_report {
input {
Map[String, File] table_files
String model_url
String out_prefix
}
call results {
input: table_files = table_files,
model_url = model_url,
out_prefix = out_prefix
}
output {
File file_report = results.file_report
Array[File]? tables = results.tables
Boolean pass_checks = results.pass_checks
}
meta {
author: "Stephanie Gogarten"
email: "sdmorris@uw.edu"
}
}
task results{
input {
Map[String, File] table_files
String model_url
String out_prefix
}
command {
Rscript /usr/local/anvil-util-workflows/data_model_report.R \
--table_files ${write_map(table_files)} \
--model_file ${model_url} \
--out_prefix ${out_prefix}
}
output {
File file_report = "${out_prefix}.html"
Array[File]? tables = glob("*_table.tsv")
Boolean pass_checks = read_boolean("pass.txt")
}
runtime {
docker: "uwgac/anvil-util-workflows:0.2.3"
}
}