Automated integrated analysis software for genomics data of the cancer patients.
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.

31 lines
644B

  1. task bcftools {
  2. File ref_dir
  3. String fasta
  4. File vcf
  5. String basename = basename(vcf,".vcf")
  6. String docker
  7. String cluster_config
  8. String disk_size
  9. command <<<
  10. set -o pipefail
  11. set -e
  12. nt=$(nproc)
  13. # bcftools norm -m -both ${vcf} | bcftools norm -f ${ref_dir}/${fasta} -Ov -o ${basename}.norm.vcf
  14. # Split multiallelic sites
  15. bcftools norm -m -both ${vcf} -o ${basename}.norm.vcf
  16. >>>
  17. runtime {
  18. docker: docker
  19. cluster: cluster_config
  20. systemDisk: "cloud_ssd 40"
  21. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  22. }
  23. output {
  24. File norm_vcf = "${basename}.norm.vcf"
  25. }
  26. }