运行Seurat FindNeighbors一步出现Error
Error in validObject(.Object) : invalid class “Graph” object: superclass "Mnumeric" not defined in the environment of the object's class
原因:Matrix版本不兼容(1.3-3)
解决方案:删除并安装1.3-2版本
#删除当前版本
remove.packages("Matrix")
#安装1.3-2版本
url <- "https://cran.r-project.org/src/contrib/Archive/Matrix/Matrix_1.3-2.tar.gz"
install.packages(url, repos=NULL, type="source")
#重新加载即可运行成功
参考资料
https://blog.csdn.net/u012110870/article/details/116518409
https://github.com/satijalab/seurat/issues/4445