WGCNA TOM file
0
0
Entering edit mode
7.0 years ago
syrttgump ▴ 50

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!

WGCNA • 3.9k views
ADD COMMENT
0
Entering edit mode

I found it. I can use as.matrix function. TOM data is a dist object.

ADD REPLY
0
Entering edit mode

If you are the same as this question in support.biodonctor post it there too please!

ADD REPLY

Login before adding your answer.

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