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.

samtools.wdl 936B

5 년 전
5 년 전
5 년 전
1234567891011121314151617181920212223242526272829303132333435
  1. task samtools {
  2. File sam
  3. String base = basename(sam, ".sam")
  4. String bam = base + ".bam"
  5. String sorted_bam = base + ".sorted.bam"
  6. String sorted_bam_index = base + ".sorted.bam.bai"
  7. String viral_samstats = base + ".viral.samstats"
  8. String docker
  9. String cluster
  10. String disk_size
  11. command <<<
  12. set -o pipefail
  13. set -e
  14. /opt/conda/bin/samtools view -bS ${sam} > ${bam}
  15. /opt/conda/bin/samtools sort -m 1000000000 ${bam} -o ${sorted_bam}
  16. /opt/conda/bin/samtools index ${sorted_bam}
  17. /opt/conda/bin/samtools stats ${sorted_bam} > ${viral_samstats}
  18. >>>
  19. runtime {
  20. docker: docker
  21. cluster: cluster
  22. systemDisk: "cloud_ssd 40"
  23. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  24. }
  25. output {
  26. File out_bam = sorted_bam
  27. File out_bam_index = sorted_bam_index
  28. File out_viral_samstats = viral_samstats
  29. }
  30. }