Description Usage Arguments Value Author(s) Examples
Given two sets of peaks, this function combines them and summarizes the individual coverage vectors under the combined peak set.
1 2 | diffPeakSummary(ranges1, ranges2,
viewSummary = list(sums = viewSums, maxs = viewMaxs))
|
ranges1 |
First set of peaks (typically
an |
ranges2 |
Second set of peaks (typically
an |
viewSummary |
A list of the per peak summary functions. |
A data.frame
with one row for each peak in the combined data.
The chromosome, start and stop nucleotide positions (+ strand) are
given as are the summary statistics requested.
D. Sarkar
1 2 3 4 5 6 7 8 9 10 | data(cstest)
library(BSgenome.Mmusculus.UCSC.mm9)
seqlevels(cstest) <- seqlevels(Mmusculus)
seqlengths(cstest) <- seqlengths(Mmusculus)
## find peaks
findPeaks <- function(reads) {
reads.ext <- resize(reads, width = 200)
slice(coverage(reads.ext), lower = 8)
}
peakSummary <- diffPeakSummary(findPeaks(cstest$gfp), findPeaks(cstest$ctcf))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.