Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

RefFreeCellMixInitialize

Initialize Reference-Free Cell Mixture Projection


Description

Initializes the methylome matrix "Mu" for RefFreeCellMix

Usage

RefFreeCellMixInitialize(Y,K=2,Y.Distance=NULL, Y.Cluster=NULL, 
    largeOK=FALSE, dist.method = "euclidean", ...)

Arguments

Y

Matrix (m CpGs x n Subjects) of DNA methylation beta values

K

Number of cell types

Y.Distance

Distance matrix (object of class "dist") to use for clustering.

Y.Cluster

Hiearchical clustering object (from hclust function)

largeOK

OK to calculate distance matrix for large number of subjects? (See details.)

dist.method

Method for calculating distance matrix

...

Additional parameters for hclust function

Details

Initializes the methylome matrix "Mu" for RefFreeCellMix by computing the mean methylation (from Y) over K clusters of Y, determined by the Y.Cluster object. If Y.Cluster object does not exist, it will be created from Y.Distance (using additional clustering parameters if supplied). If Y.Distance does not exist, it will be created from t(Y). As a protection against attempting to fit a very large distance matrix, the program will stop if the number of columns of Y is > 2500, unless largeOK is explicitly set to TRUE.

Value

An m x K matrix of mean methylation values.

Author(s)

E. Andres Houseman

See Also


RefFreeEWAS

EWAS using Reference-Free DNA Methylation Mixture Deconvolution

v2.2
GPL (>= 2)
Authors
E. Andres Houseman, Sc.D.
Initial release
2018-12-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.