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.

40 line
794B

  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. if [ ${hg} == "hg38" ]; then
  14. /installations/annovar/table_annovar.pl ${vcf}\
  15. ${annovar_database} -buildver ${hg} \
  16. -out ${basename} -remove \
  17. -protocol rmsk \
  18. -operation r \
  19. -nastring . -vcfinput -thread $nt
  20. fi
  21. >>>
  22. runtime {
  23. docker: docker
  24. cluster: cluster_config
  25. systemDisk: "cloud_ssd 40"
  26. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  27. }
  28. output {
  29. File avinput = "${basename}.avinput"
  30. File rmsk_txt = "${basename}.${hg}_rmsk.txt"
  31. File rmsk_vcf = "${basename}.${hg}_rmsk.vcf"
  32. }
  33. }