Hello:

I have a weighted network. It's format is shown below. I imported the
network as a weighted network and calculated the degrees. But I found the
degrees are not based on the weights (I.e., the number of interaction
partners instead).
I used the following codes in R. Is there anything wrong? thanks

read.graph(file=file_network_MR,format="ncol",weights="yes")

de_MR=degree(network_MR)



#the network file

A1BG    ANXA7   16530.90
A1BG    TK1     13310.48
A1BG    SNCA    11476.88
A1BG    CDKN1A  9057.41
A1BG    GRB7    8774.95
A1CF    SYNCRIP 14477.77
A1CF    APOBEC1 315.91

Thanks

Best
Quanwei


_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to