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.

65 lines
1.5KB

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