Skip to content

Commit 8e94b9a

Browse files
committed
PE now consistent with SE
1 parent 83b9f02 commit 8e94b9a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

workflow/rules/fastqc.smk

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
if paired_end:
22
rule post_trim_fastqc:
33
input:
4-
"results/trimmed/{dir}/{sample}{end}.fastq.gz",
4+
"results/trimmed/{dir}/{sample}_{end}.fastq.gz",
55
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"
88
params:
99
extra = "--quiet"
1010
log:
11-
"logs/fastqc/{dir}/{sample}{end}.log"
11+
"logs/fastqc/post_trim/{dir}/{sample}_R{end}_001.log"
1212
threads: config["resources"]["fastqc"]["cpu"]
1313
resources:
1414
runtime=config["resources"]["fastqc"]["time"],
@@ -19,14 +19,14 @@ if paired_end:
1919

2020
rule pre_trim_fastqc:
2121
input:
22-
"reads/{dir}/{sample}{end}.fastq.gz",
22+
"reads/{dir}/{sample}_R{end}_001.fastq.gz",
2323
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"
2626
params:
2727
extra = "--quiet"
2828
log:
29-
"logs/fastqc/{dir}/{sample}{end}.log"
29+
"logs/fastqc/pre_trim/{dir}/{sample}_R{end}_001.log"
3030
threads: config["resources"]["fastqc"]["cpu"]
3131
resources:
3232
runtime=config["resources"]["fastqc"]["time"],
@@ -37,7 +37,7 @@ if paired_end:
3737

3838
rule multiqc:
3939
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"])
4141
output:
4242
r="results/qc/multiqc/multiqc.html",
4343
params:

0 commit comments

Comments
 (0)