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.

51 lines
967B

  1. import "./tasks/fastqc.wdl" as fastqc
  2. import "./tasks/fastqscreen.wdl" as fastqscreen
  3. import "./tasks/qualimap.wdl" as qualimap
  4. import "./tasks/multiqc.wdl" as multiqc
  5. workflow {{ project_name }} {
  6. File inputSamplesFile
  7. Array[Array[File]] inputSamples = read_tsv(inputSamplesFile)
  8. File screen_ref_dir
  9. File fastq_screen_conf
  10. File ref_dir
  11. File regions
  12. String fasta
  13. scatter (sample in inputSamples) {
  14. call fastqc.fastqc as fastqc {
  15. input:
  16. read1=sample[0],
  17. read2=sample[1]
  18. }
  19. call fastqscreen.fastq_screen as fastqscreen {
  20. input:
  21. read1=sample[0],
  22. read2=sample[1],
  23. screen_ref_dir=screen_ref_dir,
  24. fastq_screen_conf=fastq_screen_conf
  25. }
  26. call qualimap.qualimap as qualimap {
  27. input:
  28. regions=regions,
  29. bam=sample[2],
  30. bai=sample[3]
  31. }
  32. }
  33. call multiqc.multiqc as multiqc {
  34. input:
  35. read1_zip=fastqc.read1_zip,
  36. read2_zip=fastqc.read2_zip,
  37. txt1=fastqscreen.txt1,
  38. txt2=fastqscreen.txt2,
  39. zip=qualimap.zip
  40. }
  41. }