Description Usage Arguments Value Author(s) See Also Examples
Summarize Peaks - Combine the potentially enriched bins found by BayesPeak into contiguous peaks, and associate each with a posterior probability.
summarise.peaks
is an alias for summarize.peaks
1 2 | summarize.peaks(x, threshold = 0.5, method = c("lowerbound", "max"), exclude.jobs = NULL)
summarise.peaks(x, threshold = 0.5, method = c("lowerbound", "max"), exclude.jobs = NULL)
|
x |
Raw output from the function |
threshold |
Numeric vector.
|
method |
The method used to combine the posterior probabilities of multiple peaks. Current methods are:
|
exclude.jobs |
A vector of integers, denoting jobs to be excluded from later analysis. Alternatively, a logical vector (to be passed through |
A RangedData object corresponding to the peaks called - each range has an associated PP (Posterior Probability) value.
Jonathan Cairns
1 2 3 4 5 6 7 8 9 10 11 12 13 | dir <- system.file("extdata", package="BayesPeak")
treatment <- file.path(dir, "H3K4me3reduced.bed")
input <- file.path(dir, "Inputreduced.bed")
##look at specific region 92-95Mb on chromosome 16
##(we've used half the number of iterations here to reduce the time this example takes)
raw.output <- bayespeak(treatment, input, chr = "chr16", start = 9.2E7, end = 9.5E7, iterations = 5000L, use.multicore = TRUE)
output <- summarize.peaks(raw.output)
output
##higher threshold
output.ht <- summarize.peaks(raw.output, threshold = 0.9)
output.ht
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.