Description Usage Arguments Value Examples
View source: R/p03_QC_replicate_correlation.R
This function generate the peak overlap statistics table for two TF ChIPseq replicates. Using common peaks, it plots the distribution and scatter plot of either -log10(p-value) or fold enrichment from peak file. Macs2 peak caller output files in narrowPeak/broadPeak format are used to extract the values.
1 2 3 4 5 6 7 | compare_ChIPseq_replicates(
sampleInfo,
compare = "pvalue",
yintercept = -Inf,
summitRegion = 0,
peakFormat
)
|
sampleInfo |
sample information dataframe |
compare |
One of pvalue or enrichment |
yintercept |
yintercept for horizontal line on beeswarm plot |
summitRegion |
Region width around peak summit to use for while merging the peaks
from multiple samples. With increasing number of peaksets, the mearging of peaks creates
broader consensus peaksets. Using a small region around peak summit allows to limit this
consensus peak width. If 0 (default), whole peak region is used. If |
peakFormat |
Format of the peak file. One of |
A list with following ggplot2 elements:
table: peak overlap summary table for replicates as a ggtable
object
distribution: Beeswarm plots showing comparative distribution between replicates for a metric of choice
valueScatter: X-Y scatter plot using values a metric of choice
rankScatter: X-Y scatter plot using rank(values)
a metric of choice
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.