@@ -0,0 +1,9 @@ | |||
{ | |||
"{{ project_name }}.sample": "{{ sample }}", | |||
"{{ project_name }}.disk_size": "150", | |||
"{{ project_name }}.cluster_config": "OnDemand bcs.b2.3xlarge img-ubuntu-vpc", | |||
"{{ project_name }}.docker": "registry.cn-shanghai.aliyuncs.com/pgx-docker-registry/annovar:v2018.04", | |||
"{{ project_name }}.database": "oss://chinese-quartet/quartet-storage-data/reference_data/annovar_hg38/", | |||
"{{ project_name }}.vcf_file": "{{ vcf }}" | |||
} | |||
@@ -0,0 +1,29 @@ | |||
task annovar { | |||
File vcf_file | |||
File database | |||
String sample | |||
String docker | |||
String cluster_config | |||
String disk_size | |||
command <<< | |||
nt=$(nproc) | |||
/installations/annovar/table_annovar.pl ${vcf_file} ${database} -buildver hg38 -out ${sample} -remove -protocol refGene,ensGene,cytoBand,genomicSuperDups,ljb26_all,dbnsfp35c,intervar_20180118,cosmic70,exac03,gnomad30_genome,1000g2015aug_all,clinvar_20190305,gnomad211_genome -operation g,g,r,r,f,f,f,f,f,f,f,f,f -nastring . -vcfinput -thread $nt | |||
>>> | |||
runtime { | |||
docker:docker | |||
cluster: cluster_config | |||
systemDisk: "cloud_ssd 40" | |||
dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/" | |||
} | |||
output { | |||
File avinput = "${sample}.avinput" | |||
File multianno_txt = "${sample}.hg38_multianno.txt" | |||
File multianno_vcf = "${sample}.hg38_multianno.vcf" | |||
} | |||
} | |||
@@ -0,0 +1,21 @@ | |||
import "./tasks/annovar.wdl" as annovar | |||
workflow {{ project_name }} { | |||
File vcf_file | |||
File database | |||
String sample | |||
String docker | |||
String cluster_config | |||
String disk_size | |||
call annovar.annovar as annovar { | |||
input: | |||
vcf_file=vcf_file, | |||
database=database, | |||
sample=sample, | |||
docker=docker, | |||
cluster_config=cluster_config, | |||
disk_size=disk_size | |||
} | |||
} |