The editor has been updated to markdown! Please see more info at: Tutorial: Updated Support Site Editor

Question: problem for constructing Topological Overlap Matrix (TOM) in WGCNA Algorithm
gravatar for modarzi
7 months ago by
modarzi10 wrote:


I run WGCNA for my study.Now, I want to import my network in Cytoscape for visualization. based on WGCNA tutorial, for that purpose I have to run below code:

    # select modules modules = c("blue","brown") 
    # Select module probes 
    # Select the corresponding Topological Overlap 
     modTOM = TOM[inModule, inModule] 
    dimnames(modTOM) = list(modProbes, modProbes) 
    # Export the network into edge and node list files for Cytoscape 
    cyt = exportNetworkToCytoscape(modTOM, 
    edgeFile=paste("CytoEdge",paste(modules,collapse="-"),".txt",sep=""), nodeFile=paste("CytoNode",paste(modules,collapse="-"),".txt",sep=""), 
    weighted = TRUE, threshold = 0.02,nodeNames=modProbes, 
    altNodeNames = modGenes, nodeAttr = moduleColorsFemale[inModule])

when I want to run:

modTOM = TOM[inModule, inModule]  

I got below error:

Error: object 'TOM' not found.

So, my question is what is TOM.should I calculate TOM via below code:

> TOM = TOMsimilarityFromExpr(datExpr, power=7)
I appreciate if anybody share his/her comment with me.


Best Regrds,


ADD COMMENTlink modified 7 months ago • written 7 months ago by modarzi10
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 441 users visited in the last hour