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.

36 lines
967B

  1. task fastqscreen {
  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
  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. fastq_screen --aligner bowtie2 --conf ${fastq_screen_conf} --top 100000 --threads $nt ${read1}
  18. fastq_screen --aligner bowtie2 --conf ${fastq_screen_conf} --top 100000 --threads $nt ${read2}
  19. >>>
  20. runtime {
  21. docker:docker
  22. cluster: cluster
  23. systemDisk: "cloud_ssd 40"
  24. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  25. }
  26. output {
  27. File png1 = "${read1name}_screen.png"
  28. File txt1 = "${read1name}_screen.txt"
  29. File html1 = "${read1name}_screen.html"
  30. File png2 = "${read2name}_screen.png"
  31. File txt2 = "${read2name}_screen.txt"
  32. File html2 = "${read2name}_screen.html"
  33. }
  34. }