1
1
if paired_end :
2
2
rule post_trim_fastqc :
3
3
input :
4
- "results/trimmed/{dir}/{sample}{end}.fastq.gz" ,
4
+ "results/trimmed/{dir}/{sample}_ {end}.fastq.gz" ,
5
5
output :
6
- html = "results/qc/fastqc/{dir}/{sample}{end}_post_trim .html" ,
7
- zip = "results/qc/fastqc/{dir}/{sample}{end}_post_trim_fastqc .zip"
6
+ html = "results/qc/fastqc/{dir}/post_trim/ {sample}_R {end}_001 .html" ,
7
+ zip = "results/qc/fastqc/{dir}/post_trim/ {sample}_R {end}_001_fastqc .zip"
8
8
params :
9
9
extra = "--quiet"
10
10
log :
11
- "logs/fastqc/{dir}/{sample}{end}.log"
11
+ "logs/fastqc/post_trim/ {dir}/{sample}_R {end}_001 .log"
12
12
threads : config ["resources" ]["fastqc" ]["cpu" ]
13
13
resources :
14
14
runtime = config ["resources" ]["fastqc" ]["time" ],
@@ -19,14 +19,14 @@ if paired_end:
19
19
20
20
rule pre_trim_fastqc :
21
21
input :
22
- "reads/{dir}/{sample}{end}.fastq.gz" ,
22
+ "reads/{dir}/{sample}_R {end}_001 .fastq.gz" ,
23
23
output :
24
- html = "results/qc/fastqc/{dir}/{sample}{end}_pre_trim .html" ,
25
- zip = "results/qc/fastqc/{dir}/{sample}{end}_pre_trim_fastqc .zip"
24
+ html = "results/qc/fastqc/{dir}/pre_trim/ {sample}_R {end}_001 .html" ,
25
+ zip = "results/qc/fastqc/{dir}/pre_trim/ {sample}_R {end}_001_fastqc .zip"
26
26
params :
27
27
extra = "--quiet"
28
28
log :
29
- "logs/fastqc/{dir}/{sample}{end}.log"
29
+ "logs/fastqc/pre_trim/ {dir}/{sample}_R {end}_001 .log"
30
30
threads : config ["resources" ]["fastqc" ]["cpu" ]
31
31
resources :
32
32
runtime = config ["resources" ]["fastqc" ]["time" ],
@@ -37,7 +37,7 @@ if paired_end:
37
37
38
38
rule multiqc :
39
39
input :
40
- expand ("results/qc/fastqc/{dir}/{sample}{end}{trim}_fastqc .zip" , dir = DIRS , sample = SAMPLES , end = ["_1 " ,"_2 " ], trim = ["_pre_trim " ,"_post_trim " ])
40
+ expand ("results/qc/fastqc/{dir}/{trim}/{ sample}_R {end}_001_fastqc .zip" , dir = DIRS , sample = SAMPLES , end = ["1 " ,"2 " ], trim = ["pre_trim " ,"post_trim " ])
41
41
output :
42
42
r = "results/qc/multiqc/multiqc.html" ,
43
43
params :
0 commit comments