Description Usage Arguments Details Value Author(s) Examples
Find neighbour regions
1  | find_neighbours(query, reference, upstream = 1000, downstream = 1000)
 | 
query | 
 a   | 
reference | 
 a   | 
upstream | 
 upstream that   | 
downstream | 
 downstream that   | 
With a certain extension of query, this funciton looks for reference which intersects the extended regions.
A GRanges object which contains regions in query for which the extended regisons are overlapped with reference.
There are three meta columns added:
distance from the query to corresponding reference
index of regions in query
index of regions in reference 
Note one reference can correspond to multiple query regions.
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)))
find_neighbours(gr1, gr2, upstream = 3, downstream = 3)
find_neighbours(gr1, gr2, upstream = 10, downstream = 10)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.