forked from UW-GAC/anvil-util-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata_table_import.wdl
54 lines (46 loc) · 1.26 KB
/
data_table_import.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
52
53
54
version 1.0
workflow data_table_import {
input {
Map[String, File] table_files
String model_url
String workspace_name
String workspace_namespace
Boolean overwrite
}
call results {
input: table_files = table_files,
model_url = model_url,
workspace_name = workspace_name,
workspace_namespace = workspace_namespace,
overwrite = overwrite
}
output {
File file_report = results.file_report
}
meta {
author: "Stephanie Gogarten"
email: "[email protected]"
}
}
task results{
input {
Map[String, File] table_files
String model_url
String workspace_name
String workspace_namespace
Boolean overwrite
}
command {
Rscript /usr/local/anvil-util-workflows/data_table_import.R \
--table_files ${write_map(table_files)} \
--model_file ${model_url} ${true="--overwrite" false="" overwrite} \
--workspace_name ${workspace_name} \
--workspace_namespace ${workspace_namespace}
}
output {
File file_report = "pre_import_check.html"
}
runtime {
docker: "uwgac/anvil-util-workflows:0.2.3"
}
}