-
Notifications
You must be signed in to change notification settings - Fork 0
/
Snakefile
43 lines (35 loc) · 1.47 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
import pandas
import itertools
include: "rules/making_sample_dataset.rules"
include: "rules/logging.rules"
include: "rules/fastqc.rules"
include: "rules/qualimap.rules"
include: "rules/trimmomatic.rules"
include: "rules/prepare_fastq.rules"
include: "rules/bwa.rules"
include: "rules/counts.rules"
include: "rules/reads_sample.rules"
include: "rules/edgeR.rules"
include: "rules/kegg.rules"
include: "rules/COG.rules"
include: "rules/reference_genome.rules"
include: "rules/gene_ontology_enrichment.rules"
rule rarefaction:
input:
expand("samples/{sample}/reads/trimmed/fastqc/single_fastqc.html", sample=read_naming.keys()),
"report/rnaseq/htseq/summary_all.tab",
"report/mapping_summary.tsv"
"aggregated/rarefaction.pdf",
def condition_combination(wildcards):
file_list = []
condition_list = list(set(all_samples["condition"]))
for pair in itertools.combinations(condition_list, 2):
cond1, cond2 = pair
file_list.append(f'report/rnaseq/edger/{cond1}_vs_{cond2}/FDR0.01_logFC0/{cond1}_vs_{cond2}_plotMDS.pdf')
file_list.append(f'report/rnaseq/edger/{cond1}_vs_{cond2}/FDR0.01_logFC0/{cond1}_vs_{cond2}_modules.tsv')
file_list.append(f'report/rnaseq/edger/{cond1}_vs_{cond2}/FDR0.01_logFC0/{cond1}_vs_{cond2}_local_COG.tsv')
file_list.append(f'report/rnaseq/edger/{cond1}_vs_{cond2}/FDR0.01_logFC0/{cond1}_vs_{cond2}_local_COG.pdf')
return file_list
rule edger:
input:
condition_combination