getAllClassMeansMatrix: Collect all the class means from allClassMeans object

View source: R/classifyByKnownClasses.R

getAllClassMeansMatrixR Documentation

Collect all the class means from allClassMeans object

Description

AllClassMeans is a list of tables with the position in the list corresponding to the total number of classes used in clustering and the table giving the methylation frequency at different positions for each class and each replicate. This function collects all the class mean profiles for clustering into any k clusters in k_range, and returns a matrix with cluster-name-number x position

Usage

getAllClassMeansMatrix(
  allClassMeans,
  k_range = 4:8,
  xRange = c(-250, 250),
  name = ""
)

Arguments

allClassMeans

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

k_range

An vector of the range of total number of classes used in each clustering

xRange

A vector of the first and last coordinates of the region to plot (default is c(-250,250))

name

Name of data set that will be added to the start of the row names.

Value

A matrix of all the class mean profiles from the clustering into all the k clusters in k_range


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