%_% | R Documentation |
BiocGenerics::setdiff
shortcut (strand agnostic)Shortcut for BiocGenerics::setdiff
gr1 <- GRanges(1, IRanges(10,20), strand="+") gr2 <- GRanges(1, IRanges(15,25), strand="-") gr3 <- "1:1-15" gr1 gr1
More robust and faster implementation of GenomicRanges::setdiff()
Robust to common edge cases of setdiff(gr1, gr2) where gr2 ranges are contained inside gr1's (yieldings setdiffs yield two output ranges for some of the input gr1 intervals.
x %_% ...
gr.setdiff(query, subject, ignore.strand = TRUE, by = NULL, ...)
x |
|
... |
arguments to be passed to gr.findoverlaps |
query |
|
subject |
|
ignore.strand |
boolean Flag to ignore strands. Refer to 'gr.findoverlaps()'. (default = TRUE) |
by |
vector Meta-data column to consider when performing overlaps. Refer to 'gr.findoverlaps()' documentation (default = NULL) |
GRanges
representing setdiff of input interval
Returns indices of query in subject. If none found, NA
Marcin Imielinski
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.