Generate the Panel of Normal files for TNseq and TNscope.
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.

51 lignes
1.6KB

  1. task PoN {
  2. String SENTIEON_INSTALL_DIR
  3. String SENTIEON_LICENSE
  4. File ref_dir
  5. String fasta
  6. File cosmic_dir
  7. String cosmic_vcf
  8. File dbsnp_dir
  9. String dbsnp
  10. File regions
  11. File normal_bam
  12. File normal_bam_index
  13. String sample=basename(normal_bam, ".*")
  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. }