This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How two merge two different interactome networks?

There are two different interaction networks. Using union method and/or intersection method in igraph package, can anyone suggest the possible ways to merge both the networks? Suggestions with codes will be of great help.

Format of the two interaction files for example: Interaction file 1 (each row represents an interaction) Node A Node B Gene a Gene b Gene a Gene c Gene b Gene d

Another interaction file 1 (of similar format).

network analysis network merge

1 answer

Assuming you are using R and have created an igraph object for each network, igraph includes union() and intersection() function for merging networks. You can check the documentation here and here. Hope you find this helpful!

Log in to answer this question.