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.

преди 3 години
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. task spladder_EC {
  2. String sample_id
  3. File bam
  4. File reference_gtf_file
  5. File spladder
  6. String event_types
  7. String spladder_docker
  8. String spladder_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. cp -r ${spladder}/* ${sample_id}/spladder_out/spladder/
  19. ls ${sample_id}/spladder_out/spladder/ > spladder.txt
  20. nt=$(nproc)
  21. spladder build -o ${sample_id}/spladder_out \
  22. --annotation ${reference_gtf_file} \
  23. --bams alignment.txt \
  24. --parallel $nt \
  25. --confidence 2 \
  26. --readlen 150 \
  27. --event-types ${event_types}
  28. find . -depth > fileList.txt
  29. >>>
  30. runtime {
  31. docker: spladder_docker
  32. cluster: spladder_cluster
  33. systemDisk: "cloud_ssd 50"
  34. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  35. timeout: 129600
  36. }
  37. output {
  38. File fileList = "fileList.txt"
  39. File alignment = "alignment.txt"
  40. File alignment_bai = "alignment_bai.txt"
  41. File spladder_txt = "spladder.txt"
  42. Array[File] AS_gff = glob("${sample_id}/spladder_out/*.gff3")
  43. Array[File] AS_gz = glob("${sample_id}/spladder_out/*.gz")
  44. Array[File] spladder_out = glob("${sample_id}/spladder_out/*")
  45. Array[File] spladder = glob("${sample_id}/spladder_out/spladder/*")
  46. }
  47. }