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.

45 lines
906B

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