Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

71 line
2.2KB

  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. File merge_count_hdf5
  10. File pickle_list
  11. String event_types
  12. String spladder_docker
  13. String spladder_cluster
  14. String disk_size
  15. command <<<
  16. set -o pipefail
  17. set -e
  18. mkdir -p ${sample_id}/spladder_out/spladder
  19. ln -s ${bam}/*.bam ./
  20. cat ${samples} | while read a; do ls ./ | grep bam$ | grep $a; done > alignment.txt
  21. ln -s ${bam}/*.bai ./
  22. cat ${samples} | while read a; do ls ./ | grep bai$ | grep $a; done > alignment_bai.txt
  23. cat ${pickle_list}| while read a; do ln -s ${pickle}/$a ${sample_id}/spladder_out/spladder/; done
  24. cat ${samples} | while read a; do ls ${sample_id}/spladder_out/spladder/| grep pickle$| grep $a; done >> pickle.txt
  25. cp -r ${merge_graphs} ${sample_id}/spladder_out/spladder/
  26. cp -r ${merge_count_hdf5} ${sample_id}/spladder_out/spladder/
  27. ln -s ${count_hdf5}/*.hdf5 ${sample_id}/spladder_out/spladder/
  28. cat ${samples} | while read a; do ls ${sample_id}/spladder_out/spladder/| grep hdf5$| grep $a; done >> count_hdf5.txt
  29. nt=$(nproc)
  30. spladder build -o ${sample_id}/spladder_out \
  31. --annotation ${reference_gtf_file} \
  32. --bams alignment.txt \
  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_hdf5.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. }