-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtest-small.wdl
executable file
·87 lines (76 loc) · 1.67 KB
/
test-small.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version 1.0
import "annotation_full.wdl" as awf
workflow test_small {
input{
String container="microbiomedata/img-omics@sha256:d5f4306bf36a97d55a3710280b940b89d7d4aca76a343e75b0e250734bc82b71"
String proj="Testsmall"
String database="/refdata/img/"
String url="https://portal.nersc.gov/project/m3408/test_data"
}
call prepare {
input: container=container,
url=url,
proj=proj
}
call awf.annotation {
input: imgap_project_id=proj,
input_file=prepare.fasta,
database_location=database
}
call validate {
input: container=container,
url=url,
proj=proj,
func_gff=annotation.functional_gff,
struct_gff=annotation.structural_gff
}
meta {
author: "Shane Canon"
email: "scanon@lbl.gov"
version: "1.0.0"
}
}
task prepare {
input{
String container
String proj
String prefix = sub(proj, ":", "_")
String url
}
command <<<
set -eou pipefail
wget ~{url}/~{prefix}_contigs.fna
>>>
output{
File fasta = "~{prefix}_contigs.fna"
}
runtime {
memory: "1G"
cpu: 2
maxRetries: 1
docker: container
}
}
task validate {
input{
String container
File func_gff
File struct_gff
String url
String proj
String prefix = sub(proj, ":", "_")
}
command <<<
set -eou pipefail
wget ~{url}/~{prefix}_functional_annotation.gff
wget ~{url}/~{prefix}_structural_annotation.gff
validate.sh ~{func_gff}
validate.sh ~{struct_gff}
>>>
runtime {
memory: "10G"
cpu: 4
maxRetries: 1
docker: "microbiomedata/mg-validate:v0.0.0"
}
}