Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

fastqscreen.wdl 1.8KB

před 4 roky
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. task fastqscreen {
  2. File tumor_read1
  3. File tumor_read2
  4. File normal_read1
  5. File normal_read2
  6. File screen_ref_dir
  7. File fastq_screen_conf
  8. String tumor_read1name = basename(tumor_read1,".fastq.gz")
  9. String tumor_read2name = basename(tumor_read2,".fastq.gz")
  10. String normal_read1name = basename(normal_read1,".fastq.gz")
  11. String normal_read2name = basename(normal_read2,".fastq.gz")
  12. String docker
  13. String cluster_config
  14. String disk_size
  15. command <<<
  16. set -o pipefail
  17. set -e
  18. nt=$(nproc)
  19. mkdir -p /cromwell_root/tmp
  20. cp -r ${screen_ref_dir} /cromwell_root/tmp/
  21. fastq_screen --aligner bowtie2 --conf ${fastq_screen_conf} --top 100000 --threads $nt ${tumor_read1}
  22. fastq_screen --aligner bowtie2 --conf ${fastq_screen_conf} --top 100000 --threads $nt ${tumor_read2}
  23. fastq_screen --aligner bowtie2 --conf ${fastq_screen_conf} --top 100000 --threads $nt ${normal_read1}
  24. fastq_screen --aligner bowtie2 --conf ${fastq_screen_conf} --top 100000 --threads $nt ${normal_read2}
  25. >>>
  26. runtime {
  27. docker:docker
  28. cluster: cluster_config
  29. systemDisk: "cloud_ssd 40"
  30. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  31. }
  32. output {
  33. File tumor_png1 = "${tumor_read1name}_screen.png"
  34. File tumor_txt1 = "${tumor_read1name}_screen.txt"
  35. File tumor_html1 = "${tumor_read1name}_screen.html"
  36. File tumor_png2 = "${tumor_read2name}_screen.png"
  37. File tumor_txt2 = "${tumor_read2name}_screen.txt"
  38. File tumor_html2 = "${tumor_read2name}_screen.html"
  39. File normal_png1 = "${normal_read1name}_screen.png"
  40. File normal_txt1 = "${normal_read1name}_screen.txt"
  41. File normal_html1 = "${normal_read1name}_screen.html"
  42. File normal_png2 = "${normal_read2name}_screen.png"
  43. File normal_txt2 = "${normal_read2name}_screen.txt"
  44. File normal_html2 = "${normal_read2name}_screen.html"
  45. }
  46. }