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.

37 line
904B

  1. task bcftools {
  2. File ref_dir
  3. String fasta
  4. File vcf_indels
  5. File vcf_snvs
  6. String sample_id
  7. String docker
  8. String cluster_config
  9. String disk_size
  10. command <<<
  11. set -o pipefail
  12. set -e
  13. nt=$(nproc)
  14. bcftools concat -a ${vcf_indels} ${vcf_snvs} -Oz -o ${sample_id}.strelka.vcf.gz
  15. bcftools norm -m -both ${sample_id}.strelka.vcf.gz -O z -o ${sample_id}.strelka.norm.vcf.gz
  16. bcftools view -O z -f 'PASS' ${sample_id}.strelka.norm.vcf.gz -o ${sample_id}.strelka.PASS.vcf.gz
  17. bcftools index -t ${sample_id}.strelka.PASS.vcf.gz
  18. ls ./
  19. >>>
  20. runtime {
  21. docker: docker
  22. cluster: cluster_config
  23. systemDisk: "cloud_ssd 40"
  24. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  25. }
  26. output {
  27. File concat_vcf = "${sample_id}.strelka.PASS.vcf.gz"
  28. File concat_vcf_index = "${sample_id}.strelka.PASS.vcf.gz.tbi"
  29. }
  30. }