gravatar for AJ

2 hours ago by

USA

Im trying to get the genes that contribute to the 1st PC, i.e the Eigengene. For this im trying the following function:

www.rdocumentation.org/packages/WGCNA/versions/1.68/topics/intramodularConnectivity

How would I get the adjacency matrix for this function?

use of the following syntax

intramodularConnectivity.fromExpr(datExpr, colors, 
          corFnc = "cor", corOptions = "use = 'p'",
          weights = NULL,
          distFnc = "dist", distOptions = "method = 'euclidean'",
          networkType = "unsigned", power = if (networkType=="distance") 1 else 6,
          scaleByMax = FALSE,
          ignoreColors = if (is.numeric(colors)) 0 else "grey",
          getWholeNetworkConnectivity = TRUE)

keeps giving me the error:

"Error in intramodularConnectivity.fromExpr(datExpr = datModule_black, :
Number of columns (genes) in 'datExpr' and length of 'colors' differ."

link

modified 2 hours ago

written
2 hours ago
by

AJ20



Source link