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.

73 lines
2.3KB

  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 cp -r ${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. cp -r ${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. --confidence 2 \
  35. --readlen 150 \
  36. --event-types ${event_types}
  37. find . -depth > fileList.txt
  38. >>>
  39. runtime {
  40. docker: spladder_docker
  41. cluster: spladder_cluster
  42. systemDisk: "cloud_ssd 500"
  43. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  44. timeout: 864000
  45. }
  46. output {
  47. File fileList = "fileList.txt"
  48. File alignment = "alignment.txt"
  49. File alignment_bai = "alignment_bai.txt"
  50. File pickle_txt = "pickle.txt"
  51. File count_hdf5_txt = "count_hdf5.txt"
  52. Array[File] AS_gff = glob("${sample_id}/spladder_out/*.gff3")
  53. Array[File] AS_gz = glob("${sample_id}/spladder_out/*.gz")
  54. Array[File] spladder_out = glob("${sample_id}/spladder_out/*")
  55. Array[File] spladder = glob("${sample_id}/spladder_out/spladder/*")
  56. }
  57. }