Asa12138 / MetaNet

Network analysis for multi-omics
12 stars 2 forks source link

Error in c_net_build: Adjacency Matrix Should Be Symmetric for Undirected Graph #2

Open wyj139 opened 2 months ago

wyj139 commented 2 months ago

I encountered some issues when running the test code from the official website. I ran the following code:

data("otutab", package = "pcutils")

Inter-species correlation coefficients were calculated after transposition

totu <- t2(otutab[1:100, ])

cor <- c_net_calculate(totu) net <- c_net_build(cor) c_net_plot(net) However, I received the following error: Have not do p-value adjustment! use the p.value to build network. Error in graph.adjacency.dense(adjmatrix, mode = mode, weighted = weighted, : At vendor/cigraph/src/constructors/adjacency.c:538 : Adjacency matrix should be symmetric to produce an undirected graph. Invalid value

Asa12138 commented 2 months ago

please provide your sessionInfo()