Integrate the graphs across samples, to form one merged splicing graph (per gene).
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.

73 line
2.0KB

  1. task spladder {
  2. String sample_id
  3. Array[File] bam
  4. Array[File] bai
  5. Array[File] pickle
  6. File reference_gtf_file
  7. String docker
  8. String cluster
  9. String disk_size
  10. command <<<
  11. set -o pipefail
  12. set -e
  13. mkdir -p ${sample_id}/spladder_out/spladder
  14. for i in ${sep=" " bam}
  15. do
  16. echo $i >> bam.txt
  17. done
  18. sed ':a ; N;s/\n/,/ ; t a ; ' bam.txt > alignment.txt
  19. for i in ${sep=" " bai}
  20. do
  21. echo $i >> bai.txt
  22. done
  23. sed ':a ; N;s/\n/,/ ; t a ; ' bai.txt > alignment_bai.txt
  24. for i in ${sep=" " pickle}
  25. do
  26. ln -s $i ${sample_id}/spladder_out/spladder/
  27. ls ${sample_id}/spladder_out/spladder/ >> pickle.txt
  28. done
  29. spladder build -o ${sample_id}/spladder_out \
  30. --annotation ${reference_gtf_file} \
  31. --bams alignment.txt \
  32. --confidence 2 \
  33. --merge-strat merge_graphs \
  34. --validate-sg \
  35. --readlen 150 \
  36. --parallel 4 \
  37. --event-types exon_skip,intron_retention,alt_3prime,alt_5prime,mutex_exons,mult_exon_skip
  38. find . -depth > fileList.txt
  39. >>>
  40. runtime {
  41. docker: docker
  42. cluster: cluster
  43. systemDisk: "cloud_ssd 40"
  44. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  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. Array[File] AS_gff = glob("${sample_id}/spladder_out/*.gff3")
  52. Array[File] AS_pickle = glob("${sample_id}/spladder_out/*.pickle")
  53. Array[File] AS_gz = glob("${sample_id}/spladder_out/*.gz")
  54. Array[File] AS_hdf5 = glob("${sample_id}/spladder_out/*.hdf5")
  55. Array[File] spladder = glob("${sample_id}/spladder_out/spladder/*")
  56. Array[File] tmp = glob("${sample_id}/spladder_out/tmp/*")
  57. }
  58. }