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.

51 line
1.7KB

  1. task mixcr {
  2. File read1
  3. File read2
  4. String sample
  5. String base = sub(basename(read1),"\\.\\S+$", "")
  6. String docker
  7. String cluster_config
  8. String disk_size
  9. command <<<
  10. mixcr align -t 12 -p rna-seq -s hsa -OallowPartialAlignments=true ${read1} ${read2} ${base}.vdjca
  11. mixcr assemblePartial ${base}.vdjca ${base}_rescued_1.vdjca
  12. mixcr assemblePartial ${base}_rescued_1.vdjca ${base}_rescued_2.vdjca
  13. mixcr extend ${base}_rescued_2.vdjca ${base}_rescued_2_extended.vdjca
  14. mixcr assemble ${base}_rescued_2_extended.vdjca ${base}.clns
  15. mixcr exportClones ${base}.clns ${base}.txt
  16. mixcr exportClones -c TCR ${base}.clns ${base}.TCR.txt
  17. mixcr exportClones -c TRB ${base}.clns ${base}.TRB.txt
  18. mixcr exportClones -c TRA ${base}.clns ${base}.TRA.txt
  19. mixcr exportClones -c TRD ${base}.clns ${base}.TRD.txt
  20. mixcr exportClones -c TRG ${base}.clns ${base}.TRG.txt
  21. mixcr exportClones -c IG ${base}.clns ${base}.BCR.txt
  22. mixcr exportClones -c IGH ${base}.clns ${base}.IGH.txt
  23. >>>
  24. runtime {
  25. docker:docker
  26. cluster: cluster_config
  27. systemDisk: "cloud_ssd 40"
  28. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  29. }
  30. output {
  31. File align_out = base + ".vdjca"
  32. File assemble_rescued_1_out = base + "_rescued_1.vdjca"
  33. File assemble_rescued_2_out = base + "_rescued_2.vdjca"
  34. File assemble_rescued_extended_out = base + "_rescued_2_extended.vdjca"
  35. File clns_out = base + ".clns"
  36. File clones_out = base + ".txt"
  37. File tcr_out = base + ".TCR.txt"
  38. File trb_out = base + ".TRB.txt"
  39. File tra_out = base + ".TRA.txt"
  40. File trd_out = base + ".TRD.txt"
  41. File trg_out = base + ".TRG.txt"
  42. File bcr_out = base + ".BCR.txt"
  43. File igh_out = base + ".IGH.txt"
  44. }
  45. }