您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

86 行
2.4KB

  1. task sentieon_TNseq{
  2. String sample_id
  3. File tumor_bam
  4. File tumor_bam_bai
  5. File? normal_bam
  6. File? normal_bam_bai
  7. String tumor_name
  8. String normal_name
  9. File ref_dir
  10. String ref_fasta
  11. File germline_resource
  12. File germline_resource_tbi
  13. File? regions
  14. Int? interval_padding
  15. # excute env
  16. String docker
  17. String cluster_config
  18. String disk_size
  19. String SENTIEON_LICENSE
  20. command <<<
  21. set -o pipefail
  22. set -exo
  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 [${normal_bam}];then
  31. INPUT="-i ${tumor_bam} -i ${normal_bam}"
  32. SAMPLE="--tumor_sample ${tumor_name} --normal_sample ${normal_name}"
  33. else:
  34. INPUT="-i ${tumor_bam}"
  35. SAMPLE="--tumor_sample ${tumor_name}"
  36. fi
  37. sentieon driver -t $nt -r ${ref_dir}/${ref_fasta} \
  38. $INPUT $INTERVAL \
  39. --algo TNhaplotyper2 $SAMPLE \
  40. --germline_vcf ${germline_resource} \
  41. ${sample_id}.TNseq.raw.vcf \
  42. --algo OrientationBias --tumor_sample ${tumor_name} \
  43. ${sample_id}.orientation \
  44. --algo ContaminationModel $SAMPLE \
  45. --vcf ${germline_resource} \
  46. --tumor_segments ${sample_id}.contamination.segments \
  47. ${sample_id}.contamination
  48. sentieon driver -t $nt \
  49. -r ${ref_dir}/${ref_fasta} \
  50. --algo TNfilter $SAMPLE \
  51. -v ${sample_id}.TNseq.raw.vcf \
  52. --contamination ${sample_id}.contamination \
  53. --tumor_segments ${sample_id}.contamination.segments \
  54. --orientation_priors ${sample_id}.orientation \
  55. ${sample_id}.bwa_TNseq.vcf
  56. >>>
  57. runtime{
  58. docker:docker
  59. cluster:cluster_config
  60. systemDisk:"cloud_ssd 40"
  61. dataDisk:"cloud_ssd " + disk_size + " /cromwell_root/"
  62. }
  63. output{
  64. File raw_vcf = "${sample_id}.TNseq.raw.vcf"
  65. File raw_vcf_index = "${sample_id}.TNseq.raw.vcf.idx"
  66. File vcf = "${sample_id}.bwa_TNseq.vcf"
  67. File vcf_index = "${sample_id}.bwa_TNseq.vcf.idx"
  68. File contamination = "${sample_id}.contamination"
  69. File contamination_segments = "${sample_id}.contamination.segments"
  70. File orientation = "${sample_id}.orientation"
  71. }
  72. }