Integrate the graphs across samples, to form one merged splicing graph (per gene).
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

59 lignes
1.6KB

  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 50"
  35. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  36. timeout: 129600
  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. File AS_merge_pickle = "${sample_id}/spladder_out/spladder/genes_graph_conf2.merge_graphs.pickle"
  44. }
  45. }