Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

71 line
2.2KB

  1. task spladder_quantification {
  2. String sample_id
  3. File bam
  4. File pickle
  5. File merge_graphs
  6. File count_hdf5
  7. File reference_gtf_file
  8. File samples
  9. String docker
  10. String cluster
  11. String disk_size
  12. command <<<
  13. set -o pipefail
  14. set -e
  15. mkdir -p ${sample_id}/spladder_out/spladder
  16. ln -s ${bam}/*.bam ./
  17. cat ${samples} | while read a; do ls ./ | grep bam$ | grep $a; done > alignment.txt
  18. ln -s ${bam}/*.bai ./
  19. cat ${samples} | while read a; do ls ./ | grep bai$ | grep $a; done > alignment_bai.txt
  20. ln -s ${pickle}/*.pickle ${sample_id}/spladder_out/spladder/
  21. cat ${samples} | while read a; do ls ${sample_id}/spladder_out/spladder/| grep pickle$| grep $a; done >> pickle.txt
  22. cp -r ${merge_graphs} ${sample_id}/spladder_out/spladder/
  23. ln -s ${count_hdf5}/*.hdf5 ${sample_id}/spladder_out/spladder/
  24. cat ${samples} | while read a; do ls ${sample_id}/spladder_out/spladder/| grep hdf5$| grep $a; done >> count_hdf5.txt
  25. nt=$(nproc)
  26. spladder build -o ${sample_id}/spladder_out \
  27. --annotation ${reference_gtf_file} \
  28. --bams alignment.txt \
  29. --confidence 2 \
  30. --merge-strat merge_graphs \
  31. --readlen 150 \
  32. --parallel $nt \
  33. --quantify-graph --qmode collect \
  34. --event-types exon_skip,intron_retention,alt_3prime,alt_5prime,mutex_exons,mult_exon_skip
  35. find . -depth > fileList.txt
  36. >>>
  37. runtime {
  38. docker: docker
  39. cluster: cluster
  40. systemDisk: "cloud_ssd 500"
  41. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  42. }
  43. output {
  44. File fileList = "fileList.txt"
  45. File alignment = "alignment.txt"
  46. File alignment_bai = "alignment_bai.txt"
  47. File pickle_txt = "pickle.txt"
  48. File count_hdf5_txt = "count_hdf5.txt"
  49. Array[File] AS_gff = glob("${sample_id}/spladder_out/*.gff3")
  50. Array[File] AS_gz = glob("${sample_id}/spladder_out/*.gz")
  51. Array[File] spladder_out = glob("${sample_id}/spladder_out/*")
  52. Array[File] spladder = glob("${sample_id}/spladder_out/spladder/*")
  53. }
  54. }