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.5KB

  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 spladder_docker
  10. String spladder_cluster
  11. String disk_size
  12. command <<<
  13. set -o pipefail
  14. set -e
  15. mkdir -p ${sample_id}/spladder_out/spladder
  16. cat ${samples} | while read a;do cp -r ${pickle}/*$a*.pickle ${sample_id}/spladder_out/spladder/; done
  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. mount -o remount rw /
  20. nt=$(nproc)
  21. spladder build -o ${sample_id}/spladder_out \
  22. --annotation ${reference_gtf_file} \
  23. --bams ${bam} \
  24. --confidence 2 \
  25. --merge-strat merge_graphs \
  26. --readlen 150 \
  27. --parallel $nt \
  28. --quantify-graph --qmode single\
  29. --no-extract-ase
  30. find . -depth > fileList.txt
  31. >>>
  32. runtime {
  33. docker: spladder_docker
  34. cluster: spladder_cluster
  35. systemDisk: "cloud_ssd 40"
  36. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  37. }
  38. output {
  39. File fileList = "fileList.txt"
  40. File pickle_txt = "pickle.txt"
  41. File count_hdf5 = "${sample_id}/spladder_out/spladder/*.count.hdf5"
  42. }
  43. }