bcftools-merge is used to merge VCF files into a singe VCF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 line
1.1KB

  1. task PON {
  2. String SENTIEON_INSTALL_DIR
  3. String SENTIEON_LICENSE
  4. String sample
  5. Boolean PONmode
  6. File ref_dir
  7. String fasta
  8. File cosmic_dir
  9. String cosmic_vcf
  10. File dbsnp_dir
  11. String dbsnp
  12. File normal_recaled_bam
  13. File normal_recaled_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. if [ ${PONmode} ]; then
  23. mkdir -p /cromwell_root/tmp/cosmic/
  24. cp ${cosmic_dir}/${cosmic_vcf} /cromwell_root/tmp/cosmic/
  25. ${SENTIEON_INSTALL_DIR}/bin/sentieon util vcfindex /cromwell_root/tmp/cosmic/${cosmic_vcf}
  26. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt -r ${ref_dir}/${fasta} -i ${normal_recaled_bam} --algo TNhaplotyper --detect_pon --cosmic /cromwell_root/tmp/cosmic/${cosmic_vcf} --dbsnp ${dbsnp_dir}/${dbsnp} ${sample}_pon.vcf
  27. else
  28. touch ${sample}_pon.vcf
  29. fi
  30. >>>
  31. runtime {
  32. docker: docker
  33. cluster: cluster_config
  34. systemDisk: "cloud_ssd 40"
  35. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  36. }
  37. output {
  38. File pon_vcf = "${sample}_pon.vcf"
  39. }
  40. }