microeco icon indicating copy to clipboard operation
microeco copied to clipboard

R Session Aborted R encountered a fatal error The session was terminated

Open makerer5 opened this issue 10 months ago • 4 comments

Hi Chi When I updated 'microeco' to V 1.6.0, I used the following code to plot the microbial network: t1 <- trans_network$new(dataset = group_PR, cor_method = NULL, taxa_level = "OTU", filter_thres = 0.001); t1$ cal_network(network_method = "SpiecEasi", SpiecEasi_method = "mb"). I encountered Rstudio crashing situation when I ran other code without any problem. Does this code conflict with R? Maker image 2024-04-05 233726

makerer5 avatar Apr 05 '24 15:04 makerer5

Hi Maker. Could you please attach your data group_PR so that I can use my PC to reproduce it? To save the data, please follow the steps in the tutorial (https://chiliubio.github.io/microeco_tutorial/notes.html#save-function) and attach the compressed object.Message ID: @.***>

ChiLiubio avatar Apr 06 '24 01:04 ChiLiubio

dataset.zip Thanks, this is my data. I also ran into the following problem: t1$get_node_table(node_roles = TRUE) The nodes (364) with NaN in z will be filtered ... Error in private$assign_module_roles(zp) : No valid result obtained for this network!

makerer5 avatar Apr 06 '24 02:04 makerer5

Hi. Yes. I tested the steps using both windows and linux server and different microeco versions. All the sessions crashed. I am still not sure why it happened. If no available z value is found, please use node_roles = FALSE in get_node_table function.

ChiLiubio avatar Apr 07 '24 01:04 ChiLiubio

This is the case, but the good news is: I used "SpiecEasi" to build the co-occurrence network for other data without any errors. It seems that this data has a special structure. Maybe I should check the amplicon process. Anyway, thank you for your help!

makerer5 avatar Apr 08 '24 15:04 makerer5