ChiLiubio / meconetcomp

Compare microbial co-occurrence networks based on the trans_network class of microeco package
GNU General Public License v3.0
4 stars 0 forks source link

The result of node comp () is inconsistent with the sample data #3

Open lizhaojie1025 opened 11 months ago

lizhaojie1025 commented 11 months ago

Hi, thank you very much for creating this package that allows comparison of multiple networks. I'm running this package and I'm having this problem below. tmp <- node_comp(soil_amp_network,property = "name") tmp1 <- trans_venn$new(tmp,ratio = "numratio") g1 <- tmp1$plot_venn(fill_color = FALSE)" g1 The plot shown does not match the one in fig2(A) of your article in imeta. ! image. Thanks zhaojie

ChiLiubio commented 11 months ago

Hi. As an example, the fig2a shows the edges intersection, coming from the funciton edge_comp, not the node_comp function. They are similar in terms of the operations.

tmp <- edge_comp(soil_amp_network)
tmp1 <- trans_venn$new(tmp, ratio = "numratio")
tmp1$plot_venn(fill_color = FALSE)

Best, Chi

lizhaojie1025 commented 11 months ago

Hi. I ran dge_comp,it does work as you said. I wanted to get the node intersection for each network, I ran the following,

tmp <- node_comp(soil_amp_network)
tmp1 <- trans_venn$new(tmp,ratio = "numratio") 
g1 <- tmp1$plot_venn(fill_colour = FALSE)"

The unique node for both the TW and CW groups is 0. This result is clearly incorrect. thanks zhaojie

ChiLiubio commented 11 months ago

Hi zhaojie, Yes. It is a bug. The package has been updated in github. Please reinstall it from github and try again. The cran version will be released in the next days. Thanks very much!

Best, Chi