Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

63 lines
1.7KB

  1. task spladder_EC {
  2. String sample_id
  3. File bam
  4. File reference_gtf_file
  5. File spladder
  6. File samples
  7. String event_types
  8. String spladder_docker
  9. String spladder_cluster
  10. String disk_size
  11. command <<<
  12. set -o pipefail
  13. set -e
  14. mkdir -p ${sample_id}/spladder_out/spladder
  15. ln -s ${bam}/*.bam ./
  16. cat ${samples} | while read a; do ls ./ | grep bam$ | grep $a; done > alignment.txt
  17. ln -s ${bam}/*.bai ./
  18. cat ${samples} | while read a; do ls ./ | grep bai$ | grep $a; done > alignment_bai.txt
  19. cp -r ${spladder}/* ${sample_id}/spladder_out/spladder/
  20. ls ${sample_id}/spladder_out/spladder/ > spladder.txt
  21. nt=$(nproc)
  22. spladder build -o ${sample_id}/spladder_out \
  23. --annotation ${reference_gtf_file} \
  24. --bams alignment.txt \
  25. --parallel $nt \
  26. --confidence 2 \
  27. --readlen 150 \
  28. --event-types ${event_types}
  29. find . -depth > fileList.txt
  30. >>>
  31. runtime {
  32. docker: spladder_docker
  33. cluster: spladder_cluster
  34. systemDisk: "cloud_ssd 50"
  35. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  36. timeout: 129600
  37. }
  38. output {
  39. File fileList = "fileList.txt"
  40. File alignment = "alignment.txt"
  41. File alignment_bai = "alignment_bai.txt"
  42. File spladder_txt = "spladder.txt"
  43. Array[File] AS_gff = glob("${sample_id}/spladder_out/*.gff3")
  44. Array[File] AS_gz = glob("${sample_id}/spladder_out/*.gz")
  45. Array[File] spladder_out = glob("${sample_id}/spladder_out/*")
  46. Array[File] spladder_file = glob("${sample_id}/spladder_out/spladder/*")
  47. }
  48. }