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.

55 lines
1.3KB

  1. task spladder_quantification {
  2. String sample_id
  3. File bam
  4. File bai
  5. File pickle
  6. File merge_graphs
  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 ${pickle}/*.pickle ${sample_id}/spladder_out/spladder/
  17. cat ${samples} | while read a; do ls ${sample_id}/spladder_out/spladder/ | grep $a; done >> pickle.txt
  18. ln -s ${merge_graphs} ${sample_id}/spladder_out/spladder/
  19. nt=$(nproc)
  20. spladder build -o ${sample_id}/spladder_out \
  21. --annotation ${reference_gtf_file} \
  22. --bams ${bam} \
  23. --confidence 2 \
  24. --merge-strat merge_graphs \
  25. --readlen 150 \
  26. --parallel $nt \
  27. --quantify-graph --qmode single\
  28. --no-extract-ase
  29. find . -depth > fileList.txt
  30. >>>
  31. runtime {
  32. docker: docker
  33. cluster: cluster
  34. systemDisk: "cloud_ssd 40"
  35. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  36. }
  37. output {
  38. File fileList = "fileList.txt"
  39. File pickle_txt = "pickle.txt"
  40. File count_hdf5 = "${sample_id}/spladder_out/spladder/*.count.hdf5"
  41. }
  42. }