Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

TNseq.wdl 1.9KB

5 lat temu
5 lat temu
5 lat temu
5 lat temu
5 lat temu
4 lat temu
5 lat temu
5 lat temu
4 lat temu
5 lat temu
5 lat temu
5 lat temu
5 lat temu
5 lat temu
5 lat temu
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 TN
  20. Boolean set_pon
  21. String? cosmic_vcf
  22. File? cosmic_dir
  23. File? pon_vcf
  24. String pon_command = if set_pon then "--pon /cromwell_root/tmp/PON/$(basename ${pon_vcf}) --cosmic /cromwell_root/tmp/PON/${cosmic_vcf}" else ""
  25. command <<<
  26. set -o pipefail
  27. set -e
  28. export SENTIEON_LICENSE=${SENTIEON_LICENSE}
  29. nt=$(nproc)
  30. if ${set_pon}; then
  31. mkdir -p /cromwell_root/tmp/PON/
  32. cp ${cosmic_dir}/${cosmic_vcf} /cromwell_root/tmp/PON/
  33. cp ${pon_vcf} /cromwell_root/tmp/PON/
  34. ${SENTIEON_INSTALL_DIR}/bin/sentieon util vcfindex /cromwell_root/tmp/PON/${cosmic_vcf}
  35. ${SENTIEON_INSTALL_DIR}/bin/sentieon util vcfindex /cromwell_root/tmp/PON/$(basename ${pon_vcf})
  36. fi
  37. if ${TN}; then
  38. ${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
  39. else
  40. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt --interval ${regions} -r ${ref_dir}/${fasta} -i ${tumor_recaled_bam} --algo TNhaplotyper --tumor_sample ${tumor_name} --dbsnp ${dbsnp_dir}/${dbsnp} ${pon_command} ${sample}.TNseq.TN.vcf
  41. fi
  42. >>>
  43. runtime {
  44. docker: docker
  45. cluster: cluster_config
  46. systemDisk: "cloud_ssd 40"
  47. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  48. }
  49. output {
  50. File TNseq_vcf= "${sample}.TNseq.TN.vcf"
  51. File TNseq_vcf_index = "${sample}.TNseq.TN.vcf.idx"
  52. }
  53. }