Open royfrancis opened 1 year ago
Hi @royfrancis, can you describe how did you install the MOFA2 R pacakge and the mofapy2 package? The latest stable version of MOFA2 in Bioconductor 3.14 should be 1.6.0 (https://bioconductor.org/packages/3.14/bioc/html/MOFA2.html). I noticed that you have 1.4.0. Maybe this is the issue?
Also, if you have issues with the R/python connection I would suggest trying the basilisk function which will install the conda environment from scratch
mot <- run_mofa(mo,outfile, use_basilisk=TRUE)
Hi @rargelaguet, yes, it works when using use_basilisk=TRUE
.
But anyway, just to describe my setup, I have MOFA2 (installed from Bioconductor) in a conda env which I use for all R stuff. And I installed mofapy2 and all it's dependencies as a separate conda env.
This specific error Module 'scipy' has no attribute 'random'
is likely happening because older releases of scipy used to export numpy functions, but scipy no longer does.
You've installed a newer version of scipy than MOFA2 can work with, so the recommendations here are to install an older, compatible version of scipy.
@royfrancis and @pettyalex could you post the list of python packages in your environment? (particularly for scipy). A few months ago I removed all the numpy functions called via scipy. MOFA should now work with the latest version of scipy.
Here is a list of all packages in the conda env.
Try checking your version of python scipy I reinstalled to 1.7 and that fixed the error.
@byeongchangsim - did you use the scipy version 1.7.0 ?
That's right.
2023년 3월 13일 (월) 오후 10:38, Paddy @.***>님이 작성:
@byeongchangsim https://github.com/byeongchangsim - did you use the scipy version 1.7.0 ?
— Reply to this email directly, view it on GitHub https://github.com/bioFAM/MOFA2/issues/108#issuecomment-1466162257, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS6YL25XIRTBWV2TDDNYHXTW34PPDANCNFSM6AAAAAARPK3ZKU . You are receiving this because you were mentioned.Message ID: @.***>
I have installed a conda env with mofapy.
But, I can't get
run_mofa
to work.Then , I reinstalled mofapy to an older version: 0.6.4. This worked a little bit more and crashed at this error:
Here is a complete reprex:
Created on 2022-10-26 with reprex v2.0.2
Session info
``` r sessioninfo::session_info() #> ─ Session info ─────────────────────────────────────────────────────────────── #> setting value #> version R version 4.1.0 (2021-05-18) #> os Ubuntu 20.04.5 LTS #> system x86_64, linux-gnu #> ui X11 #> language en_GB:en #> collate en_GB.UTF-8 #> ctype en_GB.UTF-8 #> date 2022-10-26 #> pandoc 2.18 @ /usr/lib/rstudio/bin/quarto/bin/tools/ (via rmarkdown) #> #> ─ Packages ─────────────────────────────────────────────────────────────────── #> package * version date (UTC) lib source #> assertthat 0.2.1 2019-03-21 [1] CRAN (R 4.1.0) #> basilisk 1.4.0 2021-05-19 [1] Bioconductor #> basilisk.utils 1.4.0 2021-05-19 [1] Bioconductor #> BiocGenerics 0.40.0 2021-10-26 [1] Bioconductor #> cli 3.4.1 2022-09-23 [1] CRAN (R 4.1.0) #> colorspace 2.0-3 2022-02-21 [1] CRAN (R 4.1.0) #> corrplot 0.92 2021-11-18 [1] CRAN (R 4.1.0) #> cowplot 1.1.1 2020-12-30 [1] CRAN (R 4.1.0) #> DBI 1.1.3 2022-06-18 [1] CRAN (R 4.1.0) #> DelayedArray 0.20.0 2021-10-26 [1] Bioconductor #> digest 0.6.30 2022-10-18 [1] CRAN (R 4.1.0) #> dir.expiry 1.0.0 2021-05-19 [1] Bioconductor #> dplyr 1.0.10 2022-09-01 [1] CRAN (R 4.1.0) #> evaluate 0.17 2022-10-07 [1] CRAN (R 4.1.0) #> fansi 1.0.3 2022-03-24 [1] CRAN (R 4.1.0) #> fastmap 1.1.0 2021-01-25 [1] CRAN (R 4.1.0) #> filelock 1.0.2 2018-10-05 [1] CRAN (R 4.1.0) #> forcats 0.5.2 2022-08-19 [1] CRAN (R 4.1.0) #> fs 1.5.2 2021-12-08 [1] CRAN (R 4.1.0) #> generics 0.1.3 2022-07-05 [1] CRAN (R 4.1.0) #> ggplot2 3.3.6 2022-05-03 [1] CRAN (R 4.1.0) #> ggrepel 0.9.1 2021-01-15 [1] CRAN (R 4.1.0) #> glue 1.6.2 2022-02-24 [1] CRAN (R 4.1.0) #> gtable 0.3.1 2022-09-01 [1] CRAN (R 4.1.0) #> HDF5Array 1.22.1 2021-11-14 [1] Bioconductor #> here 1.0.1 2020-12-13 [1] CRAN (R 4.1.0) #> highr 0.9 2021-04-16 [1] CRAN (R 4.1.0) #> htmltools 0.5.3 2022-07-18 [1] CRAN (R 4.1.0) #> IRanges 2.28.0 2021-10-26 [1] Bioconductor #> jsonlite 1.8.3 2022-10-21 [1] CRAN (R 4.1.0) #> knitr 1.40 2022-08-24 [1] CRAN (R 4.1.0) #> lattice 0.20-45 2021-09-22 [1] CRAN (R 4.1.0) #> lifecycle 1.0.3 2022-10-07 [1] CRAN (R 4.1.0) #> magrittr 2.0.3 2022-03-30 [1] CRAN (R 4.1.0) #> Matrix 1.5-1 2022-09-13 [1] CRAN (R 4.1.0) #> MatrixGenerics 1.6.0 2021-10-26 [1] Bioconductor #> matrixStats 0.62.0 2022-04-19 [1] CRAN (R 4.1.0) #> MOFA2 * 1.4.0 2021-10-26 [1] Bioconductor #> munsell 0.5.0 2018-06-12 [1] CRAN (R 4.1.0) #> pheatmap 1.0.12 2019-01-04 [1] CRAN (R 4.1.0) #> pillar 1.8.1 2022-08-19 [1] CRAN (R 4.1.0) #> pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.1.0) #> plyr 1.8.7 2022-03-24 [1] CRAN (R 4.1.0) #> png 0.1-7 2013-12-03 [1] CRAN (R 4.1.0) #> purrr 0.3.5 2022-10-06 [1] CRAN (R 4.1.0) #> R.cache 0.16.0 2022-07-21 [1] CRAN (R 4.1.0) #> R.methodsS3 1.8.2 2022-06-13 [1] CRAN (R 4.1.0) #> R.oo 1.25.0 2022-06-12 [1] CRAN (R 4.1.0) #> R.utils 2.12.0 2022-06-28 [1] CRAN (R 4.1.0) #> R6 2.5.1 2021-08-19 [1] CRAN (R 4.1.0) #> rappdirs 0.3.3 2021-01-31 [1] CRAN (R 4.1.0) #> RColorBrewer 1.1-3 2022-04-03 [1] CRAN (R 4.1.0) #> Rcpp 1.0.9 2022-07-08 [1] CRAN (R 4.1.0) #> reprex 2.0.2 2022-08-17 [1] CRAN (R 4.1.0) #> reshape2 1.4.4 2020-04-09 [1] CRAN (R 4.1.0) #> reticulate 1.26 2022-08-31 [1] CRAN (R 4.1.0) #> rhdf5 2.38.1 2022-03-10 [1] Bioconductor #> rhdf5filters 1.6.0 2021-10-26 [1] Bioconductor #> Rhdf5lib 1.16.0 2021-10-26 [1] Bioconductor #> rlang 1.0.6 2022-09-24 [1] CRAN (R 4.1.0) #> rmarkdown 2.17 2022-10-07 [1] CRAN (R 4.1.0) #> rprojroot 2.0.3 2022-04-02 [1] CRAN (R 4.1.0) #> rstudioapi 0.14 2022-08-22 [1] CRAN (R 4.1.0) #> Rtsne 0.16 2022-04-17 [1] CRAN (R 4.1.0) #> S4Vectors 0.32.4 2022-03-24 [1] Bioconductor #> scales 1.2.1 2022-08-20 [1] CRAN (R 4.1.0) #> sessioninfo 1.2.2 2021-12-06 [1] CRAN (R 4.1.0) #> stringi 1.7.8 2022-07-11 [1] CRAN (R 4.1.0) #> stringr 1.4.1 2022-08-20 [1] CRAN (R 4.1.0) #> styler 1.8.0 2022-10-22 [1] CRAN (R 4.1.0) #> tibble 3.1.8 2022-07-22 [1] CRAN (R 4.1.0) #> tidyr 1.2.1 2022-09-08 [1] CRAN (R 4.1.0) #> tidyselect 1.2.0 2022-10-10 [1] CRAN (R 4.1.0) #> utf8 1.2.2 2021-07-24 [1] CRAN (R 4.1.0) #> uwot 0.1.14 2022-08-22 [1] CRAN (R 4.1.0) #> vctrs 0.5.0 2022-10-22 [1] CRAN (R 4.1.0) #> withr 2.5.0 2022-03-03 [1] CRAN (R 4.1.0) #> xfun 0.34 2022-10-18 [1] CRAN (R 4.1.0) #> yaml 2.3.6 2022-10-18 [1] CRAN (R 4.1.0) #> #> [1] /home/roy/miniconda3/envs/r-4.1/lib/R/library #> #> ─ Python configuration ─────────────────────────────────────────────────────── #> python: /home/roy/miniconda3/envs/mofa/bin/python #> libpython: /home/roy/miniconda3/envs/mofa/lib/libpython3.10.so #> pythonhome: /home/roy/miniconda3/envs/mofa:/home/roy/miniconda3/envs/mofa #> version: 3.10.6 (main, Oct 24 2022, 16:07:47) [GCC 11.2.0] #> numpy: /home/roy/miniconda3/envs/mofa/lib/python3.10/site-packages/numpy #> numpy_version: 1.23.4 #> mofapy2: /home/roy/miniconda3/envs/mofa/lib/python3.10/site-packages/mofapy2 #> #> NOTE: Python version was forced by use_python function #> #> ────────────────────────────────────────────────────────────────────────────── ```