coverage_2_matrix: Convert coverages to matrix

Description Usage Arguments Value Examples

Description

Convert coverages to matrix

Usage

1
coverage_2_matrix(coverage, gr, ncol = 100)

Arguments

coverage

A single coverage obtained with the import_bedgraphs function.

gr

A GRanges corresponding to the regions to subset the coverages. All the regions must have the same width (see ?GenomicRanges::resize to resize regions).

ncol

The number of columns in the result matrix. (Default = 100).

Value

A matrix with ncol columns and length(gr) rows.

Examples

1
2
3
4
5

CharlesJB/hmwrap documentation built on May 26, 2019, 6:42 a.m.