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.

53 line
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 recaled_bam
  8. File recaled_bam_index
  9. String dbsnp
  10. String sample
  11. String docker
  12. String cluster_config
  13. String disk_size
  14. File? regions
  15. Int? interval_padding
  16. command <<<
  17. set -o pipefail
  18. set -e
  19. export SENTIEON_LICENSE=${SENTIEON_LICENSE}
  20. nt=$(nproc)
  21. if [ ${regions} ]; then
  22. INTERVAL="--interval ${regions} --interval_padding ${interval_padding}"
  23. else
  24. INTERVAL=""
  25. fi
  26. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt \
  27. --interval ${regions} -r ${ref_dir}/${fasta} \
  28. -i ${recaled_bam} \
  29. --algo Haplotyper -d ${dbsnp_dir}/${dbsnp} \
  30. ${sample}.Haplotyper.vcf
  31. >>>
  32. runtime {
  33. docker: docker
  34. cluster: cluster_config
  35. systemDisk: "cloud_ssd 40"
  36. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  37. }
  38. output {
  39. File vcf = "${sample}.Haplotyper.vcf"
  40. File vcf_idx = "${sample}.Haplotyper.vcf.idx"
  41. }
  42. }