stefpeschel / NetCoMi

Network construction, analysis, and comparison for microbial compositional data
GNU General Public License v3.0
146 stars 26 forks source link

Error in sPath_rev[i, ] : subscript out of bounds #64

Closed Valentin-Bio-zz closed 2 years ago

Valentin-Bio-zz commented 2 years ago

Hello, when I run the netAnalyze() function to estimate the hub nodes I got the following error message:


stats_oral_AR_net <- netAnalyze(ctrl_netcomi, 
                                centrLCC = TRUE, 
                                clustMethod = "cluster_fast_greedy", 
                                hubPar = "eigenvector", 
                                normDeg = TRUE, weightDeg = FALSE)

Error in sPath_rev[i, ] : subscript out of bounds

what can be causing this? I constructed the NetCoMi network from the output ofspiec.easi(), as I see, it is appointing to the shortest path calculation , I tried changing the calculation method using the sPathAlgo argument but I still get the same error so it must be a data structure problem I guess.

Valentin-Bio-zz commented 2 years ago

changing centrLCC = FALSE made the trick