WGCNA: error in numbers2color
I am using R 3.6 RStudio: 1.2.1335, Windows: 7
Hi I am trying the tutorial of WGCNA using the tutorial data and the tutorial
All the steps working well and I understand the concept except the last few
traitColors = numbers2colors(datTraits, signed = FALSE)'
when I am doing this step I am getting error of
*Error in numbers2colors(datTraits, signed = FALSE) :
'x' must be numeric. For a factor, please use as.numeric(x) in the call*
If I do 'head(datTraits)
I understand that it is asking a numeric data which is not there if I select a single column e.g datTraits$totalFat it will work well but how I bring all the column together as shown in that tutorial?
please help
• 4,515 views
•
link
0 answers
No answers yet.
Log in to answer this question.
To which tutorial are you referring? I think that you should check the links in your post.
In looks like the column "comments" its not numeric, eliminate that one and try it again.
Also look at the help("numbers2colors").
Hello,
whether this problem is solved, I am also facing same problem can ou guide me with this?
Hey friend, can you confirm that you have searched exhaustively for the solution? Can you share the code that you used?
Closed. Please search for this error via a search engine. It is a very common error.