Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

71 lines
2.1KB

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