Germline & Somatic short variant discovery (SNVs + Indels) for WGS & WES.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 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 dbsnp_dir
  16. String dbsnp
  17. File? regions
  18. String docker
  19. String cluster_config
  20. String disk_size
  21. Boolean set_pon
  22. File? pon_vcf
  23. String pon_command = if set_pon then "--pon /cromwell_root/tmp/PON/$(basename ${pon_vcf})" else ""
  24. command <<<
  25. set -o pipefail
  26. set -e
  27. export SENTIEON_LICENSE=${SENTIEON_LICENSE}
  28. nt=$(nproc)
  29. if ${set_pon}; then
  30. mkdir -p /cromwell_root/tmp/PON/
  31. cp ${pon_vcf} /cromwell_root/tmp/PON/
  32. ${SENTIEON_INSTALL_DIR}/bin/sentieon util vcfindex /cromwell_root/tmp/PON/$(basename ${pon_vcf})
  33. fi
  34. if [ ${regions} != "" ]; then
  35. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt \
  36. --interval ${regions} -r ${ref_dir}/${fasta} \
  37. -i ${tumor_recaled_bam} -q ${tumor_recal_table} \
  38. -i ${normal_recaled_bam} -q ${normal_recal_table} \
  39. --algo TNscope \
  40. --tumor_sample ${tumor_name} --normal_sample ${normal_name} \
  41. --dbsnp ${dbsnp_dir}/${dbsnp} \
  42. ${pon_command} \
  43. ${sample}.TNscope.TN.vcf
  44. else
  45. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt \
  46. -r ${ref_dir}/${fasta} \
  47. -i ${tumor_recaled_bam} -q ${tumor_recal_table} \
  48. -i ${normal_recaled_bam} -q ${normal_recal_table} \
  49. --algo TNscope \
  50. --tumor_sample ${tumor_name} --normal_sample ${normal_name} \
  51. --dbsnp ${dbsnp_dir}/${dbsnp} \
  52. ${pon_command} \
  53. ${sample}.TNscope.TN.vcf
  54. fi
  55. >>>
  56. runtime {
  57. docker: docker
  58. cluster: cluster_config
  59. systemDisk: "cloud_ssd 40"
  60. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  61. }
  62. output {
  63. File TNscope_vcf= "${sample}.TNscope.TN.vcf"
  64. File TNscope_vcf_index = "${sample}.TNscope.TN.vcf.idx"
  65. }
  66. }