Germline & Somatic short variant discovery (SNVs + Indels) for WGS & WES.
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.

61 lines
1.2KB

  1. task Haplotyper {
  2. File ref_dir
  3. File dbsnp_dir
  4. String SENTIEON_INSTALL_DIR
  5. String SENTIEON_LICENSE
  6. String fasta
  7. File recaled_bam
  8. File recaled_bam_index
  9. File recal_table
  10. String dbsnp
  11. String sample
  12. String docker
  13. String cluster_config
  14. String disk_size
  15. File? regions
  16. Int? interval_padding
  17. command <<<
  18. set -o pipefail
  19. set -e
  20. export SENTIEON_LICENSE=${SENTIEON_LICENSE}
  21. nt=$(nproc)
  22. if [ ${regions} ]; then
  23. INTERVAL="--interval ${regions} --interval_padding ${interval_padding}"
  24. else
  25. INTERVAL=""
  26. fi
  27. if [ ${pon_vcf} ]; then
  28. PON="--pon ${pon_vcf}"
  29. ${SENTIEON_INSTALL_DIR}/bin/sentieon util vcfindex ${pon_vcf}
  30. else
  31. PON=""
  32. fi
  33. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt \
  34. --interval ${regions} -r ${ref_dir}/${fasta} \
  35. -i ${recaled_bam} -q ${recal_table}\
  36. --algo Haplotyper -d ${dbsnp_dir}/${dbsnp} \
  37. ${sample}_hc.vcf
  38. >>>
  39. runtime {
  40. docker: docker
  41. cluster: cluster_config
  42. systemDisk: "cloud_ssd 40"
  43. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  44. }
  45. output {
  46. File vcf = "${sample}_hc.vcf"
  47. File vcf_idx = "${sample}_hc.vcf.idx"
  48. }
  49. }