Entering edit mode
6.2 years ago
swap
•
0
Hi, I have data like this
column-1 Column-2 Similarity_dist
chemical-1 chemical-2 0.6
chemical-1 chemical-3 0.1
chemical-1 chemical-4 0.7
chemical-1 chemical-5 0.3
chemical-2 chemical-1 0.05
chemical-2 chemical-3 0.65
chemical-2 chemical-4 0.75
chemical-2 chemical-5 0.4
. . such hundered rows. Now I filtered them with similarity cutoff of 0.5, and my data looks like
column-1 Column-2 Similarity_dist
chemical-1 chemical-2 0.6
chemical-1 chemical-4 0.7
chemical-2 chemical-3 0.65
chemical-2 chemical-4 0.75
. .
I want to find interaction network among these chemicals. Does anyone knows method in R by which I can use chemicals as nodes and distances as edges and then form network? Any other suggestion? Any code?