Learn R Programming

MutableRanges (version 0.6.2)

RangeQuery-class: RangeQuery objects

Description

A RangeQuery object represents a query to a tabular database of ranges. It consists of a set of ranges and a set of column names. The result returned from the query should consist of the features that overlap the query ranges, with the selected columns. Presumably it could be extended to represent more complex queries, such as the criteria supported by subsetByOverlaps. One example using this object is as the i argument to the [ and [<- methods on GenomicRanges objects.

Arguments

Subsetting GenomicRanges

One can pass a RangeQuery object to [ or code{[<-} to extract or replace ranges according to the query. See the examples.

See Also

DynamicGRanges, which uses RangeQuery objects to pass requests down to its underlying data source.

Examples

Run this code
example("GRanges", "GenomicRanges")
query <- RangeQuery(GRanges("chr1", IRanges(1, 10)), "score")
gr[query]

Run the code above in your browser using DataLab