WGCNA TOM file
Hi All,
I am using WGCNA build a coexpression network. Here is the thing: I use blockwiseModules to build network, and saved TOM to a file. Then I want to calculate connectivity of genes by using the TOM data. I load TOM file into R workspace, it is a large dist class object. How can I transfer it into a matrix that both rows and columns are genes and values are the weights of gene pairs? So that I can use rowSum of colSum to calculate connectivity of each gene. Thanks!
• 4,526 views
•
link
0 answers
No answers yet.
Log in to answer this question.
I found it. I can use as.matrix function. TOM data is a dist object.
If you are the same as this question in support.biodonctor post it there too please!