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.

30 lines
641B

  1. task hisat2 {
  2. File idx
  3. File read_1P
  4. File read_2P
  5. String idx_prefix
  6. String base = sub(basename(read_1P),"\\.\\S+$", "")
  7. String docker
  8. String cluster
  9. String disk_size
  10. command {
  11. nt=$(nproc)
  12. hisat2 -t -p $nt -x ${idx}/${idx_prefix} -1 ${read_1P} -2 ${read_2P} -S ${base}.sam --un-conc-gz ${base}_un.fq.gz
  13. }
  14. runtime {
  15. docker: docker
  16. cluster: cluster
  17. systemDisk: "cloud_ssd 40"
  18. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  19. }
  20. output {
  21. File sam = base + ".sam"
  22. File unmapread_1p = base + "_un.fq.1.gz"
  23. File unmapread_2p = base + "_un.fq.2.gz"
  24. }
  25. }