Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

96 linhas
2.5KB

  1. task TNseq {
  2. String sample
  3. String SENTIEON_LICENSE
  4. File tumor_bam
  5. File tumor_bam_index
  6. File? normal_bam
  7. File? normal_bam_index
  8. String tumor_name
  9. String normal_name
  10. File ref_dir
  11. String fasta
  12. File germline_resource
  13. File germline_resource_tbi
  14. File? regions
  15. Int? interval_padding
  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} --interval_padding ${interval_padding}"
  26. else
  27. INTERVAL=""
  28. fi
  29. if [ ${normal_bam} ]; then
  30. INPUT="-i ${tumor_bam} -i ${normal_bam}"
  31. SAMPLE="--tumor_sample ${tumor_name} --normal_sample ${normal_name}"
  32. else
  33. INPUT="-i ${tumor_bam}"
  34. SAMPLE="--tumor_sample ${tumor_name}"
  35. fi
  36. # sentieon driver -t $nt -r ${ref_dir}/${fasta} \
  37. # $INPUT $INTERVAL \
  38. # --algo TNhaplotyper2 $SAMPLE \
  39. # --germline_vcf ${germline_resource} \
  40. # ${sample}.TNseq.raw.vcf \
  41. # --algo OrientationBias --tumor_sample ${tumor_name} \
  42. # ${sample}.orientation \
  43. # --algo ContaminationModel $SAMPLE \
  44. # --vcf ${germline_resource} \
  45. # --tumor_segments ${sample}.contamination.segments \
  46. # ${sample}.contamination
  47. # sentieon driver -t $nt \
  48. # -r ${ref_dir}/${fasta} \
  49. # --algo TNfilter $SAMPLE \
  50. # -v ${sample}.TNseq.raw.vcf \
  51. # --contamination ${sample}.contamination \
  52. # --tumor_segments ${sample}.contamination.segments \
  53. # --orientation_priors ${sample}.orientation \
  54. # ${sample}.TNseq.vcf
  55. sentieon driver -t $nt -r ${ref_dir}/${fasta} \
  56. $INPUT $INTERVAL \
  57. --algo TNhaplotyper2 $SAMPLE \
  58. ${sample}.TNseq.raw.vcf
  59. sentieon driver -t $nt \
  60. -r ${ref_dir}/${fasta} \
  61. --algo TNfilter $SAMPLE \
  62. -v ${sample}.TNseq.raw.vcf \
  63. ${sample}.TNseq.vcf
  64. touch ${sample}.contamination
  65. touch ${sample}.contamination.segments
  66. touch ${sample}.orientation
  67. >>>
  68. runtime {
  69. docker: docker
  70. cluster: cluster_config
  71. systemDisk: "cloud_ssd 40"
  72. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  73. }
  74. output {
  75. File raw_vcf = "${sample}.TNseq.raw.vcf"
  76. File raw_vcf_index = "${sample}.TNseq.raw.vcf.idx"
  77. File vcf = "${sample}.TNseq.vcf"
  78. File vcf_index = "${sample}.TNseq.vcf.idx"
  79. File contamination = "${sample}.contamination"
  80. File contamination_segments = "${sample}.contamination.segments"
  81. File orientation = "${sample}.orientation"
  82. }
  83. }