error in WGCNA
0
0
Entering edit mode
7.1 years ago

Dear all,

I am trying to use WGCNA to find consensus modules between two species.

But when I want to build the adjacency matrix I get the following error"

 library(flashClust)
> load(file="Consensus-dataInput.RData")
> nSets = checkSets(multiExpr)$nSets
> softPower1 = 6;
> softPower2 = 6;
> adjacencies = array(0, dim = c(nSets, nGenes, nGenes));
> set=1
> adjacencies[set, , ] = adjacency(multiExpr[[set]]$data, power = softPower1,type= "signed hybrid");
**Error in cor(datExpr, use = "p") : 
  REAL() can only be applied to a 'numeric', not a 'character'**

Can anybody guide me what should Ido to solve this problem?

Thank u in advance

Nazanin

WGCNA adjacency Error • 2.8k views
ADD COMMENT
1
Entering edit mode

Are there non-numeric entries in multiExpr? For example gene IDs?

ADD REPLY
0
Entering edit mode

Hi

Yes. there are gene symbols in multiExpr

ADD REPLY
0
Entering edit mode

Well there's your problem.

ADD REPLY
0
Entering edit mode

Wouter is correct. Move your gene symbols and sample names into the rownames or colnames respectively (depending on the orientation of multiexpr) and try again.

ADD REPLY

Login before adding your answer.

Traffic: 1585 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