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.

54 lines
1.1KB

  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 deduped_bam
  8. File deduped_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. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt \
  28. --interval ${regions} -r ${ref_dir}/${fasta} \
  29. -i ${deduped_bam} -q ${recal_table}\
  30. --algo Haplotyper -d ${dbsnp_dir}/${dbsnp} \
  31. ${sample}_hc.vcf
  32. >>>
  33. runtime {
  34. docker: docker
  35. cluster: cluster_config
  36. systemDisk: "cloud_ssd 40"
  37. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  38. }
  39. output {
  40. File vcf = "${sample}_hc.vcf"
  41. File vcf_idx = "${sample}_hc.vcf.idx"
  42. }
  43. }