View source: R/plot_enrichment.R
plot_enrichment | R Documentation |
This function runs KEGG and GO enrichment analysis of peak files and generates dot plots.
plot_enrichment(
peaklist,
txdb = NULL,
tss_distance = c(-3000, 3000),
pvalueCutoff = 0.05,
interact = FALSE,
verbose = TRUE
)
peaklist |
A list of peak files as GRanges object.
Files must be listed and named using |
txdb |
A TxDb annotation object from Bioconductor. |
tss_distance |
A vector specifying the distance upstream and downstream
around transcription start sites (TSS).
The default value is |
pvalueCutoff |
P-value cutoff, passed to compareCluster. |
interact |
Default TRUE. By default, plots are interactive. If set FALSE, all plots in the report will be static. |
verbose |
Print messages. |
KEGG and GO dot plots
### Load Data ###
data("CnT_H3K27ac") # example peakfile GRanges object
data("CnR_H3K27ac") # example peakfile GRanges object
### Create Named Peaklist ###
peaklist <- list("CnT"=CnT_H3K27ac, "CnR"=CnR_H3K27ac)
enrich_res <- plot_enrichment(peaklist = peaklist, pvalueCutoff=1,
tss_distance = c(-50,50))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.