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.

35 lines
1014B

  1. task merge_mendelian {
  2. File D5_trio_vcf
  3. File D6_trio_vcf
  4. File family_vcf
  5. String family_name = basename(family_vcf,".family.vcf")
  6. String docker
  7. String cluster_config
  8. String disk_size
  9. command <<<
  10. cat ${D5_trio_vcf} | grep -v '##' > ${family_name}.D5.txt
  11. cat ${D6_trio_vcf} | grep -v '##' > ${family_name}.D6.txt
  12. cat ${family_vcf} | grep -v '##' | awk '
  13. BEGIN { OFS = "\t" }
  14. NF > 2 && FNR > 1 {
  15. for ( i=9; i<=NF; i++ ) {
  16. split($i,a,":") ;$i = a[1];
  17. }
  18. }
  19. { print }
  20. ' > ${family_name}.consensus.txt
  21. python /opt/merge_two_family_with_genotype.py -LCL5 ${family_name}.D5.txt -LCL6 ${family_name}.D6.txt -genotype ${family_name}.consensus.txt -family ${family_name}
  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 project_mendelian = "${family_name}.txt"
  31. File project_mendelian_summary = "${family_name}.summary.txt"
  32. }
  33. }