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

36 行
900B

  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 samstats=base + ".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} > ${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_sort_bam=sorted_bam
  27. File out_sort_bam_index=sorted_bam_index
  28. File out_samstats=samstats
  29. }
  30. }