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.

two_family_merge.wdl 990B

5 vuotta sitten
123456789101112131415161718192021222324252627282930313233343536
  1. task two_family_merge {
  2. File LCL5_trio_vcf
  3. File LCL6_trio_vcf
  4. File genotype_file
  5. String family_chromo_name
  6. String docker
  7. String cluster_config
  8. String disk_size
  9. command <<<
  10. cat ${LCL5_trio_vcf} | grep -v '##' > ${family_chromo_name}.LCL5.txt
  11. cat ${LCL6_trio_vcf} | grep -v '##' > ${family_chromo_name}.LCL6.txt
  12. cat ${genotype_file} | 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. ' | cut -f1,2,4,5,10- > ${family_chromo_name}.genotype.txt
  21. python /opt/merge_two_family_with_genotype.py -LCL5 ${family_chromo_name}.LCL5.txt -LCL6 ${family_chromo_name}.LCL6.txt -genotype ${family_chromo_name}.genotype.txt -family ${family_chromo_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 family_mendelian_info = "${family_chromo_name}.txt"
  31. }
  32. }