Description Usage Arguments Author(s) References Examples
Helps if you don't want to use sort region on a huge dataset
1 2 3 4 5 6 7 8 | order.region(
x,
method = "lex",
check.zero.based = TRUE,
check.chr = TRUE,
check.valid = TRUE,
check.merge = TRUE
)
|
x |
index or bed style data.frame |
method |
natural or lexicographical (lex) |
check.zero.based |
should 0 based coordinates be checked |
check.chr |
should chr prefix be checked |
check.valid |
check if region is valid |
check.merge |
check if region is sorted and merged |
Daryl Waggott
http://bedtools.readthedocs.org/en/latest/content/tools/intersect.html
1 2 3 4 5 6 7 8 9 10 11 | if (check.binary("bedtools")) {
index <- get.example.regions();
a <- index[[1]];
a <- bedr(engine = "bedtools", input = list(i = a), method = "sort", params = "");
a.order <- order.region(a)
b <- a[a.order];
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.