Germline & Somatic short variant discovery (SNVs + Indels) for WGS & WES.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

60 lines
1.9KB

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