prepareWindows: Make window matrix

View source: R/EMmultigene.R

prepareWindowsR Documentation

Make window matrix

Description

Make window matrix

Usage

prepareWindows(fullMatrix, binSize = 20, stepSize = 1)

Arguments

fullMatrix

A matrix containing methylation values for a full region of the genome using coordinates relative to an anchor point, and includes non-Cs that are marked by NaN. dataMatrix [i,j] is the methylation value of sample i at position j.

binSize

Size of window (in bp) in which to average results.

stepSize

size of step by which to slide the window forward.

Value

Matrix with average fraction methylation within windows. Normalised by the number of informative postions. NaN indicates a window with no methylatable positions. NA indicates a window with no informative methylation call.


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