Description Usage Arguments Details Value Author(s) Examples
convert DNA methylation beta-value to inferred genotypes
1 2 | beta2genotype(betas, na.rm = TRUE, minSep = 0.25, minSize = 5,
centers = c(0.2, 0.5, 0.8), assayName = NULL)
|
betas |
beta matrix of probes possibly affected SNPs; if this is a SummarizedExperiment or a MultiAssayExperiment assayName must also be specified |
na.rm |
TRUE drop cpg for which no clustering was observed |
minSep |
minimal separation between clusters |
minSize |
size of smallest cluster (in percentage) |
centers |
center of clusters, defaults to 0.2, 0.5, 0.8. |
assayName |
the name of the assay to be used (see betas) |
Using kmeans unsupervised clustering to infer genotypes based on idea's from Leonard Schalkwyk; wateRmelon packages.
'minSep' and 'minSize' ensure good clusters are found. This function is similar to the gaphunter approach implemented in minfi.
matrix with genotypes
mvaniterson
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.