Description Usage Arguments Value
This function takes a hopefully correctly created WGCN network and, based on gene expression it modifies the module color assignment by using k-means heuristic. The description of the parameters show how the function works.
1 2 | applyKMeans(net, expr.data, beta = 6, n.iterations = 20,
net.type = "signed")
|
net |
must be a RDS object storing the network. Networks can be created using |
expr.data |
can be a full path file name or a data frame with genes in columns and samples in rows, giving the expression data used to construct the WGCNA network. The function expects genes in the column order to correspond to the order of nameColors of net.file param. |
beta |
The soft threshold parameter as it was used with WGCNA |
n.iterations |
A max number of iterations to run the k-means |
net.type |
it is used in the same sense as WGCNA |
The network, post-processed with a k-means heuristic including two additional properties
iterations The number of iterations that the algorithm actually made.
exchanged.genes The number of exchanged genes in the last iteration of the algorithm.
#'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.