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.

fastqscreen.wdl 1.0KB

5 vuotta sitten
5 vuotta sitten
5 vuotta sitten
5 vuotta sitten
5 vuotta sitten
5 vuotta sitten
4 vuotta sitten
5 vuotta sitten
4 vuotta sitten
5 vuotta sitten
12345678910111213141516171819202122232425262728293031323334353637
  1. task fastqscreen {
  2. File read1
  3. File read2
  4. File screen_ref_dir
  5. File fastq_screen_conf
  6. String read1name = sub(basename(read1),"\\.\\S+$", "")
  7. String read2name = sub(basename(read2),"\\.\\S+$", "")
  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. 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
  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. }