You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 line
987B

  1. task annovar {
  2. File vcf
  3. String basename = basename(vcf,".vcf")
  4. String hg
  5. File annovar_database
  6. String docker
  7. String cluster_config
  8. String disk_size
  9. command <<<
  10. set -o pipefail
  11. set -e
  12. nt=$(nproc)
  13. awk -F'\t' '{if(($1~"^#")||($1!~"^#" && $7=="PASS")){print $0}}' ${vcf} > ${basename}.PASS.vcf
  14. if [ ${hg} == "hg38" ]; then
  15. /installations/annovar/table_annovar.pl ${basename}.PASS.vcf \
  16. ${annovar_database} -buildver ${hg} \
  17. -out ${basename} -remove \
  18. -protocol rmsk,exac03,gnomad211_exome,cosmic92_coding,cosmic92_noncoding \
  19. -operation r,f,f,f,f \
  20. -nastring . -vcfinput -thread $nt
  21. fi
  22. >>>
  23. runtime {
  24. docker: docker
  25. cluster: cluster_config
  26. systemDisk: "cloud_ssd 40"
  27. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  28. }
  29. output {
  30. File avinput = "${basename}.avinput"
  31. File rmsk_txt = "${basename}.${hg}_rmsk.txt"
  32. File rmsk_vcf = "${basename}.${hg}_rmsk.vcf"
  33. }
  34. }