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.

47 lines
1.6KB

  1. task mendelian {
  2. File family_vcf
  3. File ref_dir
  4. String family_name = basename(family_vcf,".family.vcf")
  5. String fasta
  6. String docker
  7. String cluster_config
  8. String disk_size
  9. command <<<
  10. export LD_LIBRARY_PATH=/opt/htslib-1.9
  11. nt=$(nproc)
  12. echo -e "${family_name}\tLCL8\t0\t0\t2\t-9\n${family_name}\tLCL7\t0\t0\t1\t-9\n${family_name}\tLCL5\tLCL7\tLCL8\t2\t-9" > ${family_name}.D5.ped
  13. mkdir VBT_D5
  14. /opt/VBT-TrioAnalysis/vbt mendelian -ref ${ref_dir}/${fasta} -mother ${family_vcf} -father ${family_vcf} -child ${family_vcf} -pedigree ${family_name}.D5.ped -outDir VBT_D5 -out-prefix ${family_name}.D5 --output-violation-regions -thread-count $nt
  15. cat VBT_D5/${family_name}.D5_trio.vcf > ${family_name}.D5.vcf
  16. echo -e "${family_name}\tLCL8\t0\t0\t2\t-9\n${family_name}\tLCL7\t0\t0\t1\t-9\n${family_name}\tLCL6\tLCL7\tLCL8\t2\t-9" > ${family_name}.D6.ped
  17. mkdir VBT_D6
  18. /opt/VBT-TrioAnalysis/vbt mendelian -ref ${ref_dir}/${fasta} -mother ${family_vcf} -father ${family_vcf} -child ${family_vcf} -pedigree ${family_name}.D6.ped -outDir VBT_D6 -out-prefix ${family_name}.D6 --output-violation-regions -thread-count $nt
  19. cat VBT_D6/${family_name}.D6_trio.vcf > ${family_name}.D6.vcf
  20. >>>
  21. runtime {
  22. docker:docker
  23. cluster: cluster_config
  24. systemDisk: "cloud_ssd 40"
  25. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  26. }
  27. output {
  28. File D5_ped = "${family_name}.D5.ped"
  29. File D6_ped = "${family_name}.D6.ped"
  30. Array[File] D5_mendelian = glob("VBT_D5/*")
  31. Array[File] D6_mendelian = glob("VBT_D6/*")
  32. File D5_trio_vcf = "${family_name}.D5.vcf"
  33. File D6_trio_vcf = "${family_name}.D6.vcf"
  34. }
  35. }