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.

60 lines
1.8KB

  1. task spladder_merge {
  2. String sample_id
  3. File bam
  4. File pickle
  5. File reference_gtf_file
  6. String docker
  7. String cluster
  8. String disk_size
  9. command <<<
  10. set -o pipefail
  11. set -e
  12. mkdir -p ${sample_id}/spladder_out/spladder
  13. ln -s ${bam}/*.bam ./
  14. ls ./ | grep bam$ > alignment.txt
  15. ln -s ${bam}/*.bai ./
  16. ls ./ | grep bai$ > alignment_bai.txt
  17. ln -s ${pickle}/*.pickle ${sample_id}/spladder_out/spladder/
  18. ls ${sample_id}/spladder_out/spladder/ >> pickle.txt
  19. nt=$(nproc)
  20. spladder build -o ${sample_id}/spladder_out \
  21. --annotation ${reference_gtf_file} \
  22. --bams alignment.txt \
  23. --confidence 2 \
  24. --merge-strat merge_graphs \
  25. --validate-sg \
  26. --readlen 150 \
  27. --parallel $nt \
  28. --event-types exon_skip,intron_retention,alt_3prime,alt_5prime,mutex_exons,mult_exon_skip
  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. 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. Array[File] AS_gff = glob("${sample_id}/spladder_out/*.gff3")
  44. Array[File] AS_pickle = glob("${sample_id}/spladder_out/*.pickle")
  45. Array[File] AS_gz = glob("${sample_id}/spladder_out/*.gz")
  46. Array[File] AS_hdf5 = glob("${sample_id}/spladder_out/*.hdf5")
  47. Array[File] spladder = glob("${sample_id}/spladder_out/spladder/*")
  48. }
  49. }