-
Notifications
You must be signed in to change notification settings - Fork 0
/
vcf2maf.wdl
65 lines (57 loc) · 1.95 KB
/
vcf2maf.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
task vcf2maf {
File inputVCF
File? vepAnnotatedInputVCF
String tmpDir = "."
File vepOfflineCacheDir
File refFasta
File refFastaFai
File? remapChain
String ncbiBuild = "GRCh37"
String species = "homo_sapiens"
Array[String]? retainInfoCols
String? tumorId
String? normalId
String? vcfTumorId
String? vcfNormalId
File? customEnst
String? mafCenter
Float? minHomVaf
String outputFilePrefix
command {
if [ -n "${vepAnnotatedInputVCF}" ]; then
ln -s ${vepAnnotatedInputVCF} ${tmpDir}/$(basename ${inputVCF} .vcf).vep.vcf
fi
# retain extra INFO cols
if [ -n "${sep="," retainInfoCols}" ]; then
INFOCOLS="--retain-info ${sep ="," retainInfoCols}"
else
INFOCOLS=""
fi
perl /home/vcf2maf.pl --input-vcf ${inputVCF} \
--output-maf ${outputFilePrefix}.maf \
--vep-data ${vepOfflineCacheDir} \
--ref-fasta ${refFasta} \
--species ${species} \
--ncbi-build ${ncbiBuild} \
--tmp-dir ${tmpDir} \
${"--remap-chain " + remapChain} \
${"--maf-center " + mafCenter} \
${"--tumor-id " + tumorId} \
${"--normal-id " + normalId} \
${"--vcf-tumor-id " + vcfTumorId} \
${"--vcf-normal-id " + vcfNormalId} \
${"--custom-enst " + customEnst} \
${"--min-hom-vaf " + minHomVaf} \
$INFOCOLS
rm ${tmpDir}/$(basename ${inputVCF} .vcf).vep.vcf
}
output {
File maf = "${outputFilePrefix}.maf"
}
runtime {
docker: "vcf2maf"
}
}
workflow run {
call vcf2maf
}