Question: taking intersection between 6 networks by graph.intersect
0
3.3 years ago by
Angel40
Berlin
Angel40 wrote:

hi,

I have 6 networks derived from different algorithms like below

      AT1G01060 AT1G01170 AT1G01260 AT1G01380

AT1G01060 0 0 0 0

AT1G01170 0 0 0 0

AT1G01260 0 0 0 0

AT1G01380 0 0 0 0

AT1G01490 0 0 0 0

AT1G01500 0 0 0 0

dim(mycountsaracne)

[1] 2857 2857

library(igraph)

g_sim <- graph.intersection(g_1, g_2, byname = "auto", keep.all.vertices = FALSE)

g_sim <- graph.intersection(g_sim,g_3, byname = "auto", keep.all.vertices = FALSE)

g_sim <- graph.intersection(g_sim,g_4, byname = "auto", keep.all.vertices = FALSE)

g_sim <- graph.intersection(g_sim,g_5, byname = "auto", keep.all.vertices = FALSE)

g_sim <- graph.intersection(g_sim,g_6, byname = "auto", keep.all.vertices = FALSE)

edge_araclr <- get.data.frame(g_araclr,what = "edges")

but I only could take intersection between the the third first networks and by adding the forth one theedge_araclr is empty

thank you

modified 3.3 years ago by Paul Shannon370 • written 3.3 years ago by Angel40
Answer: taking intersection between 6 networks by graph.intersect
2
3.3 years ago by
Paul Shannon370
Paul Shannon370 wrote:

Angel,

I'd be glad to help.  Can you provide a small, focused and reproducible example?

- Paul

thank you so much Paul for your kindness

I think I detected the problem

I should take adjacency and the graph.adjacency before getting each intersection separately

thanks again