This is a test version of Biostars. For the public version, visit https://www.biostars.org.
error in WGCNA

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

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

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.

0 answers

No answers yet.

Log in to answer this question.