Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

37 lines
1.0KB

  1. task fastq_screen {
  2. File read1
  3. File read2
  4. File screen_ref_dir
  5. File fastq_screen_conf
  6. String read1name = basename(read1,".fastq.gz")
  7. String read2name = basename(read2,".fastq.gz")
  8. String docker
  9. String cluster_config
  10. String disk_size
  11. command <<<
  12. set -o pipefail
  13. set -e
  14. nt=$(nproc)
  15. mkdir -p /cromwell_root/tmp
  16. cp -r ${screen_ref_dir} /cromwell_root/tmp/
  17. #sed -i "s#/cromwell_root/fastq_screen_reference#${screen_ref_dir}#g" ${fastq_screen_conf}
  18. fastq_screen --aligner bowtie2 --conf ${fastq_screen_conf} --top 100000 --threads $nt ${read1}
  19. fastq_screen --aligner bowtie2 --conf ${fastq_screen_conf} --top 100000 --threads $nt ${read2}
  20. >>>
  21. runtime {
  22. docker:docker
  23. cluster: cluster_config
  24. systemDisk: "cloud_ssd 40"
  25. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  26. }
  27. output {
  28. File png1 = "${read1name}_screen.png"
  29. File txt1 = "${read1name}_screen.txt"
  30. File html1 = "${read1name}_screen.html"
  31. File png2 = "${read2name}_screen.png"
  32. File txt2 = "${read2name}_screen.txt"
  33. File html2 = "${read2name}_screen.html"
  34. }
  35. }