Hi,
Initially ran into this error on a small 1k pbmc dataset, but was able t…o reproduce it using the [dataset](https://cf.10xgenomics.com/samples/cell/pbmc3k/pbmc3k_filtered_gene_bc_matrices.tar.gz) given for the Guided Clustering Tutorial using the exact same [`Rmd` file](https://github.com/satijalab/seurat/blob/master/vignettes/pbmc3k_tutorial.Rmd). IIRC, the error popped up when attempting to knit the document (however, when assembling my custom Rmd file, the code chunks ran perfectly fine). Since attempting to knit the document, the error has persisted - even after restarts of both RStudio and Ubuntu. Perhaps worth mentioning that I recently updated Ubuntu and did a fresh install of R, RStudio, perhaps I am missing a package but it is not obvious to me with my limited experience with Seurat.
line 267:
```r
pbmc <- FindNeighbors(pbmc, dims = 1:10) # <- problem line
pbmc <- FindClusters(pbmc, resolution = 0.5)
# Look at cluster IDs of the first 5 cells
head(Idents(pbmc), 5)
```
`Error`:
> Error in validObject(.Object) : invalid class “Graph” object: superclass "Mnumeric" not defined in the environment of the object's class
`Traceback`:
```
13. stop(msg, ": ", errors, domain = NA)
12. validObject(.Object)
11. .nextMethod(.Object = .Object, ... = ...)
10. callNextMethod()
9. initialize(value, ...)
8. initialize(value, ...)
7. new(Class = "Graph", i = c(0L, 6L, 102L, 203L, 292L, 421L, 451L, 511L, 547L, 618L, 651L, 767L, 963L, 978L, 1005L, 1043L, 1148L, 1156L, 1264L, 1337L, 1338L, 1385L, 1504L, 1554L, 1573L, 1620L, 1695L, 1851L, 1904L, 1991L, 2079L, 2136L, 2187L, 2296L, 2317L, ...
6. do.call(what = "new", args = object.list)
5. UpdateSlots(object = object)
4. `DefaultAssay<-.Graph`(object = `*tmp*`, value = assay)
3. `DefaultAssay<-`(object = `*tmp*`, value = assay)
2. FindNeighbors.Seurat(pbmc, dims = 1:10)
1. FindNeighbors(pbmc, dims = 1:10)
```
***
```
> sessionInfo()
R version 4.0.5 (2021-03-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.2 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0
locale:
[1] LC_CTYPE=en_IE.UTF-8 LC_NUMERIC=C LC_TIME=en_IE.UTF-8 LC_COLLATE=en_IE.UTF-8 LC_MONETARY=en_IE.UTF-8
[6] LC_MESSAGES=en_IE.UTF-8 LC_PAPER=en_IE.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_IE.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] SeuratObject_4.0.0 dplyr_1.0.5 patchwork_1.1.1 Seurat_4.0.1
loaded via a namespace (and not attached):
[1] nlme_3.1-152 spatstat.sparse_2.0-0 matrixStats_0.58.0 RcppAnnoy_0.0.18 RColorBrewer_1.1-2 httr_1.4.2 sctransform_0.3.2
[8] tools_4.0.5 utf8_1.2.1 R6_2.5.0 irlba_2.3.3 rpart_4.1-15 KernSmooth_2.23-20 uwot_0.1.10
[15] mgcv_1.8-35 DBI_1.1.1 lazyeval_0.2.2 colorspace_2.0-1 withr_2.4.2 tidyselect_1.1.1 gridExtra_2.3
[22] compiler_4.0.5 cli_2.5.0 plotly_4.9.3 labeling_0.4.2 scales_1.1.1 spatstat.data_2.1-0 lmtest_0.9-38
[29] ggridges_0.5.3 pbapply_1.4-3 goftest_1.2-2 stringr_1.4.0 digest_0.6.27 spatstat.utils_2.1-0 rmarkdown_2.7
[36] pkgconfig_2.0.3 htmltools_0.5.1.1 parallelly_1.25.0 fastmap_1.1.0 htmlwidgets_1.5.3 rlang_0.4.11 rstudioapi_0.13
[43] shiny_1.6.0 farver_2.1.0 generics_0.1.0 zoo_1.8-9 jsonlite_1.7.2 ica_1.0-2 magrittr_2.0.1
[50] Matrix_1.3-3 Rcpp_1.0.6 munsell_0.5.0 fansi_0.4.2 abind_1.4-5 reticulate_1.20 lifecycle_1.0.0
[57] stringi_1.5.3 yaml_2.2.1 MASS_7.3-54 Rtsne_0.15 plyr_1.8.6 grid_4.0.5 parallel_4.0.5
[64] listenv_0.8.0 promises_1.2.0.1 ggrepel_0.9.1 crayon_1.4.1 deldir_0.2-10 miniUI_0.1.1.1 lattice_0.20-44
[71] cowplot_1.1.1 splines_4.0.5 tensor_1.5 knitr_1.33 pillar_1.6.0 igraph_1.2.6 spatstat.geom_2.1-0
[78] future.apply_1.7.0 reshape2_1.4.4 codetools_0.2-18 leiden_0.3.7 glue_1.4.2 evaluate_0.14 data.table_1.14.0
[85] png_0.1-7 vctrs_0.3.8 httpuv_1.6.0 polyclip_1.10-0 gtable_0.3.0 RANN_2.6.1 purrr_0.3.4
[92] spatstat.core_2.1-2 tidyr_1.1.3 scattermore_0.7 future_1.21.0 assertthat_0.2.1 ggplot2_3.3.3 xfun_0.22
[99] mime_0.10 xtable_1.8-4 later_1.2.0 survival_3.2-11 viridisLite_0.4.0 tibble_3.1.1 tinytex_0.31
[106] cluster_2.1.2 globals_0.14.0 fitdistrplus_1.1-3 ellipsis_0.3.2 ROCR_1.0-11
```