您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

33 行
766B

  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
  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
  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. }