gintervals.force_range | R Documentation |
Limits intervals to chromosomal range.
gintervals.force_range(intervals = NULL, intervals.set.out = NULL)
intervals |
intervals |
intervals.set.out |
intervals set name where the function result is optionally outputted |
This function enforces the intervals to be within the chromosomal range [0, chrom length) by altering the intervals' boundaries. Intervals that lay entirely outside of the chromosomal range are eliminated. The new intervals are returned.
If 'intervals.set.out' is not 'NULL' the result is saved as an intervals set. Use this parameter if the result size exceeds the limits of the physical memory.
If 'intervals.set.out' is 'NULL' a data frame representing the intervals.
gintervals
, gintervals.2d
,
gintervals.canonic
gdb.init_examples()
intervs <- data.frame(
chrom = "chr1",
start = c(11000, -100, 10000, 10500),
end = c(12000, 200, 13000000, 10600)
)
gintervals.force_range(intervs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.