merge_bed | R Documentation |
This operation is similar to bedtools merge
.
merge_bed(x, max_dist = 0, operation = NULL)
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. |
operation |
Specify what operations should be applied to merged
intervals. Default is |
A GRanges
object containing merged intervals.
Manual page of bedtools merge
:
https://bedtools.readthedocs.io/en/latest/content/tools/merge.html
bedtbl <- read_bed(system.file("extdata", "example_merge.bed", package = "bedtorch")) merged <- merge_bed(bedtbl) head(merged) merged <- merge_bed(bedtbl, max_dist = 10, operation = list(score1 = list(on = "score", func = mean), score2 = list(on = "score", func = sum))) head(merged)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.