classifyAndSortReads: Classify and sort reads into their classes

View source: R/EMbasic.R

classifyAndSortReadsR Documentation

Classify and sort reads into their classes

Description

Classify reads by their posterior probability of belonging to a specific class Then sort the classes by using similarity to the mean profile of previous classes. If the means of previous classes was not provided, hclust is used to cluster classes by their similarity.

Usage

classifyAndSortReads(dataMatrix, posteriorProb, previousClassMeans = NULL)

Arguments

dataMatrix

A matrix of methylation or bincount values (reads x position)

posteriorProb

posteriorProb: a matrix of probabilites of each sample belonging to a particular class (samples x class)

previousClassMeans

A matrix of the class means from a previous round of clustering

Value

Returns a matrix with the reads classified (__classX is appended to the read name), and the classes are sorted.


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