Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

mendelian.wdl 1.6KB

5 år sedan
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. task mendelian {
  2. File consensus_vcf
  3. File ref_dir
  4. String fasta
  5. String chromo
  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. # prepare ped file, D5
  13. echo "${chromo} LCL8_consensus_calls 0 0 2 -9
  14. ${chromo} LCL7_consensus_calls 0 0 1 -9
  15. ${chromo} LCL5_consensus_calls LCL7_consensus_calls LCL8_consensus_calls 2 -9" > ${chromo}.D5.ped
  16. mkdir VBT_D5
  17. /opt/VBT-TrioAnalysis/vbt mendelian -ref ${ref_dir}/${fasta} -mother ${consensus_vcf} -father ${consensus_vcf} -child ${consensus_vcf} -pedigree ${chromo}.D5.ped -outDir VBT_D5 -out-prefix ${chromo}.D5 --output-violation-regions -thread-count $nt
  18. cat VBT_D5/${chromo}.D5_trio.vcf > ${chromo}.D5.vcf
  19. # prepare ped file, D6
  20. echo "${chromo} LCL8_consensus_calls 0 0 2 -9
  21. ${chromo} LCL7_consensus_calls 0 0 1 -9
  22. ${chromo} LCL6_consensus_calls LCL7_consensus_calls LCL8_consensus_calls 2 -9" > ${chromo}.D6.ped
  23. mkdir VBT_D6
  24. /opt/VBT-TrioAnalysis/vbt mendelian -ref ${ref_dir}/${fasta} -mother ${consensus_vcf} -father ${consensus_vcf} -child ${consensus_vcf} -pedigree ${chromo}.D5.ped -outDir VBT_D6 -out-prefix ${chromo}.D6 --output-violation-regions -thread-count $nt
  25. cat VBT_D6/${chromo}.D6_trio.vcf > ${chromo}.D6.vcf
  26. >>>
  27. runtime {
  28. docker:docker
  29. cluster: cluster_config
  30. systemDisk: "cloud_ssd 40"
  31. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  32. }
  33. output {
  34. Array[File] D5_mendelian = glob("VBT_D5/*")
  35. Array[File] D6_mendelian = glob("VBT_D6/*")
  36. File D5_trio_vcf = "${chromo}.D5.vcf"
  37. File D6_trio_vcf = "${chromo}.D6.vcf"
  38. File family_vcf = "${chromo}.vcf"
  39. }
  40. }