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.

34 lines
942B

  1. task merge_chromo {
  2. Array[File] mendelian_vote_snv
  3. Array[File] mendelian_vote_indel
  4. String sample_name
  5. String docker
  6. String cluster_config
  7. String disk_size
  8. command <<<
  9. cat ${sep=" " mendelian_vote_snv} > ${sample_name}.snv.txt
  10. cat ${sep=" " mendelian_vote_indel} > ${sample_name}.indel.txt
  11. cat ${sample_name}.snv.txt | cut -f3,4 | sort | uniq -c > ${sample_name}.snv.summary.txt
  12. cat ${sample_name}.indel.txt | cut -f3,4 | sort | uniq -c > ${sample_name}.indel.summary.txt
  13. >>>
  14. runtime {
  15. docker:docker
  16. cluster: cluster_config
  17. systemDisk: "cloud_ssd 40"
  18. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  19. }
  20. output {
  21. File mendelian_vote_summary_snv = "${sample_name}.snv.summary.txt"
  22. File mendelian_vote_summary_indel = "${sample_name}.indel.summary.txt"
  23. File mendelian_vote_summary_snv_detail = "${sample_name}.snv.txt"
  24. File mendelian_vote_summary_indel_detail = "${sample_name}.indel.txt"
  25. }
  26. }