Description Usage Arguments Value Examples
View source: R/p03_QC_ChIPseq_summary.R
This method generates various summary plots for TF ChIPseq data.
A table summarizing quantils of peak enrichment, p-value and q-value
A distribution beeswarm plot for peak enrichment values.
A distribution beeswarm plot for peak p-value.
A distribution beeswarm plot for peak width.
A pie chart showing peak annotation distribution.
If there is no peak information, it returns blank plot with "No Data" text
1 2 3 4 5 6 7 8 9 10 11 | chip_summary(
sampleId,
peakAnnotation,
peakFile,
peakFormat,
pval_cutoff = 20,
enrichment_cutoff = 3,
markTargets = NULL,
pointColor = NULL,
pointAlpha = NULL
)
|
sampleId |
sampleId |
peakAnnotation |
macs2 peak annotation file generated by |
peakFile |
narrowPeak or broadPeak file generated by macs2 |
peakFormat |
One of narrowPeak or broadPeak |
pval_cutoff |
A cutoff for -log10(p-value) for drawing horizontal line in beeswarm plot. Default: 20 |
enrichment_cutoff |
A cutoff for peak enrichment for drawing horizontal line in beeswarm plot. Default: 3 |
markTargets |
A named list of target genes which needs to be annotated in the scatter plot. Default: NULL |
pointColor |
A named vector with colors for each target category in |
pointAlpha |
A named vector of alpha vlues for each target category in
|
A list with following elements is returned.
data: plot data used for plotting
figure: A combined figure generated by ggpubr::ggarrange
plots: Individual ggplot list for each plot.
table: a ggtable
object for quantile stats
distribution: A list with two beeswarm plot objects: enrichment, pval.
annoPie: A pie chart for peak annotation distribution
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.