Automated integrated analysis software for genomics data of the cancer patients.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

73 Zeilen
1.7KB

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