Error with WGCNA-Cannot allocate memory

Dear All,
When running the package WGCNA on Rstudio Cloud to compute the SoftThreshold, following error appeared repeatedly:

pickSoftThreshold: will use block size 4384.
pickSoftThreshold: calculating connectivity for given powers...
..working on genes 1 through 4384 of 10203
Error in mcfork() :
unable to fork, possible reason: Cannot allocate memory

The documentation for WGCNA pickSoftThreshold say this about the blockSize parameter:

blockSize block size into which the calculation of connectivity should be broken up. If not
given, a suitable value will be calculated using function blockSize and printed
if verbose>0. If R runs into memory problems, decrease this value.

It really works! Thanks very much.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.