annoPeaks | R Documentation |
Annotate peaks by annoGR object in the given range.
annoPeaks(
peaks,
annoData,
bindingType = c("nearestBiDirectionalPromoters", "startSite", "endSite", "fullRange"),
bindingRegion = c(-5000, 5000),
ignore.peak.strand = TRUE,
select = c("all", "bestOne"),
...
)
peaks |
peak list, GRanges object |
annoData |
annotation data, GRanges object |
bindingType |
Specifying the criteria to associate peaks with annotation. Here is how to use it together with the parameter bindingRegion
|
bindingRegion |
Annotation range used together with bindingType, which is a vector with two integer values, default to c (-5000, 5000). The first one must be no bigger than 0, which means upstream. And the sec ond one must be no less than 1, which means downstream (1 is the site position, 2 is the next base of the site position). For details, see bindingType. |
ignore.peak.strand |
ignore the peaks strand or not. |
select |
"all" or "bestOne". Return the annotation containing all or the best one. The "bestOne" is selected by the shortest distance to the sites and then similarity between peak and annotations. Ignored if bindingType is nearestBiDirectionalPromoters. |
... |
Not used. |
Output is a GRanges object of the annotated peaks.
Jianhong Ou
See Also as annotatePeakInBatch
library(ensembldb)
library(EnsDb.Hsapiens.v75)
data("myPeakList")
annoGR <- toGRanges(EnsDb.Hsapiens.v75)
seqlevelsStyle(myPeakList) <- seqlevelsStyle(annoGR)
annoPeaks(myPeakList, annoGR)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.