Germline & Somatic short variant discovery (SNVs + Indels) for WGS & WES.
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.

39 satır
771B

  1. task bcftools {
  2. Array[File] pon_vcf
  3. String docker
  4. String cluster_config
  5. String disk_size
  6. Boolean set_pon
  7. command <<<
  8. set -o pipefail
  9. set -e
  10. if ${set_pon} ; then
  11. mkdir -p /cromwell_root/tmp/bcftools/
  12. for i in ${sep=" " pon_vcf}
  13. do
  14. bcftools view $i -Oz -o /cromwell_root/tmp/bcftools/$i.gz
  15. done
  16. bcftools merge -m any -f PASS,. --force-samples /cromwell_root/tmp/bcftools/*.vcf.gz |\
  17. bcftools plugin fill-AN-AC |\
  18. bcftools filter -i 'SUM(AC)>1' > panel_of_normal.vcf
  19. else
  20. touch panel_of_normal.vcf
  21. fi
  22. >>>
  23. runtime {
  24. docker: docker
  25. cluster: cluster_config
  26. systemDisk: "cloud_ssd 40"
  27. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  28. }
  29. output {
  30. File panel_of_normal_vcf = "panel_of_normal.vcf"
  31. }
  32. }