您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

74 行
3.0KB

  1. task remove_IGVrm_vcf {
  2. File benchmark_region
  3. File LCL5_annotated_vcf
  4. File LCL6_annotated_vcf
  5. File LCL7_annotated_vcf
  6. File LCL8_annotated_vcf
  7. File vcf_info
  8. String docker
  9. String disk_size
  10. String cluster_config
  11. command <<<
  12. /opt/rtg-tools/dist/rtg-tools-3.10.1-4d58ead/rtg vcffilter -i ${LCL5_vcf} --include-bed=${benchmark_region} -o LCL5.high.confidence.calls.vcf.gz
  13. /opt/rtg-tools/dist/rtg-tools-3.10.1-4d58ead/rtg vcffilter -i ${LCL6_vcf} --include-bed=${benchmark_region} -o LCL6.high.confidence.calls.vcf.gz
  14. /opt/rtg-tools/dist/rtg-tools-3.10.1-4d58ead/rtg vcffilter -i ${LCL7_vcf} --include-bed=${benchmark_region} -o LCL7.high.confidence.calls.vcf.gz
  15. /opt/rtg-tools/dist/rtg-tools-3.10.1-4d58ead/rtg vcffilter -i ${LCL8_vcf} --include-bed=${benchmark_region} -o LCL8.high.confidence.calls.vcf.gz
  16. zcat LCL5.high.confidence.calls.vcf.gz | grep '#' > LCL5.header
  17. zcat LCL6.high.confidence.calls.vcf.gz | grep '#' > LCL6.header
  18. zcat LCL7.high.confidence.calls.vcf.gz | grep '#' > LCL7.header
  19. zcat LCL8.high.confidence.calls.vcf.gz | grep '#' > LCL8.header
  20. gunzip LCL5.high.confidence.calls.vcf.gz
  21. gunzip LCL6.high.confidence.calls.vcf.gz
  22. gunzip LCL7.high.confidence.calls.vcf.gz
  23. gunzip LCL8.high.confidence.calls.vcf.gz
  24. python /opt/annotate_vcf.py -info ${vcf_info} -vcf LCL5.high.confidence.calls.vcf -prefix LCL5
  25. python /opt/annotate_vcf.py -info ${vcf_info} -vcf LCL6.high.confidence.calls.vcf -prefix LCL6
  26. python /opt/annotate_vcf.py -info ${vcf_info} -vcf LCL7.high.confidence.calls.vcf -prefix LCL7
  27. python /opt/annotate_vcf.py -info ${vcf_info} -vcf LCL8.high.confidence.calls.vcf -prefix LCL8
  28. cat LCL5.annotated.txt | awk '{print $1"\t"$2"\t.\t"$4"\t"$5"\t.\t.\tVOTE="$13"\tGT:ALT:DP\t"$10":"$18":"$17}' | cat LCL5.header - > LCL5.high.confidence.calls.annotated.vcf
  29. cat LCL6.annotated.txt | awk '{print $1"\t"$2"\t.\t"$4"\t"$5"\t.\t.\tVOTE="$14"\tGT:ALT:DP\t"$10":"$20":"$19}' | cat LCL6.header - > LCL6.high.confidence.calls.annotated.vcf
  30. cat LCL7.annotated.txt | awk '{print $1"\t"$2"\t.\t"$4"\t"$5"\t.\t.\tVOTE="$15"\tGT:ALT:DP\t"$10":"$22":"$21}' | cat LCL7.header - > LCL7.high.confidence.calls.annotated.vcf
  31. cat LCL8.annotated.txt | awk '{print $1"\t"$2"\t.\t"$4"\t"$5"\t.\t.\tVOTE="$16"\tGT:ALT:DP\t"$10":"$24":"$23}' | cat LCL8.header - > LCL8.high.confidence.calls.annotated.vcf
  32. >>>
  33. runtime {
  34. docker:docker
  35. cluster:cluster_config
  36. systemDisk: "cloud_ssd 40"
  37. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  38. }
  39. output {
  40. File LCL5_filtered_vcf = "LCL5.high.confidence.calls.vcf"
  41. File LCL6_filtered_vcf = "LCL6.high.confidence.calls.vcf"
  42. File LCL7_filtered_vcf = "LCL7.high.confidence.calls.vcf"
  43. File LCL8_filtered_vcf = "LCL8.high.confidence.calls.vcf"
  44. File LCL5_annotated_vcf = "LCL5.high.confidence.calls.annotated.vcf"
  45. File LCL6_annotated_vcf = "LCL6.high.confidence.calls.annotated.vcf"
  46. File LCL7_annotated_vcf = "LCL7.high.confidence.calls.annotated.vcf"
  47. File LCL8_annotated_vcf = "LCL8.high.confidence.calls.annotated.vcf"
  48. }
  49. }