Skip to content

Commit f1a09b7

Browse files
committed
added more plots to report
1 parent 399e7cc commit f1a09b7

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

workflow/report/enrichment_analysis

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Pathway enrichment analysis of genes in peaks with Enrichr.

workflow/report/frip.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fraction of reads in peaks of each replicate non-Dam sample.

workflow/rules/bed.smk

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ if config["peak_calling_perl"]["run"]:
139139
input:
140140
xlsx="results/peaks/fdr{fdr}/consensus_peaks/enrichment_analysis/{bg_sample}.xlsx",
141141
output:
142-
plots=report(expand("results/plots/peaks/fdr{{fdr}}/enrichment_analysis/{{bg_sample}}/{db}.pdf", db=DBS), caption="../report/enrichment_analysis.rst", category="Enrichment analysis"),
142+
plots=report(expand("results/plots/peaks/fdr{{fdr}}/enrichment_analysis/{{bg_sample}}/{db}.pdf", db=DBS), caption="../report/enrichment_analysis.rst", category="Pathway enrichment analysis"),
143143
params:
144144
terms=config["consensus_peaks"]["enrichment_analysis"]["terms"],
145145
dirname=lambda w, output: os.path.dirname(output[0]),
@@ -191,7 +191,7 @@ if config["peak_calling_perl"]["run"]:
191191
total_read_count=expand("results/peaks/fdr{fdr}/read_counts/{dir}/{bg_sample}.total.count", dir=DIRS, fdr=fdr, bg_sample=BG_SAMPLES),
192192
peak_read_count=expand("results/peaks/fdr{fdr}/read_counts/{dir}/{bg_sample}.peak.count", dir=DIRS, fdr=fdr, bg_sample=BG_SAMPLES),
193193
output:
194-
plot="results/plots/peaks/fdr{fdr}/frip.pdf",
194+
plot=report("results/plots/peaks/fdr{fdr}/frip.pdf", caption="../report/frip.rst", category="Fraction of reads in peaks"),
195195
csv="results/peaks/fdr{fdr}/frip.csv",
196196
params:
197197
extra="",

workflow/rules/peak_calling.smk

+4-4
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ if config["peak_calling_macs2"]["run"]:
181181
input:
182182
xlsx="results/macs2_narrow/fdr{fdr}/enrichment_analysis/{bg_sample}.xlsx",
183183
output:
184-
plots=expand("results/plots/macs2_narrow/fdr{{fdr}}/enrichment_analysis/{{bg_sample}}/{db}.pdf", db=DBS),
184+
plots=report(expand("results/plots/macs2_narrow/fdr{{fdr}}/enrichment_analysis/{{bg_sample}}/{db}.pdf", db=DBS), caption="../report/enrichment_analysis.rst", category="Pathway enrichment analysis"),
185185
params:
186186
terms=config["consensus_peaks"]["enrichment_analysis"]["terms"],
187187
dirname=lambda w, output: os.path.dirname(output[0]),
@@ -235,7 +235,7 @@ if config["peak_calling_macs2"]["run"]:
235235
total_read_count=expand("results/macs2_broad/fdr{fdr}/read_counts/{dir}/{bg_sample}.total.count", dir=DIRS, fdr=fdr, bg_sample=BG_SAMPLES),
236236
peak_read_count=expand("results/macs2_broad/fdr{fdr}/read_counts/{dir}/{bg_sample}.peak.count", dir=DIRS, fdr=fdr, bg_sample=BG_SAMPLES),
237237
output:
238-
plot="results/plots/macs2_broad/fdr{fdr}/frip.pdf",
238+
plot=report("results/plots/macs2_broad/fdr{fdr}/frip.pdf", caption="../report/frip.rst", category="Fraction of reads in peaks"),
239239
csv="results/macs2_broad/fdr{fdr}/frip.csv",
240240
params:
241241
extra="",
@@ -404,7 +404,7 @@ if config["peak_calling_macs2"]["run"]:
404404
input:
405405
xlsx="results/macs2_broad/fdr{fdr}/enrichment_analysis/{bg_sample}.xlsx",
406406
output:
407-
plots=expand("results/plots/macs2_broad/fdr{{fdr}}/enrichment_analysis/{{bg_sample}}/{db}.pdf", db=DBS),
407+
plots=report(expand("results/plots/macs2_broad/fdr{{fdr}}/enrichment_analysis/{{bg_sample}}/{db}.pdf", db=DBS), caption="../report/enrichment_analysis.rst", category="Pathway enrichment analysis"),
408408
params:
409409
terms=config["consensus_peaks"]["enrichment_analysis"]["terms"],
410410
dirname=lambda w, output: os.path.dirname(output[0]),
@@ -458,7 +458,7 @@ if config["peak_calling_macs2"]["run"]:
458458
total_read_count=expand("results/macs2_broad/fdr{fdr}/read_counts/{dir}/{bg_sample}.total.count", dir=DIRS, fdr=fdr, bg_sample=BG_SAMPLES),
459459
peak_read_count=expand("results/macs2_broad/fdr{fdr}/read_counts/{dir}/{bg_sample}.peak.count", dir=DIRS, fdr=fdr, bg_sample=BG_SAMPLES),
460460
output:
461-
plot="results/plots/macs2_broad/fdr{fdr}/frip.pdf",
461+
plot=report("results/plots/macs2_broad/fdr{fdr}/frip.pdf", caption="../report/frip.rst", category="Fraction of reads in peaks"),
462462
csv="results/macs2_broad/fdr{fdr}/frip.csv",
463463
params:
464464
extra="",

0 commit comments

Comments
 (0)