-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathwf_freyja_update.wdl
More file actions
73 lines (68 loc) · 1.71 KB
/
wf_freyja_update.wdl
File metadata and controls
73 lines (68 loc) · 1.71 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
version 1.0
workflow freyja_update {
input {
String gcp_uri
}
call freyja_update_refs {
input:
}
call transfer_files {
input:
updated_barcodes = freyja_update_refs.updated_barcodes,
updated_lineages = freyja_update_refs.updated_lineages,
update_log = freyja_update_refs.update_log,
gcp_uri = gcp_uri
}
output {
}
}
task freyja_update_refs {
input {
String docker = "staphb/freyja:1.3.4"
Int disk_size = 100
}
meta {
volatile: true
}
command <<<
# Create updated refrence files
mkdir freyja_update_refs
freyja update --outdir freyja_update_refs
echo "Freyja reference files created using the freyja update command; Freyja Docker Image utilized: ~{docker}. More information can be found at https://github.com/andersen-lab/Freyja" > freyja_update_refs/update_log.txt
>>>
runtime {
memory: "16 GB"
cpu: 4
docker: "~{docker}"
disks: "local-disk " + disk_size + " HDD"
disk: disk_size + " GB" # TES
}
output {
File updated_barcodes = "freyja_update_refs/usher_barcodes.csv"
File updated_lineages = "freyja_update_refs/curated_lineages.json"
File update_log = "freyja_update_refs/update_log.txt"
}
}
task transfer_files {
input {
String gcp_uri
File updated_barcodes
File updated_lineages
File update_log
Int disk_size = 100
}
command <<<
# transfer_files to specified gcp_uri
date_tag=$(date +"%Y-%m-%d")
gsutil -m cp ~{updated_barcodes} ~{updated_lineages} ~{update_log} ~{gcp_uri}/${date_tag}
>>>
runtime {
memory: "4 GB"
cpu: 2
docker: "theiagen/utility:1.1"
disks: "local-disk " + disk_size + " HDD"
disk: disk_size + " GB" # TES
}
output {
}
}