Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

80 lignes
2.2KB

  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. # excute env
  14. String docker
  15. String cluster_config
  16. String disk_size
  17. String SENTIEON_LICENSE
  18. command <<<
  19. set -o pipefail
  20. set -exo
  21. export SENTIEON_LICENSE=${SENTIEON_LICENSE}
  22. nt=$(nproc)
  23. fi
  24. if [${normal_bam}];then
  25. INPUT="-i ${tumor_bam} -i ${normal_bam}"
  26. SAMPLE="--tumor_sample ${tumor_name} --normal_sample ${normal_name}"
  27. else
  28. INPUT="-i ${tumor_bam}"
  29. SAMPLE="--tumor_sample ${tumor_name}"
  30. fi
  31. sentieon driver -t $nt -r ${ref_dir}/${ref_fasta} \
  32. $INPUT \
  33. --algo TNhaplotyper2 $SAMPLE \
  34. --germline_vcf ${germline_resource} \
  35. ${sample_id}.TNseq.raw.vcf \
  36. --algo OrientationBias --tumor_sample ${tumor_name} \
  37. ${sample_id}.orientation \
  38. --algo ContaminationModel $SAMPLE \
  39. --vcf ${germline_resource} \
  40. --tumor_segments ${sample_id}.contamination.segments \
  41. ${sample_id}.contamination
  42. sentieon driver -t $nt \
  43. -r ${ref_dir}/${ref_fasta} \
  44. --algo TNfilter $SAMPLE \
  45. -v ${sample_id}.TNseq.raw.vcf \
  46. --contamination ${sample_id}.contamination \
  47. --tumor_segments ${sample_id}.contamination.segments \
  48. --orientation_priors ${sample_id}.orientation \
  49. ${sample_id}.bwa_TNseq.vcf
  50. >>>
  51. runtime{
  52. docker:docker
  53. cluster:cluster_config
  54. systemDisk:"cloud_ssd 40"
  55. dataDisk:"cloud_ssd " + disk_size + " /cromwell_root/"
  56. }
  57. output{
  58. File raw_vcf = "${sample_id}.TNseq.raw.vcf"
  59. File raw_vcf_index = "${sample_id}.TNseq.raw.vcf.idx"
  60. File vcf = "${sample_id}.bwa_TNseq.vcf"
  61. File vcf_index = "${sample_id}.bwa_TNseq.vcf.idx"
  62. File contamination = "${sample_id}.contamination"
  63. File contamination_segments = "${sample_id}.contamination.segments"
  64. File orientation = "${sample_id}.orientation"
  65. }
  66. }