getFullMatrix: Get full matrix of all positions in a window even if no C

View source: R/EMmultigene.R

getFullMatrixR Documentation

Get full matrix of all positions in a window even if no C

Description

In order to compare different promoters, we need to create a padded matrix with NAs in positions in between Cs.

Usage

getFullMatrix(dataMatrix, winSize = 500, anchorPoint = "middle")

Arguments

dataMatrix

A matrix of methylation values (reads x position) with positions being relative coordinates to an anchor point

winSize

The size (in bp) of the window containing the matrices

anchorPoint

One of "middle" or "start": the position from which numbering starts for the positions in the dataMatrix

Value

A padded methylation matrix


jsemple19/EMclassifieR documentation built on Aug. 12, 2022, 2:57 p.m.