Learn R Programming

diffHic (version 1.4.2)

DIList-wrappers: Statistical wrappers for DIList objects

Description

Convenience wrappers for statistical routines operating on DIList objects.

NOTE: These methods are all deprecated, along with the DIList class itself. Users can apply the same methods to InteractionSet objects.

Usage

"normOffsets"(object, lib.sizes, ...) "normalize"(object, lib.sizes, ...) # deprecated, use normOffsets "asDGEList"(object, lib.sizes, ...)

Arguments

object
a DIList object, like that produced by squareCounts
lib.sizes
an (optional) integer vector of library sizes
...
other arguments to be passed to the function being wrapped

Value

For normOffsets, either a numeric matrix or vector is returned; see normOffsets,matrix-method.For asDGEList, a DGEList object is returned.

Details

Counts are extracted from the matrix in the DIList object. If not specified in lib.sizes, library sizes are taken from the totals field in the column data of object. Warnings will be generated if this field is not present.

In the normOffsets method, the extracted counts and library sizes are supplied to normOffsets,matrix-method. Similarly, the asDGEList method wraps the DGEList constructor. In both cases, any arguments in ... are also passed to the wrapped functions.