bioFAM / MOFA2

Multi-Omics Factor Analysis
https://biofam.github.io/MOFA2/
GNU Lesser General Public License v3.0
300 stars 52 forks source link

Error with spikeslab_factors = TRUE #127

Open lujunyan1118 opened 1 year ago

lujunyan1118 commented 1 year ago

Hi MOFA2 developers,

I am trying to use spike and slab priors for factors, but if I set spikeslab_factors = TRUE, I got the error below:

Error in checkForRemoteErrors(lapply(cl, recvResult)) : one node produced an error: numpy.core._exceptions._UFuncNoLoopError: ufunc 'multiply' did not contain a loop with signature matching types (dtype('float64'), dtype('<U6')) -> None

Without it, the model runs fine. Do you know what could be the issue? Thanks a lot!

Best regards,

Junyan Lu

cyianor commented 1 year ago

Same error as in https://github.com/bioFAM/mofapy2/issues/17

cyianor commented 11 months ago

@lujunyan1118 The error is due to an error in mofapy2 which was now fixed by @gtca https://github.com/bioFAM/mofapy2/issues/17 and I assume it will be part of the eventual 0.7.1 release

You need to reinstall mofapy (e.g. as they recommend pip install git+https://github.com/bioFAM/mofapy2@v0.7.1 --force-reinstall --no-deps) to be able to get it working in MOFA2.

MOFA2 will complain that the mofapy2 version is off, but it should work.