VEP (Variant Effect Predictor) predicts the functional effects of genomic variants. The annotated VCF will be converted into MAF based on vcf2maf.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

3 年前
3 年前
3 年前
3 年前
3 年前
3 年前
3 年前
3 年前
3 年前
3 年前
3 年前
3 年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. task VEP {
  2. File vcf
  3. String sample_id
  4. String basename = basename(vcf,".vcf")
  5. String tumor_id
  6. String normal_id
  7. File ref_dir
  8. String fasta
  9. String vep_path
  10. File cache
  11. String ncbi_build
  12. String species
  13. String vcf2maf_path
  14. String docker
  15. String cluster_config
  16. String disk_size
  17. command <<<
  18. set -o pipefail
  19. set -e
  20. nt=$(nproc)
  21. awk -F'\t' '{if(($1~"^#")||($1!~"^#" && $7=="PASS")){print $0}}' ${vcf} > ${basename}.PASS.vcf
  22. # Extract the BND variants from VCF
  23. # awk -F'\t' '{if(($1~"^#")||($8!~".*SVTYPE=BND.*")){print $0}}' ${sample_id}.PASS.vcf > ${sample_id}.PASS.vcf2maf.vcf
  24. # awk -F'\t' '{if(($1~"^#")||($8~".*SVTYPE=BND.*")){print $0}}' ${sample_id}.PASS.vcf > ${sample_id}.INPUT.VEP.vcf
  25. # vcf2maf
  26. # perl ${vcf2maf_path}/vcf2maf.pl \
  27. # --input-vcf ${sample_id}.PASS.vcf2maf.vcf --output-maf ${basename}.maf \
  28. # --tumor-id ${tumor_id} --normal-id ${normal_id} \
  29. # --ref-fasta ${ref_dir}/${fasta} \
  30. # --vep-path ${vep_path} \
  31. # --vep-data ${cache} \
  32. # --ncbi-build ${ncbi_build} \
  33. # --species ${species} \
  34. # --vep-fork $nt
  35. # vep
  36. perl ${vep_path}/vep \
  37. --input_file ${basename}.PASS.vcf --output_file ${basename}.PASS.vep.vcf \
  38. --fasta ${ref_dir}/${fasta} \
  39. --dir ${cache} \
  40. --assembly ${ncbi_build} \
  41. --species ${species} \
  42. --fork $nt \
  43. --format vcf --vcf \
  44. --no_progress \
  45. --no_stats \
  46. --buffer_size 5000 \
  47. --sift b \
  48. --ccds --uniprot --hgvs --symbol --numbers --domains --gene_phenotype --canonical --protein --biotype --uniprot --tsl --variant_class --shift_hgvs 1 --check_existing --total_length --allele_number --no_escape --xref_refseq --failed 1 --flag_pick_allele --pick_order canonical,tsl,biotype,rank,ccds,length --force_overwrite --offline --pubmed --regulatory
  49. # vcf2maf
  50. perl ${vcf2maf_path}/vcf2maf.pl \
  51. --inhibit-vep \
  52. --input-vcf ${basename}.PASS.vep.vcf --output-maf ${basename}.PASS.maf \
  53. --tumor-id ${tumor_id} --normal-id ${normal_id} \
  54. --ref-fasta ${ref_dir}/${fasta} \
  55. --vep-fork $nt
  56. >>>
  57. runtime {
  58. docker: docker
  59. cluster: cluster_config
  60. systemDisk: "cloud_ssd 40"
  61. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  62. }
  63. output {
  64. File input_vcf = "${basename}.PASS.vcf"
  65. File vep_vcf = "${basename}.PASS.vep.vcf"
  66. File maf = "${basename}.PASS.maf"
  67. }
  68. }