Description Usage Arguments Value Examples
Calculate the percentage between 2 GRanges objects.
1 | percent_overlap(qry, sbj)
|
qry |
Query. The percentage will be calculated relatively to this
object. Must of class |
sbj |
Subject. Must be of class |
The percentage of the query that overlaps the subject.
1 2 3 4 5 | gr1 <- GRanges("chr1", IRanges(1,100))
gr2 <- GRanges("chr1", IRanges(40,140))
percent_overlap(gr1, gr2)
gri2 <- GIntervalTree(gr2)
percent_overlap(gr1, gr2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.