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 lines
1.1KB

  1. task zipIndex {
  2. File violation_vcf
  3. File consistent_vcf
  4. File child_vcf_gz
  5. File child_vcf_idx
  6. File child_name
  7. String family_name
  8. String docker
  9. String cluster_config
  10. String disk_size
  11. command <<<
  12. rtg bgzip ${violation_vcf} -c > ${family_name}.violation.vcf.gz
  13. rtg index -f vcf ${family_name}.violation.vcf.gz
  14. rtg bgzip ${consistent_vcf} -c > ${family_name}.consistent.vcf
  15. rtg index -f vcf ${family_name}.consistent.vcf.gz
  16. rtg vcffilter -i ${child_vcf_gz} -o ${child_name}.violation.vcf.gz --include-vcf=${family_name}.violation.vcf.gz
  17. rtg vcffilter -i ${child_vcf_gz} -o ${child_name}.consistent.vcf.gz --include-vcf=${family_name}.consistent.vcf.gz
  18. >>>
  19. runtime {
  20. docker:docker
  21. cluster: cluster_config
  22. systemDisk: "cloud_ssd 40"
  23. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  24. }
  25. output {
  26. File violation_vcf_gz = "${child_name}.violation.vcf.gz"
  27. File violation_vcf_idx = "${child_name}.violation.vcf.gz.tbi"
  28. File consistent_vcf_gz = "${child_name}.consistent.vcf"
  29. File consistent_vcf_idx = "${child_name}.consistent.vcf.tbi"
  30. }
  31. }