@@ -0,0 +1,9 @@ | |||
{ | |||
"{{ project_name }}.sample": "{{ sample }}", | |||
"{{ project_name }}.disk_size": "{{ disk_size }}", | |||
"{{ project_name }}.cluster_config": "OnDemand bcs.b2.3xlarge img-ubuntu-vpc", | |||
"{{ project_name }}.annovar_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 }}", | |||
"{{ project_name }}.vcf_index": "{{ vcf_index }}" | |||
} |
@@ -0,0 +1,28 @@ | |||
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,ljb26_all,dbnsfp35c,intervar_20180118,cosmic70,exac03,gnomad30_genome,1000g2015aug_all,clinvar_20190305,gnomad211_genome -operation g,g,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,22 @@ | |||
import "./tasks/Annovar.wdl" as Annovar | |||
workflow {{ project_name }} { | |||
File vcf_file | |||
File database | |||
File vcf_index | |||
String sample | |||
String annovar_docker | |||
String cluster_config | |||
String disk_size | |||
call Annovar.Annovar as Annovar { | |||
input: | |||
docker=annovar_docker, | |||
database=database, | |||
vcf_file=vcf_file, | |||
sample=sample, | |||
cluster_config=cluster_config, | |||
disk_size=disk_size | |||
} | |||
} |