satijalab / seurat-data

Dataset distribution for Seurat
GNU General Public License v3.0
129 stars 46 forks source link

Issue trying to access pancreasref when correctly installed #63

Closed ShanSabri closed 1 year ago

ShanSabri commented 1 year ago

Installation of reference atlas:

> InstallData("pancreasref", force = TRUE)
trying URL 'http://seurat.nygenome.org/src/contrib/pancreasref.SeuratData_1.0.0.tar.gz'
Content type 'application/octet-stream' length 49402458 bytes (47.1 MB)
==================================================
downloaded 47.1 MB

* installing *source* package ‘pancreasref.SeuratData’ ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (pancreasref.SeuratData)

The downloaded source packages are in
    ‘/tmp/RtmpySfiOS/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done

Loading of reference atlas:

> library(SeuratData)
── Installed datasets ── SeuratData v0.2.2 ──
✔ pancreasref 1.0.0                                                                                                              

── Key ──
✔ Dataset loaded successfully
❯ Dataset built with a newer version of Seurat than installed
❓ Unknown version of Seurat installed

> data("pancreasref")
Warning message:
In data("pancreasref") : data set ‘pancreasref’ not found

> data("pancreasref.SeuratData")
Warning message:
In data("pancreasref.SeuratData") :
  data set ‘pancreasref.SeuratData’ not found

> LoadData("pancreasref")
Error: Could not find dataset 'pancreasref', please check manifest and try again

> LoadData("pancreasref.SeuratData")
Error: Could not find dataset 'pancreasref', please check manifest and try again

Any help would be greatly appreciated!

SessionInfo:

R version 4.2.2 (2022-10-31)
Platform: x86_64-conda-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)

Matrix products: default
BLAS/LAPACK: /compbio/home/shan.sabri/miniconda3/lib/libopenblasp-r0.3.21.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

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

other attached packages:
[1] pancreasref.SeuratData_1.0.0 SeuratData_0.2.2

loaded via a namespace (and not attached):
  [1] nlme_3.1-161           matrixStats_0.63.0     spatstat.sparse_3.0-0
  [4] RcppAnnoy_0.0.20       RColorBrewer_1.1-3     httr_1.4.4
  [7] sctransform_0.3.5      tools_4.2.2            utf8_1.2.2
 [10] R6_2.5.1               irlba_2.3.5.1          KernSmooth_2.23-20
 [13] uwot_0.1.14            lazyeval_0.2.2         colorspace_2.1-0
 [16] sp_1.6-0               tidyselect_1.2.0       gridExtra_2.3
 [19] compiler_4.2.2         progressr_0.13.0       cli_3.6.0
 [22] spatstat.explore_3.0-6 plotly_4.10.1          Seurat_4.3.0
 [25] scales_1.2.1           lmtest_0.9-40          spatstat.data_3.0-0
 [28] ggridges_0.5.4         pbapply_1.7-0          rappdirs_0.3.3
 [31] goftest_1.2-3          stringr_1.5.0          digest_0.6.31
 [34] spatstat.utils_3.0-1   pkgconfig_2.0.3        htmltools_0.5.4
 [37] parallelly_1.34.0      fastmap_1.1.0          htmlwidgets_1.6.1
 [40] rlang_1.0.6            shiny_1.7.4            generics_0.1.3
 [43] zoo_1.8-11             jsonlite_1.8.4         spatstat.random_3.1-3
 [46] ica_1.0-3              dplyr_1.1.0            magrittr_2.0.3
 [49] patchwork_1.1.2        Matrix_1.5-3           Rcpp_1.0.10
 [52] munsell_0.5.0          fansi_1.0.4            abind_1.4-5
 [55] reticulate_1.28        lifecycle_1.0.3        stringi_1.7.12
 [58] MASS_7.3-58.2          Rtsne_0.16             plyr_1.8.8
 [61] grid_4.2.2             parallel_4.2.2         listenv_0.9.0
 [64] promises_1.2.0.1       ggrepel_0.9.2          crayon_1.5.2
 [67] deldir_1.0-6           miniUI_0.1.1.1         lattice_0.20-45
 [70] cowplot_1.1.1          splines_4.2.2          tensor_1.5
 [73] pillar_1.8.1           igraph_1.3.5           spatstat.geom_3.0-6
 [76] future.apply_1.10.0    reshape2_1.4.4         codetools_0.2-18
 [79] leiden_0.4.3           glue_1.6.2             SeuratObject_4.1.3
 [82] data.table_1.14.6      png_0.1-8              vctrs_0.5.2
 [85] httpuv_1.6.8           polyclip_1.10-4        gtable_0.3.1
 [88] RANN_2.6.1             purrr_1.0.1            tidyr_1.3.0
 [91] scattermore_0.8        future_1.30.0          ggplot2_3.4.0
 [94] mime_0.12              xtable_1.8-4           later_1.3.0
 [97] survival_3.5-0         viridisLite_0.4.1      tibble_3.1.8
[100] cluster_2.1.4          globals_0.16.2         fitdistrplus_1.1-8
[103] ellipsis_0.3.2         ROCR_1.0-11
ShanSabri commented 1 year ago

Solution

library(pancreasref.SeuratData)
library(Azimuth)
atlas <- LoadData("pancreasref", "azimuth")
DimPlot(atlas$plot, group.by = "annotation.l1")
DimPlot(atlas$map, reduction = "refDR")
DimPlot(atlas$map, reduction = "refUMAP")