-
Notifications
You must be signed in to change notification settings - Fork 0
/
DummyVariantCalling.wdl
69 lines (56 loc) · 1.63 KB
/
DummyVariantCalling.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
version 1.0
import "tasks/CopyFilesFromWasabi.wdl"
import "tasks/CopyFilesToWasabi.wdl"
task DummyVariantCalling {
input {
File cram_file
File source_vcf
String output_vcfname
}
command <<<
set -euxo pipefail
[ ! -f "~{cram_file}" ] && exit 1
cp "~{source_vcf}" "~{output_vcfname}"
>>>
output {
File output_vcf = output_vcfname
}
runtime {
docker: "ubuntu:latest"
memory: "4GB"
}
}
workflow DummyVariantCallingWorkflow {
meta {
author: "Eugene Clark"
email: "ehclark at partners dot org"
description: "Dummy workflow that takes in a CRAM and copies a static VCF to the output"
}
input {
String sample_id
String run_id
String cram_file
File source_vcf
String wasabi_bucket_name = "gcp-integration-test"
String wasabi_bucket_path_prefix = "/runs/"
String wasabi_bucket_path_suffix = "/vcfs/"
}
call CopyFilesFromWasabi.CopyFilesFromWasabiTask {
input:
source_files = [cram_file]
}
call DummyVariantCalling {
input:
cram_file = CopyFilesFromWasabiTask.target_files[0],
source_vcf = source_vcf,
output_vcfname = sample_id + '.vcf'
}
call CopyFilesToWasabi.CopyFilesToWasabiTask {
input:
source_files = [DummyVariantCalling.output_vcf],
target_dir = 's3://' + wasabi_bucket_name + wasabi_bucket_path_prefix + run_id + wasabi_bucket_path_suffix
}
output {
File output_vcf = DummyVariantCalling.output_vcf
}
}