getClassMeansMatrix: Get a matrix of class mean profiles from allCalssMeans table

View source: R/classifyByKnownClasses.R

getClassMeansMatrixR Documentation

Get a matrix of class mean profiles from allCalssMeans table

Description

allClassMeans is a list of tables (one table for each number of classes). The function extracts one such table and converts it to a matrix with each row being a particular class and each column being a genomic position (in coordinates relative to an anchor point, like a TSS).

Usage

getClassMeansMatrix(allClassMeans, numClasses)

Arguments

allClassMeans

A list by number of classes of tables containing positions, fraction methylation, and class ID for replicate EM runs.

numClasses

An integer indicating the total number of classes being used

Value

A matrix with classID x position containing fraction methylation values for each class at each position


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