region_overlap | R Documentation |
Given two lists of genomic regions, a data.table containing the overlapped regions are returned.
region_overlap( x, y, regionCols1 = 1:3L, regionCols2 = 1:3L, type = c("any", "within", "start", "end", "equal"), mult = c("all", "first", "last"), matchedOnly = F )
x |
The first input genomic regions. A |
y |
The second input genomic regions. A |
regionCols1 |
A vector of column names or numbers in |
regionCols2 |
A vector of column names or numbers in |
type |
Default value is The types shown here are identical in functionality to the function
NB: |
mult |
When multiple rows in |
matchedOnly |
A logical. If TRUE, then non-overlaped input regions won't be output. If FALSE (default), all the rows are output |
The input genomic regions should contain 3 columns, 'chr', 'start', and 'end', and all other columns are copied to the output.
A data.table. The columns from x
and y
will have
suffix '.x' and '.y', respectively.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.