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.

60 lines
1.8KB

  1. task spladder_merge {
  2. String sample_id
  3. File bam
  4. File pickle
  5. File reference_gtf_file
  6. File samples
  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. ln -s ${bam}/*.bam ./
  15. cat ${samples} | while read a; do ls ./ | grep bam$ | grep $a; done > alignment.txt
  16. ln -s ${bam}/*.bai ./
  17. cat ${samples} | while read a; do ls ./ | grep bai$ | grep $a; done > alignment_bai.txt
  18. ln -s ${pickle}/*.pickle ${sample_id}/spladder_out/spladder/
  19. cat ${samples} | while read a; do ls ${sample_id}/spladder_out/spladder/ | grep $a; done >> pickle.txt
  20. nt=$(nproc)
  21. spladder build -o ${sample_id}/spladder_out \
  22. --annotation ${reference_gtf_file} \
  23. --bams alignment.txt \
  24. --confidence 2 \
  25. --merge-strat merge_graphs \
  26. --readlen 150 \
  27. --parallel $nt \
  28. --event-types exon_skip,intron_retention,alt_3prime,alt_5prime,mutex_exons,mult_exon_skip
  29. find . -depth > fileList.txt
  30. >>>
  31. runtime {
  32. docker: docker
  33. cluster: cluster
  34. systemDisk: "cloud_ssd 500"
  35. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  36. timeout: 864000
  37. }
  38. output {
  39. File fileList = "fileList.txt"
  40. File alignment = "alignment.txt"
  41. File alignment_bai = "alignment_bai.txt"
  42. File pickle_txt = "pickle.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 = glob("${sample_id}/spladder_out/spladder/*")
  47. }
  48. }