Help with WGCNA pickSoftThreshold error
1
2
Entering edit mode
10.0 years ago

Hello, I'm running a GCRMA normalized data set through WGCNA. I've carefully followed the tutorial, including removal of NAs and outlier samples. When I ran the pickSoftThreshold function I received the following error:

> sft = pickSoftThreshold(datExpr, powerVector = powers, verbose = 5)
pickSoftThreshold: will use block size 17772.
 pickSoftThreshold: calculating connectivity for given powers...
   ..working on genes 1 through 17772 of 17772
Error in datk[c(startG:endG), ] = foreach(t = actualThreads, .combine = rbind) %dopar%  :
  number of items to replace is not a multiple of replacement length

I'm fairly new to R, so am not sure how to diagnose this problem. I have used WGCNA on other datasets in the past without any problems, so this is new to me. What to do, gurus? Thanks!

WGCNA R • 13k views
ADD COMMENT
1
Entering edit mode

Apologies. I opened this in R rather than R studio after enabling multi-threading, and it ran without incident.

ADD REPLY
0
Entering edit mode

I have no idea why that would work, but it worked for me, too. Good thinking :)

ADD REPLY
15
Entering edit mode
7.1 years ago
quanta123 ▴ 150

Please use allowWGCNAThreads() replace enableWGCNAThreads() in RStudio.

ADD COMMENT
0
Entering edit mode

Saved me here. That would have taken me a long time to figure out.

ADD REPLY

Login before adding your answer.

Traffic: 2678 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6