Generate the Panel of Normal files for TNseq and TNscope.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

52 lines
1.6KB

  1. task PoN {
  2. String SENTIEON_INSTALL_DIR
  3. String SENTIEON_LICENSE
  4. String sample
  5. File ref_dir
  6. String fasta
  7. File cosmic_dir
  8. String cosmic_vcf
  9. File dbsnp_dir
  10. String dbsnp
  11. File regions
  12. File normal_bam
  13. File normal_bam_index
  14. String docker
  15. String cluster_config
  16. String disk_size
  17. command <<<
  18. set -o pipefail
  19. set -e
  20. export SENTIEON_LICENSE=${SENTIEON_LICENSE}
  21. nt=$(nproc)
  22. mkdir -p /cromwell_root/tmp/cosmic/
  23. cp ${cosmic_dir}/${cosmic_vcf} /cromwell_root/tmp/cosmic/
  24. ${SENTIEON_INSTALL_DIR}/bin/sentieon util vcfindex /cromwell_root/tmp/cosmic/${cosmic_vcf}
  25. # Generating TNhaplotyper PON
  26. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt --interval ${regions} -r ${ref_dir}/${fasta} -i ${normal_bam} --algo TNhaplotyper --detect_pon --cosmic /cromwell_root/tmp/cosmic/${cosmic_vcf} --dbsnp ${dbsnp_dir}/${dbsnp} ${sample}_TNhaplotyper_pon.vcf
  27. # Generating TNhaplotyper2 PON
  28. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt --interval ${regions} -r ${ref_dir}/${fasta} -i ${normal_bam} --algo TNhaplotyper2 --normal_sample ${sample} ${sample}_TNhaplotyper2_pon.vcf
  29. # Generating TNscope PON
  30. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt --interval ${regions} -r ${ref_dir}/${fasta} -i ${normal_bam} --algo TNscope --normal_sample ${sample} ${sample}_TNscope_pon.vcf
  31. >>>
  32. runtime {
  33. docker: docker
  34. cluster: cluster_config
  35. systemDisk: "cloud_ssd 40"
  36. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  37. }
  38. output {
  39. File TNhaplotyper_pon_vcf = "${sample}_TNhaplotyper_pon.vcf"
  40. File TNhaplotyper2_pon_vcf = "${sample}_TNhaplotyper2_pon.vcf"
  41. File TNscope_pon_vcf = "${sample}_TNscope_pon.vcf"
  42. }
  43. }