Off topic:WGCNA: error in numbers2color
0
1
Entering edit mode
4.9 years ago
chimerajit ▴ 10

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

WGCNATUTORIAL

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)

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

WGCNA R • 4.1k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 2138 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