Skip to content

Commit 096663f

Browse files
fix file extension awareness cg_pipeline (#189)
* fix file extension awareness cg_pipeline * remove legacy task files * add back taxonID and versioning * Update runtime for Azure compatibility Co-authored-by: kevinlibuit <kevin@libuit.com>
1 parent ae94f71 commit 096663f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+387
-681
lines changed

tasks/assembly/task_mycosnp_consensus_assembly.wdl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ task mycosnp {
1010
String accession = "GCA_016772135"
1111
Int memory = 16
1212
Int cpu = 4
13+
Int disk_size = 100
1314
}
1415
command <<<
1516
date | tee DATE
@@ -45,7 +46,8 @@ task mycosnp {
4546
docker: "~{docker}"
4647
memory: "~{memory} GB"
4748
cpu: cpu
48-
disks: "local-disk 50 SSD"
49+
disks: "local-disk " + disk_size + " SSD"
50+
disk: disk_size + " GB"
4951
maxRetries: 3
5052
preemptible: 0
5153
}

tasks/assembly/task_shovill.wdl

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ task shovill_pe {
66
File read2_cleaned
77
String samplename
88
String docker = "quay.io/staphb/shovill:1.1.0"
9+
Int disk_size = 100
910

1011
## SHOVILL optional parameters
1112
## --depth [INT] Sub-sample --R1/--R2 to this depth. Disable with --depth 0 (default: 150)
@@ -70,11 +71,13 @@ task shovill_pe {
7071
String shovill_version = read_string("VERSION")
7172
}
7273
runtime {
73-
docker: "~{docker}"
74-
memory: "16 GB"
75-
cpu: 4
76-
disks: "local-disk 100 SSD"
77-
preemptible: 0
74+
docker: "~{docker}"
75+
memory: "16 GB"
76+
cpu: 4
77+
disks: "local-disk " + disk_size + " SSD"
78+
disk: disk_size + " GB"
79+
maxRetries: 3
80+
preemptible: 0
7881
}
7982
}
8083

@@ -83,6 +86,7 @@ task shovill_se {
8386
File read1_cleaned
8487
String samplename
8588
String docker = "quay.io/staphb/shovill-se:1.1.0"
89+
Int disk_size = 100
8690

8791
## SHOVILL optional parameters
8892
## --depth [INT] Sub-sample --R1/--R2 to this depth. Disable with --depth 0 (default: 150)
@@ -141,10 +145,12 @@ task shovill_se {
141145
String shovill_version = read_string("VERSION")
142146
}
143147
runtime {
144-
docker: "~{docker}"
145-
memory: "16 GB"
146-
cpu: 4
147-
disks: "local-disk 100 SSD"
148-
preemptible: 0
148+
docker: "~{docker}"
149+
memory: "16 GB"
150+
cpu: 4
151+
disks: "local-disk " + disk_size + " SSD"
152+
disk: disk_size + " GB"
153+
maxRetries: 3
154+
preemptible: 0
149155
}
150156
}

tasks/gene_typing/task_abricate.wdl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ task abricate {
1212
Int? mincov
1313
Int cpu = 2
1414
String docker = "staphb/abricate:1.0.1-abaum-plasmid"
15+
Int disk_size = 100
1516
}
1617
command <<<
1718
date | tee DATE
@@ -49,6 +50,8 @@ task abricate {
4950
memory: "8 GB"
5051
cpu: cpu
5152
docker: docker
52-
disks: "local-disk 100 HDD"
53+
disks: "local-disk " + disk_size + " SSD"
54+
disk: disk_size + " GB"
55+
maxRetries: 3
5356
}
5457
}

tasks/gene_typing/task_amrfinderplus.wdl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ task amrfinderplus_nuc {
1313
Boolean detailed_drug_class = false
1414
Int cpu = 4
1515
String docker = "staphb/ncbi-amrfinderplus:3.10.42"
16+
Int disk_size = 100
1617
Boolean hide_point_mutations = false
1718
}
1819
command <<<
@@ -163,7 +164,8 @@ task amrfinderplus_nuc {
163164
memory: "8 GB"
164165
cpu: cpu
165166
docker: docker
166-
disks: "local-disk 100 SSD"
167+
disks: "local-disk " + disk_size + " SSD"
168+
disk: disk_size + " GB"
167169
preemptible: 0
168170
maxRetries: 3
169171
}

tasks/gene_typing/task_bakta.wdl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ task bakta {
88
Int cpu = 8
99
Int memory = 16
1010
String docker = "quay.io/biocontainers/bakta:1.5.1--pyhdfd78af_0"
11+
Int disk_size = 100
1112
# Parameters
1213
# proteins: Fasta file of trusted protein sequences for CDS annotation
1314
# prodigal_tf: Prodigal training file to use for CDS prediction
@@ -61,6 +62,8 @@ task bakta {
6162
memory: "~{memory} GB"
6263
cpu: cpu
6364
docker: docker
64-
disks: "local-disk 100 SSD"
65+
disks: "local-disk " + disk_size + " SSD"
66+
disk: disk_size + " GB"
67+
maxRetries: 3
6568
}
6669
}

tasks/gene_typing/task_gamma.wdl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ task gamma_one_sample {
66
String samplename
77
String docker = "quay.io/biocontainers/gamma:1.4--hdfd78af_0"
88
File gamma_database
9+
Int disk_size = 100
910
}
1011
String database_name = basename(gamma_database)
1112
command <<<
@@ -23,6 +24,8 @@ task gamma_one_sample {
2324
memory: "8 GB"
2425
cpu: 4
2526
docker: "~{docker}"
26-
disks: "local-disk 100 HDD"
27+
disks: "local-disk " + disk_size + " SSD"
28+
disk: disk_size + " GB"
29+
maxRetries: 3
2730
}
2831
}

tasks/gene_typing/task_plasmidfinder.wdl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ task plasmidfinder {
77
Int cpu = 8
88
Int memory = 16
99
String docker = "staphb/plasmidfinder:2.1.6"
10+
Int disk_size = 100
1011
String? database
1112
String? database_path
1213
String? method_path
@@ -63,6 +64,8 @@ task plasmidfinder {
6364
memory: "~{memory} GB"
6465
cpu: cpu
6566
docker: "~{docker}"
66-
disks: "local-disk 100 HDD"
67+
disks: "local-disk " + disk_size + " SSD"
68+
disk: disk_size + " GB"
69+
maxRetries: 3
6770
}
6871
}

tasks/gene_typing/task_prokka.wdl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ task prokka {
77
Int cpu = 8
88
Int memory = 16
99
String docker = "staphb/prokka:1.14.5"
10+
Int disk_size = 100
1011
# Parameters
1112
# proteins recommended: when you have good quality reference genomes and want to ensure gene naming is consistent [false]
1213
# prodigal_tf: prodigal training file
@@ -42,6 +43,8 @@ task prokka {
4243
memory: "~{memory} GB"
4344
cpu: cpu
4445
docker: docker
45-
disks: "local-disk 100 HDD"
46+
disks: "local-disk " + disk_size + " SSD"
47+
disk: disk_size + " GB"
48+
maxRetries: 3
4649
}
4750
}

tasks/gene_typing/task_resfinder.wdl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ task resfinder {
1010
Float? threshold = 0.9 # Threshold for identity of ResFinder
1111
Boolean point = false # Run pointfinder for chromosomal mutations
1212
String docker = "staphb/resfinder:4.1.11"
13-
13+
Int disk_size = 100
1414
}
1515
command <<<
1616
date | tee DATE
@@ -100,6 +100,8 @@ task resfinder {
100100
memory: "8 GB"
101101
cpu: 4
102102
docker: docker
103-
disks: "local-disk 100 HDD"
103+
disks: "local-disk " + disk_size + " SSD"
104+
disk: disk_size + " GB"
105+
maxRetries: 3
104106
}
105107
}

tasks/phylogenetic_inference/task_iqtree.wdl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ task iqtree {
99
String alrt = 1000 # SH-like approximate likelihood ratio test (SH-aLRT) replicates
1010
String? iqtree_opts = ""
1111
String docker = "staphb/iqtree:1.6.7"
12+
Int disk_size = 100
1213
}
1314
command <<<
1415
# date and version control
@@ -39,7 +40,8 @@ task iqtree {
3940
docker: "~{docker}"
4041
memory: "32 GB"
4142
cpu: 4
42-
disks: "local-disk 100 SSD"
43+
disks: "local-disk " + disk_size + " SSD"
44+
disk: disk_size + " GB"
4345
preemptible: 0
4446
maxRetries: 3
4547
}

0 commit comments

Comments
 (0)