from fastq to bam files
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

fastqscreen.wdl 1.0KB

il y a 3 ans
12345678910111213141516171819202122232425262728293031323334353637
  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. }