室间质评
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.

34 lines
906B

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