Learn R Programming

MutableRanges (version 0.6.2)

setCoverageGRangesClass: Define CoverageGRanges Subclasses

Description

A utility for defining derivatives of CoverageGRanges.

Usage

setCoverageGRangesClass(prefix, processCoverage,
                        arity = c("auto", "unary", "binary", "multinary"),
                        where = topenv(parent.frame()), ...)

Arguments

prefix
Prefix to prepend to CoverageGRanges for the class name.
processCoverage
Function that takes an Rle and any parameters as its arguments and returns something coercible to GenomicRanges.
arity
The arity of the operation, see setProxyGRangesClass, with the auto guess coming from the formal arguments of processCoverage.
where
The environment in which to define the class.
...

Value

  • The generator object for the new derivative of CoverageGRanges.

code

setProxyGRangesClass