setViewsGRangesClass: Subclass a ViewsGRanges
Description
This is a convenience function for defining new subclasses of
ViewsGRanges
.Usage
setViewsGRangesClass(prefix, processViews, parameters = list(),
where = topenv(parent.frame()), ...)
Arguments
prefix
String prepended to GRanges and prefixed by View.
processViews
The function that implements the aggregation. It should accept
the Views
object, as well as any
parameters (other than weight
). parameters
List of parameter types.
where
The environment in which to define the subclass.
Value
- The generator object for the subclass.