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.

61 lines
1.9KB

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