runEM | R Documentation |
Run EM iteratively to convergence
runEM( dataMatrix, numClasses, convergenceError = 1e-06, maxIterations = 100, printProgress = FALSE )
dataMatrix |
A matrix of methylation or bincount values (reads x position) |
numClasses |
An integer indicating the number of classes to learn |
convergenceError |
An float indicating the convergence threshold for stopping iteration |
maxIterations |
An integer indicating the max number of iterations to perform even if the algorithm has not converged |
printProgress |
Print messages showing progress of convergence |
list of three items: 1) classes: a matrix with optimised classes (class x position) 2) priorProb: a vector with the prior probabilities of each class 3) posteriorProb: a matrix of probabilites of each sample belonging to a particular class (samples x class)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.