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.

26 line
810B

  1. task depth {
  2. File bam_raw_depth
  3. File bam_deduped_depth
  4. String sample_id
  5. File regions
  6. String docker
  7. String cluster_config
  8. String disk_size
  9. command <<<
  10. sort -k1,1V -k2,2n ${bam_raw_depth} | awk '{printf "%s:%i\t%i\n" , $1,$2,$3}' > ${sample_id}.raw.sorted.depth
  11. sort -k1,1V -k2,2n ${bam_deduped_depth} | awk '{printf "%s:%i\t%i\n" , $1,$2,$3}' > ${sample_id}.deduped.sorted.depth
  12. join -e NULL -a1 -j 1 -o 1.1,1.2,2.2 ${sample_id}.raw.sorted.depth ${sample_id}.deduped.sorted.depth > ${sample_id}.depth
  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 bam_depth = "${sample_id}.depth"
  22. }
  23. }