How to load WGCNA TOM file?
0
1
Entering edit mode
syrttgump ▴ 20
@syrttgump-7367
Last seen 3.7 years ago
United States

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 connectivity • 3.0k views
ADD COMMENT
1
Entering edit mode

 

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

ADD REPLY

Login before adding your answer.

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