Calculate the bed coverage of multiple BAM files before and after dedup
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

5 anos atrás
5 anos atrás
5 anos atrás
5 anos atrás
5 anos atrás
5 anos atrás
5 anos atrás
12345678910111213141516171819202122232425262728293031323334
  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. }