Learn R Programming

MutableRanges (version 0.6.2)

FilterGRanges-class: FilterGRanges objects

Description

A FilterGRanges is a virtual subclass of ProxyGRanges that filters the data from some delegate GenomicRanges. The actual filtering is implemented by a subclass. The easiest way to define a subclass is to call the setFilterGRangesClass function, described here.

Usage

setFilterGRangesClass(prefix, filter, where = topenv(parent.frame()), ...)

Arguments

prefix
The prefix for the name of the class, prepended to FilterGRanges
filter
Function that becomes the filter method. Takes a single argument: the GenomicRanges to filter. The function should return a logical vector indicating which records should pass the filter.
where
The environment in which to define the class.
...
Additional arguments passed to setProxyGRangesClass

See Also

setProxyGRangesClass, which this function wraps.