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

58 lines
1.5KB

  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. --no-extract-ase
  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. }
  37. output {
  38. File fileList = "fileList.txt"
  39. File alignment = "alignment.txt"
  40. File alignment_bai = "alignment_bai.txt"
  41. File pickle_txt = "pickle.txt"
  42. File AS_merge_pickle = glob("${sample_id}/spladder_out/spladder/genes_graph_conf2.merge_graphs.pickle")
  43. }
  44. }