WGCNA package FAQ

Peter Langfelder1 and Steve Horvath1,2



1 Dept. of Human Genetics, UC Los Ageles, 2 Dept. of Biostatistics, UC Los Ageles

Peter (dot) Langfelder (at) gmail (dot) com, SHorvath (at) mednet (dot) ucla (dot) edu

This page provides a list of Frequently Asked Questions and our frequently given answers. Please read these before emailing us about a problem. This FAQ was last updated on May 18, 2009.

Installation problems

  1. R 2.10 complains about package being built under R-2.7.

    The authors of R apparently changed the way help files are compiled. We will do our best catch up, but in the meantime please ignore the error. The package is usable and even help seems to work alright as far as we can tell.
  2. R complains about wrong package type.

    A common cause of this error is that when the user saves the file, the operating system will uncompress or unzip it. Typically, this means the .zip or .tar.gz bundle will be decompressed and extracted, which renders the file unusable for R. For example, Mac OS X seems to automatically decompress the gzipped file. The solution is to save the file to disk as is, without letting any program such as WinZip touch it. R will decompress and unpack the package itself. On a Mac, you may have to open a terminal, change to the directory where you saved the file, and type

    gzip WGCNA_*.tar

  3. The package won't install on my Mac.

    Please look at the installation instructions and make sure you have the required XCode tools installed.
  4. I have Xcode tools installed and the package still won't install.

    Some users have reported that a package names gfortran.pkg is also necessary. This may be a new feature of R as of version 2.9.0.


Runtime errors

  1. I keep getting a malloc error.

    Several Mac users have reported malloc errors such as

    R(9073,0xa013dfa0) malloc: *** mmap(size=95006720) failed (error code=12)
    *** error: can't allocate region
    *** set a breakpoint in malloc_error_break to debug


    From all we know this is a spurious and harmless message, and can be ignored. For all C- and gcc-savvy Mac users out there, if you find a cause and solution, please let us know.
  2. The code crashes with a mysterious error message.

    Such crashes are often the result of unusual data that cause a condition we have not thought about, or subtle abnormalities in the data. Here are a few situations in which we have seen our code crash:


Errors while running tutorial examples

  1. I get an error running your tutorials exactly as described.

    Please send Peter Langfelder an email. It is certainly possible that the tutorials still contain undiscovered bugs, or that our changes to the package or changes to R have broken the offending tutorial.
  2. The tutorials run fine on example data, but produce an error on my own data.

    The most likely culprit is the size of your data set. In particular, Sections 2.a of Tutorials I and II assume that you have less than 5000 probes in your data set. If you have more than that, please look at the corresponding section 2.c (Dealing with large data sets). Modify the argument maxBlockSize to suit the capabilities of your computer; the details are described in Section 2.c of the corresponding tutorial.

Version compatibility issues

  1. I installed a newer WGCNA version and now I'm getting different results!

    As we continue to develop and improve the methods contained in this package, from time to time the default calculations methods and arguments may change. We do our best to preserve options that will allow the user to replicate old results using a new package version, and we document the changes in the changelog. If you cannot figure out the necessary arguments to reproduce an old result, please send Peter Langfelder an email.