zpneal / backbone

R backbone package - Extract the backbone from weighted and unweighted networks
https://www.rbackbone.net
40 stars 8 forks source link

fdsm only works with matrix? #17

Closed deklanw closed 4 years ago

deklanw commented 4 years ago
print(class(bg))
print(is_bipartite(bg))
[1] "igraph"
[1] TRUE
fdsm <- fdsm(bg, trials = 100)
fdsm_bb <- backbone.extract(fdsm, signed = FALSE, alpha = 0.05)
Error in fdsm(bg, trials = 100): input bipartite data must be a matrix
Traceback:

1. fdsm(bg, trials = 100)
2. stop("input bipartite data must be a matrix")

But, docs say

graph: Bipartite graph object of class matrix, sparse matrix, igraph, edgelist, ornetwork object.
domagal9 commented 4 years ago

@deklanw sorry about that! The code is now updated on GitHub, will hopefully also be updated on CRAN soon