-
Notifications
You must be signed in to change notification settings - Fork 0
/
Snakefile
51 lines (44 loc) · 2.76 KB
/
Snakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
containerized: "docker://Dockerfile"
include: "workflow/rules/fastqc.smk"
include: "workflow/rules/rnaseq_paired.smk"
include: "workflow/rules/rnaseq_not_paired.smk"
include: "workflow/rules/multiqc.smk"
configfile: "config/config.yaml"
# CONDITIONAL RULES #
# FASTQC if specified
run_fastqc = config["run_fastqc"] == "yes"
# MULTIQC if specified
run_multiqc = config["run_multiqc"] == "yes"
rule all:
input:
## The lines below will perform fastqc in the raw RNA data
#
# expand("FASTQC/{sample}/{sample}_1_1_fastqc.html", sample = paired_samples) if run_fastqc else [],
# expand("FASTQC/single_end/{sample}/{sample}_fastqc.html", sample = single_end_samples) if run_fastqc else [],
#
## The lines below will perform fastqc in the filtered and trimmed RNA
#
# expand("FASTQC/sortmerna/filtered/{sample}_fwd/{sample}_fwd_fastqc.html", sample = paired_samples) if run_fastqc else [],
# expand("FASTQC/sortmerna/filtered/{sample}_rev/{sample}_rev_fastqc.html", sample = paired_samples) if run_fastqc else [],
# expand("FASTQC/trimmomatic/{sample}/{sample}_fwd_p_fastqc.html", sample = paired_samples) if run_fastqc else [],
# expand("FASTQC/sortmerna/unpaired/filtered/{sample}/{sample}_fastqc.html", sample = single_end_samples) if run_fastqc else [],
# expand("FASTQC/trimmomatic/unpaired/{sample}/{sample}_fwd_fastqc.html", sample = single_end_samples) if run_fastqc else [],
#
## The lines below will perform multiQC in the raw RNA data
#
expand("MULTIQC/single_end/{sample}/{sample}_multiqc_report.html", sample = single_end_samples) if run_multiqc else [],
expand("MULTIQC/{sample}/{sample}_multiqc_report.html", sample = paired_samples) if run_multiqc else [],
#
## The lines below will perform multiQC in the filtered and trimmed RNA
#
expand("MULTIQC/sortmerna/{sample}/{sample}_unpaired_multiqc_report.html", sample = single_end_samples) if run_multiqc else [],
expand("MULTIQC/sortmerna/{sample}/{sample}_fwd_paired_multiqc_report.html", sample = paired_samples) if run_multiqc else [],
expand("MULTIQC/trimmomatic/unpaired/{sample}/{sample}_unpaired_multiqc_report.html", sample = single_end_samples) if run_multiqc else [],
expand("MULTIQC/trimmomatic/{sample}/{sample}_paired_multiqc_report.html", sample = paired_samples) if run_multiqc else [],
#
## The lines below run the full quantification pipeline, for unpaired and paired samples
#
expand("results/kallisto_files/unpaired/{sample}/abundance.h5", sample = single_end_sample_name),
expand("results/kallisto_files/{sample}/abundance.h5", sample = paired_end_sample_name)
shell:
'echo "I just run subrules!"'