Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in toVisNetworkData(g) : igraph must be a igraph object #46

Open
nbutyrate opened this issue Jun 13, 2020 · 4 comments
Open

Error in toVisNetworkData(g) : igraph must be a igraph object #46

nbutyrate opened this issue Jun 13, 2020 · 4 comments

Comments

@nbutyrate
Copy link

Hi

i am trying to run "co_occurence_network". But there id no graph creation i.e.

g <- co_occr$net$graph
NULL

following is the workflow

co_occr <- co_occurence_network(physeq, grouping_column = "AllPos", rhos = c("-0.5", "0.5"),

  • method = "cor", qval_threshold = 0.05, select.condition = "Yes", scale.vertex.size = 4, 
    
  • scale.edge.width = 10)
    
g <- co_occr$net$graph

data <- toVisNetworkData(g)
Error in toVisNetworkData(g) : igraph must be a igraph object
g
NULL
co_occr
$net
$net$edgelists
pairs trt taxa1 taxa2
1 Lichtheimia Fusarium Yes Lichtheimia Fusarium
2 Aspergillus Cystofilobasidium Yes Aspergillus Cystofilobasidium

@svenyos
Copy link

svenyos commented Aug 25, 2020

I have the same problem. The graph object in the output from co_occurence_network() is NULL

@cherrypashka
Copy link

Hi!
I have the same problem, even on pitlatrine data from example.
data(pitlatrine)
physeq <- taxa_level(pitlatrine, "Phylum")
co_occr <- co_occurence_network(physeq, grouping_column = "Country", rhos = 0.35, scale.vertex.size=3, scale.edge.width=15)
g <- co_occr$net$graph
print(g)
NULL
data <- toVisNetworkData(g)
visNetwork(nodes = data$nodes,
edges = data$edges,
width = 900,
height = 900) %>% visOptions(highlightNearest = TRUE, nodesIdSelection = TRUE)

Error in toVisNetworkData(g) : igraph must be a igraph object

@passdan
Copy link

passdan commented Mar 4, 2021

From the future, also having the same issue. Wondering if anyone else managed to solve?

@gdanetzk
Copy link

gdanetzk commented May 1, 2022

Even further in the future, same issue. Anyone solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants