Learn R Programming

misha (version 4.2.9)

gintervals.rbind: Combines several sets of intervals

Description

Combines several sets of intervals into one set.

Usage

gintervals.rbind(..., intervals.set.out = NULL)

Value

If 'intervals.set.out' is 'NULL' a data frame combining intervals sets.

Arguments

...

intervals sets to combine

intervals.set.out

intervals set name where the function result is optionally outputted

intervals

intervals set

Details

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).

See Also

gintervals, gintervals.2d, gintervals.canonic

Examples

Run this code
# \dontshow{
options(gmax.processes = 2)
# }

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)

Run the code above in your browser using DataLab