This repository was archived by the owner on May 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathassembly_to_vcf.wdl
More file actions
75 lines (62 loc) · 1.41 KB
/
assembly_to_vcf.wdl
File metadata and controls
75 lines (62 loc) · 1.41 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
version 1.0
import "https://raw.githubusercontent.com/DNAstack/covid-processing-pipeline/master/workflows/common/common.wdl" as common
workflow assembly_to_vcf {
input {
String accession
File assembly
File reference_genome
String reference_genome_id
String container_registry
}
call call_variants {
input:
accession = accession,
assembly = assembly,
reference_genome = reference_genome,
reference_genome_id = reference_genome_id,
container_registry = container_registry
}
call common.assign_lineage {
input:
accession = accession,
assembly = assembly,
container_registry = container_registry
}
output {
File vcf = call_variants.vcf
File vcf_index = call_variants.vcf_index
File lineage_metadata = assign_lineage.lineage_metadata
}
meta {
author: "Heather Ward"
email: "heather@dnastack.com"
}
}
task call_variants {
input {
String accession
File assembly
File reference_genome
String reference_genome_id
String container_registry
}
command {
variants_from_assembly.sh \
-s ~{accession} \
-a ~{assembly} \
-r ~{reference_genome} \
-i ~{reference_genome_id}
bgzip "~{accession}.vcf"
tabix "~{accession}.vcf.gz"
}
output {
File vcf = "~{accession}.vcf.gz"
File vcf_index = "~{accession}.vcf.gz.tbi"
}
runtime {
docker: "~{container_registry}/assembly_to_vcf_tools:0.0.1"
cpu: 1
memory: "3.75 GB"
disks: "local-disk 20 HDD"
}
}