← Files NGS Analysis WorkbenchARCHIVED FILE

workflows/fastq_qc/workflow/rules/trimmed_qc.smk

1.12 KB · Oct 3, 2026 · 06:16 UTC

↓ Download file

rule fastqc_trimmed_paired:
    input:
        r1="trimmed/{sample}/{sample}_R1.fastq.gz",
        r2="trimmed/{sample}/{sample}_R2.fastq.gz",
    output:
        directory("fastqc/trimmed/paired/{sample}")
    threads: THREADS
    conda:
        "../envs/fastq_qc.yaml"
    shell:
        "mkdir -p {output:q} && {FASTQC:q} -t {threads} -o {output:q} {input.r1:q} {input.r2:q}"


rule fastqc_trimmed_single:
    input:
        r1="trimmed/{sample}/{sample}.fastq.gz",
    output:
        directory("fastqc/trimmed/single/{sample}")
    threads: THREADS
    conda:
        "../envs/fastq_qc.yaml"
    shell:
        "mkdir -p {output:q} && {FASTQC:q} -t {threads} -o {output:q} {input.r1:q}"


rule multiqc_trimmed:
    input:
        expand("fastqc/trimmed/paired/{sample}", sample=PAIRED),
        expand("fastqc/trimmed/single/{sample}", sample=SINGLE)
    output:
        "multiqc/trimmed/multiqc_report.html"
    conda:
        "../envs/fastq_qc.yaml"
    shell:
        "mkdir -p multiqc/trimmed && "
        "{MULTIQC:q} --force --cl-config 'no_version_check: true' --no-megaqc-upload "
        "fastqc/trimmed trimmed -o multiqc/trimmed"

SHA-256: 4c989e9f6e1c0c17ce3df67a9e97e73ddcaea73a9abc463c3360ecf4659b7a93