-
Notifications
You must be signed in to change notification settings - Fork 1
/
fetch_dbgap_files.wdl
56 lines (50 loc) · 1.26 KB
/
fetch_dbgap_files.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
55
56
version 1.0
workflow fetch_dbgap_files {
input {
File cart_file
File ngc_file
String output_directory
File? manifest_file
Int? n_files
Int? disk_gb
}
call fetch_files {
input:
cart_file=cart_file,
manifest_file=manifest_file,
n_files=n_files,
ngc_file=ngc_file,
output_directory=output_directory,
disk_gb=disk_gb
}
meta {
author: "Adrienne Stilp"
email: "[email protected]"
}
}
task fetch_files {
input {
File cart_file
File ngc_file
String output_directory
Int disk_gb = 50
File? manifest_file
Int? n_files
}
command {
python3 /usr/local/fetch-dbgap-files/fetch.py \
--prefetch /opt/sratoolkit.3.0.10-ubuntu64/bin/prefetch \
--ngc ~{ngc_file} \
--cart ~{cart_file} \
~{"--manifest " + manifest_file} \
~{"--n-files " + n_files} \
--outdir tmp_download \
--untar
gsutil -m cp -r tmp_download/* ~{output_directory}
}
runtime {
# Pull from DockerHub
docker: "uwgac/fetch-dbgap-files:0.2.1"
disks: "local-disk ${disk_gb} SSD"
}
}