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.

37 lines
904B

  1. task votes {
  2. File merged_vcf
  3. File vcf_dup
  4. String sample
  5. String prefix
  6. String docker
  7. String cluster_config
  8. String disk_size
  9. command <<<
  10. python /opt/high_confidence_call_vote.py -vcf ${merged_vcf} -dup ${vcf_dup} -sample ${sample} -prefix ${prefix}
  11. cat ${prefix}_annotated.vcf | grep -v '##' > ${prefix}.txt
  12. cat ${prefix}.txt | grep '#CHROM' > header
  13. for i in chr1 chr2 chr3 chr4 chr5 chr6 chr7 chr8 chr9 chr10 chr11 chr12 chr13 chr14 chr15 chr16 chr17 chr18 chr19 chr20 chr21 chr22 chrX
  14. do
  15. cat ${prefix}.txt | grep -w $i | cat header - > ${sample}.$i.mendelian.txt
  16. done
  17. >>>
  18. runtime {
  19. docker:docker
  20. cluster: cluster_config
  21. systemDisk: "cloud_ssd 40"
  22. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  23. }
  24. output {
  25. File annotated_vcf = "${prefix}_annotated.vcf"
  26. File annotated_txt = "${prefix}.txt"
  27. Array[File] chromo_votes = glob("*.mendelian.txt")
  28. }
  29. }