Description Usage Arguments Details Value Author(s) Examples
View source: R/genomic_region_annotation.R
Overlap genomic regions
1 | percentOverlaps(query, subject, ignore_strand = TRUE, ...)
|
query |
a |
subject |
a |
ignore_strand |
wether ignore strands |
... |
pass to |
For every interval in query
, it calculates the percent that is covered by subject
.
Be careful with strand
in your GRanges
object!
A numeric vector which has the same length as query
.
Zuguang Gu <z.gu@dkfz.de>
1 2 3 4 | gr1 = GRanges(seqname = "chr1", ranges = IRanges(start = c(4, 10), end = c(6, 16)))
gr2 = GRanges(seqname = "chr1", ranges = IRanges(start = c(7, 13), end = c(8, 20)))
percentOverlaps(gr1, gr2)
percentOverlaps(gr2, gr1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.