Description Usage Arguments Value Examples
View source: R/myGRoverlapFunctions.R
Get a dataframe from findOverlaps from a GRangesList with 2 items where colnames match the names of the items
1 | overlap2GR(my2GRsToOverlap)
|
my2GRsToOverlap |
a GRangesList with 2 items to overlap |
a dataframe with 2 columns with colnames identicals to names of the input with the indices of the overlaps
1 2 3 4 5 6 7 8 9 10 11 | gr1 <- GenomicRanges::GRanges(
seqnames = "chr1",
ranges = IRanges::IRanges(start = c(1, 11, 199),
end = c(10, 12, 200)),
score = c(20, 30, 100))
gr2 <- GenomicRanges::GRanges(
seqnames = "chr1",
ranges = IRanges::IRanges(start = c(5, 101),
end = c(15, 102)),
score = c(1, 2))
overlap2GR(list(first = gr1, second = gr2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.