Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

87 lines
1.7KB

  1. import "./tasks/fastp.wdl" as fastp
  2. import "./tasks/hisat2.wdl" as hisat2
  3. import "./tasks/samtools.wdl" as samtools
  4. import "./tasks/stringtie.wdl" as stringtie
  5. import "./tasks/fastqc.wdl" as fastqc
  6. import "./tasks/fastqscreen.wdl" as fastqscreen
  7. import "./tasks/qualimapBAMqc.wdl" as qualimapBAMqc
  8. import "./tasks/multiqc.wdl" as multiqc
  9. workflow {{ project_name }} {
  10. File inputSamplesFile
  11. Array[Array[File]] inputSamples = read_tsv(inputSamplesFile)
  12. String fasta
  13. String idx_prefix
  14. File screen_ref_dir
  15. File fastq_screen_conf
  16. File idx
  17. File gtf
  18. File ref_dir
  19. scatter (quartet in inputSamples){
  20. call fastp.fastp as fastp {
  21. input:
  22. sample_id=quartet[2],
  23. read1=quartet[0],
  24. read2=quartet[1],
  25. adapter_sequence=quartet[3],
  26. adapter_sequence_r2=quartet[4]
  27. }
  28. call fastqc.fastqc as fastqc {
  29. input:
  30. read1=fastp.Trim_R1,
  31. read2=fastp.Trim_R2
  32. }
  33. call fastqscreen.fastq_screen as fastqscreen {
  34. input:
  35. read1=fastp.Trim_R1,
  36. read2=fastp.Trim_R2,
  37. screen_ref_dir=screen_ref_dir,
  38. fastq_screen_conf=fastq_screen_conf
  39. }
  40. call hisat2.hisat2 as hisat2 {
  41. input:
  42. sample_id=quartet[2],
  43. idx=idx,
  44. idx_prefix=idx_prefix,
  45. Trim_R1=fastp.Trim_R1,
  46. Trim_R2=fastp.Trim_R2
  47. }
  48. call samtools.samtools as samtools {
  49. input:
  50. sample_id=quartet[2],
  51. sam = hisat2.sam
  52. }
  53. call qualimapBAMqc.qualimapBAMqc as qualimapBAMqc {
  54. input:
  55. bam= samtools.out_bam
  56. }
  57. call stringtie.stringtie as stringtie {
  58. input:
  59. sample_id=quartet[2],
  60. gtf = gtf,
  61. bam = samtools.out_bam
  62. }
  63. }
  64. call multiqc.multiqc as multiqc {
  65. input:
  66. read1_zip=fastqc.read1_zip,
  67. read2_zip=fastqc.read2_zip,
  68. txt1=fastqscreen.txt1,
  69. txt2=fastqscreen.txt2,
  70. rnaseq_zip=qualimapRNAseq.rnaseq_zip
  71. }
  72. }