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.

пре 4 година
1234567891011121314151617181920212223242526272829303132
  1. task vcf2bed {
  2. File vcf
  3. File vote_file
  4. String chromo
  5. String sample_name
  6. String docker
  7. String cluster_config
  8. String disk_size
  9. command <<<
  10. cat ${vcf} | grep -v '#' | grep -v '\./\.' | grep -v '0/0' | cut -f1,2,4,5,10 | sed s'/:/\t/g' | cut -f1-5 > ${sample_name}.${chromo}.all.txt
  11. cat ${vote_file} | awk '{ if (($5 == "./.") ||($5 == "notConsensus")) { print } }' |awk '{ if ($6 != 0) { print } }' > ${chromo}.filtered.txt
  12. cat ${vote_file} | awk '{ if (($5 != "./.") && ($5 != "notConsensus")) { print } }' | grep -v 'CHROM' > ${chromo}.voted.txt
  13. python /opt/split_filtered_voted.py -a ${sample_name}.${chromo}.all.txt -f ${chromo}.filtered.txt -v ${chromo}.voted.txt -p ${sample_name}.${chromo}
  14. >>>
  15. runtime {
  16. docker:docker
  17. cluster: cluster_config
  18. systemDisk: "cloud_ssd 40"
  19. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  20. }
  21. output {
  22. File chromo_filtered_bed = "${sample_name}.${chromo}.filtered.bed"
  23. File chromo_voted_bed = "${sample_name}.${chromo}.voted.bed"
  24. }
  25. }