Description Usage Arguments Value Examples
View source: R/co_methylation_step1.R
The first step of the co-methylation analysis, including kmeans analysis to group pCSM loci into three clusters, i.e. hypo/mid/hyper-methylation cluster, and, for each kmeans cluster, the network topology analysis function in WGCNA package is called to pick the soft-thresholding power.
1 | co_methylation_step1(csm_ml_matrix)
|
csm_ml_matrix |
methylation profile of pCSM loci in each sample |
A list the following two components:
profile |
the methylation profile of pCSM loci |
modult_id |
the label tells that which co-methylation module the pCSM loci belong to |
1 2 3 4 | library("coMethy")
file=paste(system.file(package="coMethy"),"extdata/co_methy.test.data.txt",sep='/')
meth_data <- read.table(file,sep='\t',header=T,row.names=1)
kmeans_cluster <- co_methylation_step1(meth_data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.