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 780B

5 jaren geleden
5 jaren geleden
5 jaren geleden
5 jaren geleden
5 jaren geleden
5 jaren geleden
5 jaren geleden
5 jaren geleden
1234567891011121314151617181920212223242526272829303132
  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 docker
  8. String cluster_config
  9. String disk_size
  10. command <<<
  11. set -o pipefail
  12. set -e
  13. /opt/conda/bin/samtools view -bS ${sam} > ${bam}
  14. /opt/conda/bin/samtools sort -m 1000000000 ${bam} -o ${sorted_bam}
  15. /opt/conda/bin/samtools index ${sorted_bam}
  16. >>>
  17. runtime {
  18. docker: docker
  19. cluster: cluster_config
  20. systemDisk: "cloud_ssd 40"
  21. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  22. }
  23. output {
  24. File out_bam = sorted_bam
  25. File out_bam_index = sorted_bam_index
  26. }
  27. }