hotspotter | R Documentation |
Find hotspots of genomic events by using kernel density estimation.
hotspotter(gr.list, bw, pval = 1e-08)
gr.list |
A list or |
bw |
Bandwidth used for kernel density estimation (see |
pval |
P-value cutoff for hotspots. |
The hotspotter uses density
to perform a KDE. A p-value is calculated by comparing the density profile of the genomic events with the density profile of a randomly subsampled set of genomic events. Due to this random sampling, the result can vary for each function call, most likely for hotspots whose p-value is close to the specified pval
.
A GRanges-class
object containing coordinates of hotspots with p-values.
Aaron Taudt
## Get example BreakPoint objects
exampleFolder <- system.file("extdata", "example_results", package="breakpointRdata")
exampleFiles <- list.files(exampleFolder, full.names=TRUE)
breakpoint.objects <- loadFromFiles(exampleFiles)
## Extract breakpoint coordinates
breaks <- lapply(breakpoint.objects, '[[', 'breaks')
## Get hotspot coordinates
hotspots <- hotspotter(gr.list=breaks, bw=1e6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.