-
Notifications
You must be signed in to change notification settings - Fork 2
/
data_model_report.wdl
50 lines (42 loc) · 1.16 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
version 1.0
workflow data_model_report {
input {
Map[String, File] table_files
String model_url
Boolean check_bucket_paths = true
}
call validate {
input: table_files = table_files,
model_url = model_url,
check_bucket_paths = check_bucket_paths
}
output {
File validation_report = validate.validation_report
Boolean pass_checks = validate.pass_checks
}
meta {
author: "Stephanie Gogarten"
email: "[email protected]"
}
}
task validate {
input {
Map[String, File] table_files
String model_url
Boolean check_bucket_paths
}
command <<<
Rscript /usr/local/anvil-util-workflows/validate_data_model.R \
--table_files ~{write_map(table_files)} \
--model_file ~{model_url} \
--skip_hash_id \
~{true='' false='--skip_bucket_paths' check_bucket_paths}
>>>
output {
File validation_report = "data_model_validation.html"
Boolean pass_checks = read_boolean("pass.txt")
}
runtime {
docker: "uwgac/anvil-util-workflows:0.5.1"
}
}