SpiecEasi icon indicating copy to clipboard operation
SpiecEasi copied to clipboard

segfault: linked to #73

Open susheelbhanu opened this issue 3 years ago • 9 comments

Hi @zdk123,

Since #73 is closed and also 'cos I'm not specifically using phyloseq, opening a new issue for the following

Applying data transformations...
Selecting model with pulsar using stars...

 *** caught segfault ***
address (nil), cause 'unknown'

I'm trying to run SE as follows:

# Load the count file into R
prokaryote <- read.csv("prok.csv", check.names = FALSE, row.names = 1)
mat_prok <- as.matrix(prokaryote)

eukaryote <- read.csv("euk.csv", check.names = FALSE, row.names = 1)
mat_euk <- as.matrix(eukaryote)

SE <- spiec.easi(list(mat_prok, mat_euk), method = "mb", nlambda = 40, lambda.min.ratio = 1e-2, pulsar.params = list(thresh = 0.05))

I'm also attaching the input files for a cross-domain interaction network. Thanks for your help with this! prok.csv euk.csv

susheelbhanu avatar Aug 03 '21 19:08 susheelbhanu

Hey @zdk123 Any insights/help into this? Thank you!

susheelbhanu avatar Aug 08 '21 09:08 susheelbhanu

still happening?

zdk123 avatar Oct 20 '21 15:10 zdk123

Yup, still has an error if I run with 'mb'. Takes forever with 'glasso' but works in the end.

susheelbhanu avatar Oct 20 '21 15:10 susheelbhanu

Any update on this issue? I am also getting the same error.

rishibhandari63 avatar Aug 08 '23 14:08 rishibhandari63

@rishibhandari63 can you share your data/workflow? Private email if needed.

zdk123 avatar Aug 08 '23 14:08 zdk123

I eventually went with the 'glasso' method which ran okay. The 'mb' was giving me issues but I didn't find on a test run much difference between the two methods, so went with 'glasso'.

Hope it helps!

susheelbhanu avatar Aug 08 '23 14:08 susheelbhanu

@zdk123 I have shared the dataset in the email. @susheelbhanu I tried glasso but got the error asking me to use method mb instead of glasso. I am rerunning them with glasso and will update the result.

rishibhandari63 avatar Aug 08 '23 15:08 rishibhandari63

When I ran the network with flasso method and got the following error.

Run SpiecEasi and create association matrix for group 1

spiec_result_gr1 <- multi.spiec.easi(list(data_legume_bacteria, data_legume_fungi),

  •                                  method='glasso', nlambda=40, 
    
  •                                  lambda.min.ratio=1e-2, 
    
  •                                  pulsar.params = list(thresh = 0.05))
    

Applying data transformations... Selecting model with pulsar using stars... Fitting final estimate with glasso... done Warning messages: 1: In spiec.easi.list(datalist, method = method, sel.criterion = sel.criterion, : input list contains data of mixed classes. 2: In pulsar(data = X, fun = match.fun(estFun), fargs = args, thresh = 0.05, : Optimal lambda may be larger than the supplied values

getStability(spiec_result_gr1) [1] 0 saveRDS(spiec_result_gr1, "legume_spieceasi_network.rds") assoMat1 <- SpiecEasi::symBeta(SpiecEasi::getOptBeta(spiec_result_gr1), mode = "ave") Error in getOptX.pulsar.refit(est, "beta") : Run spiec-easi with method="mb" Calls: <Anonymous> ... nrow -> <Anonymous> -> getOptX -> getOptX.pulsar.refit Execution halted

rishibhandari63 avatar Sep 05 '23 14:09 rishibhandari63

@zdk123, any update on the issue?

rishibhandari63 avatar Nov 14 '23 22:11 rishibhandari63