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.

49 lines
933B

  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. String fasta
  12. scatter (sample in inputSamples) {
  13. call fastqc.fastqc as fastqc {
  14. input:
  15. read1=sample[0],
  16. read2=sample[1]
  17. }
  18. call fastqscreen.fastq_screen as fastqscreen {
  19. input:
  20. read1=sample[0],
  21. read2=sample[1],
  22. screen_ref_dir=screen_ref_dir,
  23. fastq_screen_conf=fastq_screen_conf
  24. }
  25. call qualimap.qualimap as qualimap {
  26. input:
  27. bam=sample[2],
  28. bai=sample[3]
  29. }
  30. }
  31. call multiqc.multiqc as multiqc {
  32. input:
  33. read1_zip=fastqc.read1_zip,
  34. read2_zip=fastqc.read2_zip,
  35. txt1=fastqscreen.txt1,
  36. txt2=fastqscreen.txt2,
  37. zip=qualimap.zip
  38. }
  39. }