createGCN: Gene Coexpression Network Creation

Description Usage Arguments Value

Description

This function creates a WGCN network using WGCNA with the additonal step described in https://doi.org/10.1186/s12918-017-0420-6.

Usage

1
2
3
createGCN(expr.data, net.type = "signed", min.cluster.size = 30,
  n.iterations = 30, save.adj.filename = NULL,
  save.tom.filename = NULL)

Arguments

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.

net.type

it is used in the same sense as WGCNA.

min.cluster.size

The minimum number of genes used during the dynamic tree cut phase en WGCNA pipeline.

n.iterations

A max number of iterations to run the k-means algorithm.

save.adj.filename

The name of the file in which to save the adjacency matrix generated by WGCNA. If you do not want to save this matrix does just leave this parameter with its default value.

save.tom.filename

The name of the file in which to save the TOM matrix generated by WGCNA. If you do not want to save this matrix does just leave this parameter with its default value.

Value

The network, post-processed with a k-means heuristic. The object returned has the following properties:

  1. moduleColors a named vector whose elements are colors as assigned by WGCNA. The names() function on this propertie should return the gene names for each vector's element. Notice that the order of genes in moduleColors is the same as they appear in columns in expr.data parameter's object.

  2. moduleLabels contains a list with the gene names in the same order as in moduleColors.

  3. MEs is a matrix with a column for each module and a row for each sample. It contains the module eigengenes.

  4. MM contains a list with the module membership of each gene in the same order as in moduleColors.

  5. beta The soft threshold parameter used to create the adjacency matrix in WGCNA.

  6. type it is used in the same sense as WGCNA.

  7. iterations The number of iterations that the algorithm actually made.

  8. exchanged.genes The number of exchanged genes in the last iteration of the algorithm.

#'


drlaguna/GPCNA documentation built on Sept. 22, 2020, 11:47 p.m.