Calculate the bed coverage of multiple BAM files before and after dedup
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

34 lines
739B

  1. task bedtools {
  2. Array[File] bam
  3. Array[File] bai
  4. File bed_file
  5. String docker
  6. String cluster_config
  7. String disk_size
  8. Boolean include_dup
  9. command <<<
  10. set -e -o pipefail
  11. mkdir -p /cromwell_root/tmp/bedtools
  12. cp ${sep=' ' bai} /cromwell_root/tmp/bedtools
  13. cd /cromwell_root/tmp/bedtools
  14. if ${include_dup}; then
  15. bedtools multicov -D -bams ${sep=' ' bam} -bed ${bed_file} > /bedtools/revread_count.txt
  16. else
  17. bedtools multicov -bams ${sep=' ' bam} -bed ${bed_file} > /bedtools/revread_count.txt
  18. fi
  19. >>>
  20. runtime {
  21. docker:docker
  22. cluster:cluster_config
  23. systemDisk:"cloud_ssd 40"
  24. dataDisk:"cloud_ssd " + disk_size + " /cromwell_root/"
  25. }
  26. output {
  27. File read_count = "/bedtools/revread_count.txt"
  28. }
  29. }