-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchecker_workflow.wdl
More file actions
80 lines (61 loc) · 1.52 KB
/
checker_workflow.wdl
File metadata and controls
80 lines (61 loc) · 1.52 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# version 1.0.1b
import "magee_workflow.wdl" as magee_wf
workflow checker {
File phenofile
String sample_id_header
String outcome
Boolean binary_outcome
String exposure_names
String covar_names
Array[File] kinsfiles
Array[File] gdsfiles
Array[File] groupfiles
Float max_MAF
File expected_sumstats
call magee_wf.run_MAGEE {
input:
phenofile = phenofile,
sample_id_header = sample_id_header,
outcome = outcome,
binary_outcome = binary_outcome,
exposure_names = exposure_names,
covar_names = covar_names,
kinsfiles = kinsfiles,
gdsfiles = gdsfiles,
groupfiles = groupfiles,
max_MAF = max_MAF
}
call md5sum {
input:
sumstats = run_MAGEE.magee_results,
expected_sumstats = expected_sumstats
}
meta {
author: "Kenny Westerman"
email: "kewesterman@mgh.harvard.edu"
}
}
task md5sum {
File sumstats
File expected_sumstats
command <<<
md5sum ${sumstats} > sum.txt
md5sum ${expected_sumstats} > expected_sum.txt
# temporarily outputting to stderr for clarity's sake
>&2 echo "Output checksum:"
>&2 cat sum.txt
>&2 echo "-=-=-=-=-=-=-=-=-=-"
>&2 echo "Truth checksum:"
>&2 cat expected_sum.txt
>&2 echo "-=-=-=-=-=-=-=-=-=-"
>&2 echo "Head of the output file:"
>&2 head ${sumstats}
>&2 echo "-=-=-=-=-=-=-=-=-=-"
>&2 echo "Head of the truth file:"
>&2 head ${expected_sumstats}
echo "$(cut -f1 -d' ' expected_sum.txt) ${sumstats}" | md5sum --check
>>>
runtime {
docker: "quay.io/large-scale-gxe-methods/ubuntu:focal-20210325"
}
}