{WGCNA} R# Documentation

WGCNA


require(GCModeller);

#' WGCNA, which stands for Weighted Gene Co-expression Network Analysis, is a systems biology method used to describe the correlation patterns among genes across different samples. It is particularly useful for identifying modules of co-expressed genes, which can then be correlated with external sample traits such as clinical features or environmental conditions. Here's a brief overview of how WGCNA works and its applications:
imports "WGCNA" from "phenotype_kit";

WGCNA, which stands for Weighted Gene Co-expression Network Analysis, is a systems biology method used to describe the correlation patterns among genes across different samples. It is particularly useful for identifying modules of co-expressed genes, which can then be correlated with external sample traits such as clinical features or environmental conditions. Here's a brief overview of how WGCNA works and its applications:

Key Concepts:

  1. Co-expression Networks: Genes that are co-expressed across different conditions or samples are likely to be functionally related. WGCNA constructs a network where nodes represent genes, and edges represent the pairwise correlations between genes.

  2. Weighted Networks: Traditional correlation-based networks use Pearson or Spearman correlations, which are unweighted. WGCNA uses a weighted approach, often employing the soft thresholding of the correlation matrix to transform it into a weighted adjacency matrix. This weighting helps to amplify strong correlations and diminish weak ones, making the network more robust to noise.

  3. Modules: Groups of highly correlated genes are identified as modules. These modules are clusters of genes that have similar expression profiles across the samples and are often enriched for specific biological functions or pathways.

  4. Topological Overlap Matrix (TOM): WGCNA uses the TOM to measure the network connectivity of genes, which considers not only direct connections but also shared neighbors. This helps in identifying modules more accurately.

  5. Eigengenes: Each module can be represented by an eigengene, which is the first principal component of the gene expression profiles within the module. The eigengene serves as a representative of the module's expression pattern.

Steps in WGCNA:

  1. Data Preprocessing: This includes filtering out low-quality genes, normalizing expression data, and handling missing values.

  2. Network Construction: Calculate the pairwise correlation matrix and apply soft thresholding to create a weighted adjacency matrix.

  3. Module Detection: Use hierarchical clustering or other clustering methods on the TOM to identify modules of co-expressed genes.

  4. Module Eigengenes: Compute the eigengene for each module to represent its expression pattern.

  5. Relating Modules to External Traits: Correlate module eigengenes with external sample traits to identify which modules are associated with specific conditions or phenotypes.

  6. Functional Enrichment Analysis: Perform gene ontology (GO) or pathway enrichment analysis on the genes within each module to infer their biological functions.

Applications:

Tools and Software:

WGCNA is implemented in R, and there is a comprehensive package available for users to perform the analysis. The package provides functions for all steps of the analysis, from data preprocessing to module detection and trait correlation.

Limitations:

WGCNA is a powerful tool for exploring gene co-expression patterns and has been widely used in genomics research to uncover the underlying biology of complex traits and diseases.



.NET clr function exports
read.modules

load TOM module network nodes

read_clusters
read.module_cor
read.weight_matrix

read the TOM correlation network matrix file

read.adjacency
load_TOM_graph

load network graph from the WGCNA exportNetworkToCytoscape function exports

connectivity

export a dataframe of the node information with connectivity value

applyModuleColors
cor_network

Create correlation network based on WGCNA method

phenotype_matrix

[Document Index]