satijalab / seurat

R toolkit for single cell genomics
http://www.satijalab.org/seurat
Other
2.25k stars 904 forks source link

Cannot install the updated versions of Seurat and SeuratObject for the Image-based Spatial data vignette #5839

Closed vigneshshanmug closed 1 year ago

vigneshshanmug commented 2 years ago

Hello team,

I am trying to run the new vignette on the analysis of image-based spatial datasets but I am unable to install the correct updated versions of SeuratObject to use the new functions. I am getting an error message (copied below) which states that a different version of SeuratObject (>= 4.0.999.9009) is required and I cannot find this updated version. I would really appreciate your help in resolving this error.

library(remotes)
remotes::install_github("satijalab/seurat", "feat/imaging")

Error message: Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : namespace ‘SeuratObject’ 4.0.4 is being loaded, but >= 4.0.999.9009 is required Calls: ... namespaceImportFrom -> asNamespace -> loadNamespace Execution halted ERROR: lazy loading failed for package ‘Seurat’ ─ removing ‘/private/var/folders/nw/tpbh3cq17d57q0htyz9hp8300000gp/T/RtmpJxomfM/Rinst116e149388475/Seurat’

ERROR: package installation failed

Output of sessionInfo() -

R version 4.0.3 (2020-10-10) Platform: x86_64-apple-darwin17.0 (64-bit) Running under: macOS Big Sur 10.16

Matrix products: default LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib

locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] RCTD_1.2.0

loaded via a namespace (and not attached): [1] Seurat_4.1.0 Rtsne_0.15 colorspace_2.0-3
[4] deldir_1.0-6 ellipsis_0.3.2 ggridges_0.5.3
[7] rprojroot_2.0.3 rstudioapi_0.13 spatstat.data_2.1-4
[10] leiden_0.3.9 listenv_0.8.0 farver_2.1.0
[13] remotes_2.4.2 ggrepel_0.9.1 fansi_1.0.3
[16] codetools_0.2-18 splines_4.0.3 doParallel_1.0.16
[19] polyclip_1.10-0 jsonlite_1.8.0 ica_1.0-2
[22] cluster_2.1.2 png_0.1-7 uwot_0.1.11
[25] shiny_1.7.1 sctransform_0.3.3 spatstat.sparse_2.1-0 [28] compiler_4.0.3 httr_1.4.2 assertthat_0.2.1
[31] SeuratObject_4.0.4 Matrix_1.4-0 fastmap_1.1.0
[34] lazyeval_0.2.2 cli_3.2.0 later_1.3.0
[37] htmltools_0.5.2 prettyunits_1.1.1 tools_4.0.3
[40] igraph_1.3.0 gtable_0.3.0 glue_1.6.2
[43] RANN_2.6.1 reshape2_1.4.4 dplyr_1.0.8
[46] Rcpp_1.0.8.3 scattermore_0.8 vctrs_0.4.0
[49] nlme_3.1-155 iterators_1.0.13 lmtest_0.9-40
[52] spatstat.random_2.2-0 stringr_1.4.0 globals_0.14.0
[55] ps_1.6.0 mime_0.12 miniUI_0.1.1.1
[58] lifecycle_1.0.1 irlba_2.3.5 goftest_1.2-3
[61] future_1.24.0 MASS_7.3-55 zoo_1.8-9
[64] scales_1.1.1 spatstat.core_2.4-2 promises_1.2.0.1
[67] spatstat.utils_2.3-0 parallel_4.0.3 RColorBrewer_1.1-3
[70] curl_4.3.2 reticulate_1.24 pbapply_1.5-0
[73] gridExtra_2.3 ggplot2_3.3.5 rpart_4.1.16
[76] stringi_1.7.6 foreach_1.5.1 pkgbuild_1.3.1
[79] rlang_1.0.2 pkgconfig_2.0.3 matrixStats_0.61.0
[82] lattice_0.20-45 ROCR_1.0-11 purrr_0.3.4
[85] tensor_1.5 patchwork_1.1.1 htmlwidgets_1.5.4
[88] cowplot_1.1.1 tidyselect_1.1.2 processx_3.5.2
[91] parallelly_1.31.0 RcppAnnoy_0.0.19 plyr_1.8.7
[94] magrittr_2.0.3 R6_2.5.1 generics_0.1.2
[97] DBI_1.1.2 withr_2.5.0 pillar_1.7.0
[100] mgcv_1.8-38 fitdistrplus_1.1-8 survival_3.2-13
[103] abind_1.4-5 tibble_3.1.6 future.apply_1.8.1
[106] crayon_1.5.1 KernSmooth_2.23-20 utf8_1.2.2
[109] spatstat.geom_2.4-0 plotly_4.10.0 grid_4.0.3
[112] data.table_1.14.2 callr_3.7.0 digest_0.6.29
[115] xtable_1.8-4 tidyr_1.2.0 httpuv_1.6.5
[118] munsell_0.5.0 viridisLite_0.4.0

jarchana09 commented 2 years ago

Hi Vignesh, not a member of Seurat development team, but perhaps this can help. Since you are trying to install 2 packages, you could include them in a vector as: remotes::install_github(c("satijalab/seurat", "feat/imaging")) Hope this helps. Thanks.

vigneshshanmug commented 2 years ago

Thanks for your response @jarchana09! That doesn't seem to solve the issue. I am getting the following error with that command -

`Error: Failed to install 'unknown package' from GitHub: HTTP error 404. Not Found

Did you spell the repo owner (feat) and repo name (imaging) correctly?

jarchana09 commented 2 years ago

Perhaps, the suggestion by Paul Hoffman (Satija lab) in this link may help: https://github.com/satijalab/seurat/issues/5713#issuecomment-1065210089 Thanks.

vigneshshanmug commented 2 years ago

Thanks @jarchana09! That seems like the same issue as me. But I am still unable to install the newer version of SeuratObject . I am getting a compilation error and I have copied the long error log below. It seems to be an issue with the RcppEigen package which was discussed here #4095 . But reinstalling the RcppEigen package does not seem to solve this problem.

Downloading GitHub repo mojaveazure/seurat-object@feat/imaging

✓ checking for file ‘/private/var/folders/nw/tpbh3cq17d57q0htyz9hp8300000gp/T/Rtmpf95UO8/remotes95178ce3961/mojaveazure-seurat-object-9c405ca/DESCRIPTION’ (968ms) ─ preparing ‘SeuratObject’: ✓ checking DESCRIPTION meta-information ... ─ cleaning src ─ checking for LF line-endings in source and make files and shell scripts (930ms) ─ checking for empty or unneeded directories (739ms) ─ building ‘SeuratObject_4.0.999.9011.tar.gz’

AustinHartman commented 1 year ago

Closing because the image-based spatial transcriptomics update in Seurat is now available on CRAN.