Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

workflow.wdl 3.5KB

5 år sedan
5 år sedan
5 år sedan
5 år sedan
5 år sedan
4 år sedan
5 år sedan
5 år sedan
4 år sedan
4 år sedan
4 år sedan
5 år sedan
4 år sedan
4 år sedan
4 år sedan
4 år sedan
4 år sedan
4 år sedan
4 år sedan
4 år sedan
5 år sedan
5 år sedan
4 år sedan
4 år sedan
4 år sedan
5 år sedan
4 år sedan
4 år sedan
5 år sedan
5 år sedan
4 år sedan
4 år sedan
4 år sedan
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. import "./tasks/fastqc.wdl" as fastqc
  2. import "./tasks/fastqscreen.wdl" as fastqscreen
  3. import "./tasks/fastp.wdl" as fastp
  4. import "./tasks/qualimap.wdl" as qualimap
  5. import "./tasks/hisat2.wdl" as hisat2
  6. import "./tasks/samtools.wdl" as samtools
  7. import "./tasks/stringtie.wdl" as stringtie
  8. import "./tasks/ballgown.wdl" as ballgown
  9. import "./tasks/count.wdl" as count
  10. workflow {{ project_name }} {
  11. File read1
  12. File read2
  13. File idx
  14. File screen_ref_dir
  15. File fastq_screen_conf
  16. File gtf
  17. String disk_size
  18. String fastqc_docker
  19. String fastqc_cluster
  20. String fastqscreen_docker
  21. String fastqscreen_cluster
  22. String fastp_docker
  23. String fastp_cluster
  24. String adapter_sequence
  25. String adapter_sequence_r2
  26. String umi_loc
  27. String hisat2_docker
  28. String hisat2_cluster
  29. String idx_prefix
  30. String stringtie_docker
  31. String stringtie_cluster
  32. String samtools_docker
  33. String samtools_cluster
  34. String qualimap_docker
  35. String qualimap_cluster
  36. String ballgown_docker
  37. String ballgown_cluster
  38. String count_docker
  39. String count_cluster
  40. String count_length
  41. String sample_id
  42. Int trim_front1
  43. Int trim_tail1
  44. Int max_len1
  45. Int trim_front2
  46. Int trim_tail2
  47. Int max_len2
  48. Int length_required
  49. Int umi_len
  50. Int qualified_quality_phred
  51. Int length_required1
  52. Int insert_size
  53. Boolean pre_alignment_qc
  54. Boolean qualimap_qc
  55. Boolean trim_adapter
  56. if (pre_alignment_qc) {
  57. call fastqc.fastqc as fastqc {
  58. input:
  59. read1=read1,
  60. read2=read2,
  61. docker=fastqc_docker,
  62. cluster=fastqc_cluster,
  63. disk_size=disk_size
  64. }
  65. call fastqscreen.fastqscreen as fastqscreen {
  66. input:
  67. read1=read1,
  68. read2=read2,
  69. docker=fastqscreen_docker,
  70. cluster=fastqscreen_cluster,
  71. screen_ref_dir=screen_ref_dir,
  72. fastq_screen_conf=fastq_screen_conf,
  73. disk_size=disk_size
  74. }
  75. }
  76. call fastp.fastp as fastp {
  77. input:
  78. sample_id=sample_id,
  79. read1=read1,
  80. read2=read2,
  81. docker=fastp_docker,
  82. cluster=fastp_cluster,
  83. disk_size=disk_size,
  84. adapter_sequence=adapter_sequence,
  85. adapter_sequence_r2=adapter_sequence_r2,
  86. umi_loc=umi_loc,
  87. trim_front1=trim_front1,
  88. trim_tail1=trim_tail1,
  89. max_len1=max_len1,
  90. trim_front2=trim_front2,
  91. trim_tail2=trim_tail2,
  92. max_len2=max_len2,
  93. length_required=length_required,
  94. umi_len=umi_len,
  95. qualified_quality_phred=qualified_quality_phred,
  96. length_required1=length_required1,
  97. trim_adapter=trim_adapter
  98. }
  99. call hisat2.hisat2 as hisat2 {
  100. input:
  101. sample_id=sample_id,
  102. docker=hisat2_docker,
  103. cluster=hisat2_cluster,
  104. idx=idx,
  105. idx_prefix=idx_prefix,
  106. read_1P=fastp.trim_R1,
  107. read_2P=fastp.trim_R2,
  108. disk_size=disk_size
  109. }
  110. call samtools.samtools as samtools {
  111. input:
  112. docker=samtools_docker,
  113. cluster=samtools_cluster,
  114. sam=hisat2.sam,
  115. insert_size=insert_size,
  116. disk_size=disk_size
  117. }
  118. if (qualimap_qc){
  119. call qualimap.qualimap as qualimap {
  120. input:
  121. bam=samtools.out_sort_bam,
  122. gtf=gtf,
  123. docker=qualimap_docker,
  124. cluster=qualimap_cluster,
  125. disk_size=disk_size
  126. }
  127. }
  128. call stringtie.stringtie as stringtie {
  129. input:
  130. docker=stringtie_docker,
  131. cluster=stringtie_cluster,
  132. gtf=gtf,
  133. bam=samtools.out_sort_bam,
  134. disk_size=disk_size
  135. }
  136. call ballgown.ballgown as ballgown {
  137. input:
  138. docker=ballgown_docker,
  139. cluster=ballgown_cluster,
  140. ballgown=stringtie.ballgown,
  141. gene_abundance=stringtie.gene_abundance,
  142. disk_size=disk_size
  143. }
  144. call count.count as count {
  145. input:
  146. sample_id=sample_id,
  147. docker=count_docker,
  148. cluster=count_cluster,
  149. ballgown=stringtie.ballgown,
  150. disk_size=disk_size,
  151. count_length=count_length
  152. }
  153. }