consensusPeaks | R Documentation |
Get the consensus peaks for ChIP-seq or ATAC-seq peaks.
consensusPeaks(x)
x |
|
To deal with the replicates and get the consensus peaks, the strategy is to pool the reads from replicates and call the peaks.
This function produces a much more conservative set of peaks. For each peak from pooled reads, the peak is kept only when the overlap with the peak from each replicate is larger than half of either peak.
GRanges
object of final peaks.
Ge Tan
## Not run:
## consensusPeaks
bedFns <- file.path("/srv/gstore/projects/p2578/MACS2_22192_2018-01-29--14-07-06",
c("A0062P_peaks.bed", "A0101P_peaks.bed",
"A3401P_peaks.bed"))
bedGRL <- GRangesList(lapply(bedFns, import.Macs2Peaks))
consensusPeaks(bedGRL)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.