The WGCNA R software package is a comprehensive collection of R functions for performing various aspects of weighted correlation network analysis. The package includes functions for network construction, module detection, gene selection, calculations of topological properties, data simulation, visualization, and interfacing with external software. Along with the R package we also present R software tutorials. While the methods development was motivated by gene expression data, the underlying data mining approach can be applied to a variety of different settings.
Note of caution: the newest versions of WGCNA is available from CRAN only for the current R version. For example, if your R version is 2.11.1 and the current R version on CRAN is 2.12.2, the automatic installation and update will not use the newest version of WGCNA. Please update your R to the newest version or use the manual download below.
The WGCNA package is now available from the Comprehensive R Archive Network (CRAN), the standard repository for R add-on packages. Currently, one of the required packages is only available from Bioconductor and needs to be installed separately. To install the required packages and WGCNA, simply type
This will install the WGCNA package and all necessary dependencies. The catch is that this only installs the newest version of WGCNA if your R version is also the newest (minor) version. Users using older versions of R will need to follow the manual download and installation instructions below.
Problems installing or using the package? Please see our list of frequently asked
questions. Your problem and the solution may already be posted there.
Please follow these steps only if the automatic package installation above does not work.
Prerequisites: The WGCNA package requires the following packages to be installed: stats, grDevices, dynamicTreeCut (1.20 or higher), cluster, utils, flashClust, reshape, and impute (from Bioconductor). If your system does not have them installed, the easiest way to install them is to issue the following command at the R prompt:
If you run an older version of R, the above may not install the flashClust package and the
newest version of the dynamicTreeCut
package. Should you encounter this problem, please manually download and install flashClust from this web page, and dynamicTreeCut from this web page.
R package download and installation: Package WGCNA_1.20 (last updated 2012/04/23) is available here in the following versions. Windows users please select the appropriate version based on the version of R you use; wrong version will not work.
The package version numbers follow the format packageName_major.minor-revision. Minor versions typically add or change some functionality; revisions typically contain bugfixes or minor enhancements.
Installation instructions:
Short installation instructions, including other required and recommended packages,
are available here.
Should you discover bugs (of which there are most likely plenty), please report them to Peter Langfelder.
Lastly, readers wishing to learn about the theory and published applications of WGCNA are invited to
visit the WGCNA
main page.