cluster_bed | R Documentation |
This operation is similar to bedtools cluster
. It reports each set of
overlapping or “book-ended” features in an interval file.
cluster_bed(x, max_dist = 0)
x |
A |
max_dist |
Maximum distance between features allowed for features to be merged. Default is 0. That is, overlapping and/or book-ended features are merged. |
A GRanges
. Compared
Manual page of bedtools cluster
:
https://bedtools.readthedocs.io/en/latest/content/tools/cluster.html
merge_bed()
tbl <- read_bed(system.file("extdata", "example_merge.bed", package = "bedtorch"), use_gr = FALSE) # Basic usage clustered <- cluster_bed(tbl) head(clustered) # Change the maximum distance allowed clustered <- cluster_bed(tbl, max_dist = 10) head(clustered)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.