PyWGCNA is a Python library designed to do weighted correlation network analysis (WGCNA). It can be used for finding clusters (modules) of highly correlated genes, for summarizing such clusters using the module eigengene, for relating modules to one another and to external sample traits (using eigengene network methodology), and for calculating module membership measures. Users can also compare WGCNA networks from different datasets, or to external gene lists, to assess the conservation or functional enrichment of each module.
PyWGCNA's full documentation can be found here
To install PyWGCNA, Python version 3.10 or greater is required.
To install the most recent release, run
pip install PyWGCNA
- Git clone the PyWGCNA repository, cd to the
PyWGCNA
directory, and run
pip install .
- Data input, cleaning and pre-processing: How to format, clean and preprocess your input data for PyWGCNA
- Quick Start: How to load data into PyWGCNA, find modules, and analyze them
- PyWGCNA object: How to interact with PyWGCNA objects and some parameters we have them in the object and how you can access them
- Compare two PyWGCNA objects: How to compare two PyWGCNA objects
- Compare more than two PyWGCNA objects: How to compare three PyWGCNA objects
- Compare PyWGCNA objects to gene marker list: How to compare PyWGCNA objects to external gene lists (here shown on marker genes from single-cell data)
- Functional enrichment analysis : How to perform functional enrichment analysis using databases such as GO, KEGG, and REACTOME in PyWGCNA object
- Visualize modules as network: How to visualize PyWGCNA objects as a network
- Recover Protein-Protein Interaction: How to find and plot PPI using STRING database.
If you are unfamiliar with R refrence WGCNA, we suggest reading the original WGCNA publication:
- WGCNA: an R package for weighted correlation network analysis
- Describe various features of the WGCNA package for the R programming language
PyWGCNA is now online in Bioinformatics. Please cite our paper when using PyWGCNA:
Narges Rezaie and others, PyWGCNA: A Python package for weighted gene co-expression network analysis, Bioinformatics, 2023; https://doi.org/10.1093/bioinformatics/btad415