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.

62 lines
1.3KB

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