View source: R/prepareBindingSites.R
reduceByPercentage | R Documentation |
Merge the ranges by percentage of overlaps to avoid broad ranges of continues ranges overlapped with limit bases.
reduceByPercentage(
query,
percentage,
ignore.strand = TRUE,
colnToKeep = c("score", "motif")
)
query |
An object of GRanges |
percentage |
A numeric vector (length=1). The percentage of overlapping region of binding sites to merge as one range. |
ignore.strand |
When set to TRUE, the strand information is ignored in the calculations. |
colnToKeep |
The metadata colnums should be kept for reduced GRanges |
An object of GRanges.
library(GenomicRanges)
gr <- GRanges("chr1", IRanges(c(1, 5, 10), width=c(10, 5, 2)))
reduceByPercentage(gr, 0.5, colnToKeep=NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.