Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

68 lines
1.5KB

  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. String docker
  19. String cluster_config
  20. String disk_size
  21. String pon_command = if set_pon then "--pon /cromwell_root/tmp/PON/$(basename ${pon_vcf}) --cosmic /cromwell_root/tmp/PON/${cosmic_vcf}" else ""
  22. command <<<
  23. set -o pipefail
  24. set -e
  25. export SENTIEON_LICENSE=${SENTIEON_LICENSE}
  26. nt=$(nproc)
  27. if [ ${regions} ]; then
  28. INTERVAL="--interval ${regions} --interval_padding ${interval_padding}"
  29. else
  30. INTERVAL=""
  31. fi
  32. if [ ${pon_vcf} ]; then
  33. PON="--pon ${pon_vcf}"
  34. ${SENTIEON_INSTALL_DIR}/bin/sentieon util vcfindex ${pon_vcf}
  35. else
  36. PON=""
  37. fi
  38. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt \
  39. --INTERVAL -r ${ref_dir}/${fasta} \
  40. -i ${tumor_recaled_bam} -q ${tumor_recal_table} \
  41. -i ${normal_recaled_bam} -q ${normal_recal_table} \
  42. --algo TNhaplotyper \
  43. --tumor_sample ${tumor_name} --normal_sample ${normal_name} \
  44. --dbsnp ${dbsnp_dir}/${dbsnp} $PON \
  45. ${sample}.TNseq.TN.vcf
  46. >>>
  47. runtime {
  48. docker: docker
  49. cluster: cluster_config
  50. systemDisk: "cloud_ssd 40"
  51. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  52. }
  53. output {
  54. File TNseq_vcf= "${sample}.TNseq.old.TN.vcf"
  55. File TNseq_vcf_index = "${sample}.TNseq.old.TN.vcf.idx"
  56. }