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.

TNseqold.wdl 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. task TNseqold {
  2. String sample
  3. String SENTIEON_INSTALL_DIR
  4. String SENTIEON_LICENSE
  5. File tumor_recaled_bam
  6. File tumor_recaled_bam_index
  7. File tumor_recal_table
  8. File normal_recaled_bam
  9. File normal_recaled_bam_index
  10. File normal_recal_table
  11. String tumor_name
  12. String normal_name
  13. File ref_dir
  14. String fasta
  15. File? regions
  16. Int? interval_padding
  17. File? pon_vcf
  18. File dbsnp_dir
  19. String dbsnp
  20. String docker
  21. String cluster_config
  22. String disk_size
  23. command <<<
  24. set -o pipefail
  25. set -e
  26. export SENTIEON_LICENSE=${SENTIEON_LICENSE}
  27. nt=$(nproc)
  28. if [ ${regions} ]; then
  29. INTERVAL="--interval ${regions} --interval_padding ${interval_padding}"
  30. else
  31. INTERVAL=""
  32. fi
  33. if [ ${pon_vcf} ]; then
  34. PON="--pon ${pon_vcf}"
  35. ${SENTIEON_INSTALL_DIR}/bin/sentieon util vcfindex ${pon_vcf}
  36. else
  37. PON=""
  38. fi
  39. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt \
  40. --INTERVAL -r ${ref_dir}/${fasta} \
  41. -i ${tumor_recaled_bam} -q ${tumor_recal_table} \
  42. -i ${normal_recaled_bam} -q ${normal_recal_table} \
  43. --algo TNhaplotyper \
  44. --tumor_sample ${tumor_name} --normal_sample ${normal_name} \
  45. --dbsnp ${dbsnp_dir}/${dbsnp} $PON \
  46. ${sample}.TNseq.old.TN.vcf
  47. >>>
  48. runtime {
  49. docker: docker
  50. cluster: cluster_config
  51. systemDisk: "cloud_ssd 40"
  52. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  53. }
  54. output {
  55. File TNseq_vcf= "${sample}.TNseq.old.TN.vcf"
  56. File TNseq_vcf_index = "${sample}.TNseq.old.TN.vcf.idx"
  57. }
  58. }