subtract_bed | R Documentation |
This function searches for intervals in y
that overlaps with x
, and
remove the overlapping portion of x
.
subtract_bed( x, y, min_overlap = 1, min_overlap_type = c("bp", "frac1", "frac2") )
x |
A |
y |
A |
min_overlap |
See |
min_overlap_type |
|
A GRanges
after subtracting y
from x
Manual page of bedtools subtract
:
https://bedtools.readthedocs.io/en/latest/content/tools/subtract.html
intersect_bed()
# Load BED tables tbl_x <- read_bed(system.file("extdata", "example_merge.bed", package = "bedtorch"), use_gr = FALSE) tbl_y <- read_bed(system.file("extdata", "example_intersect_y.bed", package = "bedtorch"), use_gr = FALSE) # Basic usage result <- subtract_bed(tbl_x, tbl_y) head(result) # Perform the mapping, requiring the minimum overlapping of 5bp result <- subtract_bed(tbl_x, tbl_y, min_overlap = 5, min_overlap_type = "bp") head(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.