gintervals.rbind | R Documentation |
Combines several sets of intervals into one set.
gintervals.rbind(..., intervals.set.out = NULL)
... |
intervals sets to combine |
intervals.set.out |
intervals set name where the function result is optionally outputted |
intervals |
intervals set |
This function combines several intervals sets into one set. It works in a similar manner as 'rbind' yet it is faster. Also it supports intervals sets that are stored in files including the big intervals sets.
If 'intervals.set.out' is not 'NULL' the result is saved as an intervals set. If the format of the output intervals is set to be "big" (determined implicitly based on the result size and options), the order of the resulted intervals is altered as they are sorted by chromosome (or chromosomes pair - for 2D).
If 'intervals.set.out' is 'NULL' a data frame combining intervals sets.
gintervals
, gintervals.2d
,
gintervals.canonic
gdb.init_examples()
intervs1 <- gextract("sparse_track", gintervals(c(1, 2), 1000, 4000))
intervs2 <- gextract("sparse_track", gintervals(c(2, "X"), 2000, 5000))
gintervals.save("testintervs", intervs2)
gintervals.rbind(intervs1, "testintervs")
gintervals.rm("testintervs", force = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.