zhanghao-njmu / SCP

An end-to-end Single-Cell Pipeline designed to facilitate comprehensive analysis and exploration of single-cell data.
https://zhanghao-njmu.github.io/SCP/
GNU General Public License v3.0
327 stars 70 forks source link

Issue on installation: object ‘LayerData<-’ is not exported by 'namespace:SeuratObject' #236

Open xiaodiYan opened 2 months ago

xiaodiYan commented 2 months ago

Error: package or namespace load failed for ‘SCP’: object ‘LayerData<-’ is not exported by 'namespace:SeuratObject'

wangtanzhang612 commented 2 months ago

same issue

Sawakotx commented 1 month ago

Same issue here. If you have any advice I would not be more grateful ! @zhanghao-njmu

When I install packages using 'devtools::install_github("zhanghao-njmu/SCP")', it occured the error below: Error: object 'LayerData<-' is not exported by 'namespace:SeuratObject' Execution halted ERROR: lazy loading failed for package 'SCP'

zonzero commented 1 month ago

I meet the same issue. My friend install successed in his Mac use SCP v5.1.0, and his Suerat is v4.3.0 and SeuratObject is v4.1.3. I try same ver packages in my windows but get error:Error: package or namespace load failed for ‘SCP’: object ‘LayerData<-’ is not exported by 'namespace:SeuratObject'. I try to found where use 'LarerData<-' in package, but I can't. It's very streng. I can't found the reason why it happen. @zhanghao-njmu I really need some help, thank you !

XiaolongYang-HZAU commented 1 month ago

这似乎是因为scp默认安装了seuratobj5,手动降级到4后再加载就可能会出现这个错误,但是我不知道如何解决

zonzero commented 4 weeks ago

这似乎是因为scp默认安装了seuratobj5,手动降级到4后再加载就可能会出现这个错误,但是我不知道如何解决

The "LayerData<-" is the special matter in SeuratObj5, I try to find what function using it in the SCP, but I can't. It‘s very odd.

mengxu98 commented 3 weeks ago

@zonzero @XiaolongYang-HZAU @Sawakotx @wangtanzhang612 @xiaodiYan 经过测试,通过下面的命令可以解决这个问题,其实就是使用Seurat 4,以及SeuratObject 5就可以了,你们可以尝试一下。 After testing, the following command can solve this problem, which is actually using Seurat 4 and SeuratObject 5, You can try it out. remove.packages(c("Seurat", "SeuratObject")) install.packages('Seurat', repos = c('https://satijalab.r-universe.dev')) install.packages('SeuratObject')

zonzero commented 3 weeks ago

@zonzero @XiaolongYang-HZAU @Sawakotx @wangtanzhang612 @xiaodiYan 经过测试,通过下面的命令可以解决这个问题,其实就是使用Seurat 4,以及SeuratObject 5就可以了,你们可以尝试一下。 After testing, the following command can solve this problem, which is actually using Seurat 4 and SeuratObject 5, You can try it out. remove.packages(c("Seurat", "SeuratObject")) install.packages('Seurat', repos = c('https://satijalab.r-universe.dev')) install.packages('SeuratObject')

Thank you for your suggestion. However, it seems that Seuratobj 5 has undergone significant changes compared to version 4. Have you tested the compatibility between Seurat 4 and Seuratobj 5? I am concerned that conflicts between them might cause the existing analysis pipeline to fail.

mengxu98 commented 3 weeks ago

@zonzero @XiaolongYang-HZAU @Sawakotx @wangtanzhang612 @xiaodiYan 经过测试,通过下面的命令可以解决这个问题,其实就是使用Seurat 4,以及SeuratObject 5就可以了,你们可以尝试一下。 After testing, the following command can solve this problem, which is actually using Seurat 4 and SeuratObject 5, You can try it out. remove.packages(c("Seurat", "SeuratObject")) install.packages('Seurat', repos = c('https://satijalab.r-universe.dev')) install.packages('SeuratObject')

Thank you for your suggestion. However, it seems that Seuratobj 5 has undergone significant changes compared to version 4. Have you tested the compatibility between Seurat 4 and Seuratobj 5? I am concerned that conflicts between them might cause the existing analysis pipeline to fail.

After modifying the Seurat version based on my description, I tested it on a dataset and all analysis and drawing processes worked properly. Please refer to the following figure: image

zonzero commented 3 weeks ago

@zonzero @XiaolongYang-HZAU @Sawakotx @wangtanzhang612 @xiaodiYan 经过测试,通过下面的命令可以解决这个问题,其实就是使用Seurat 4,以及SeuratObject 5就可以了,你们可以尝试一下。 After testing, the following command can solve this problem, which is actually using Seurat 4 and SeuratObject 5, You can try it out. remove.packages(c("Seurat", "SeuratObject")) install.packages('Seurat', repos = c('https://satijalab.r-universe.dev')) install.packages('SeuratObject')

Thank you for your suggestion. However, it seems that Seuratobj 5 has undergone significant changes compared to version 4. Have you tested the compatibility between Seurat 4 and Seuratobj 5? I am concerned that conflicts between them might cause the existing analysis pipeline to fail.

After modifying the Seurat version based on my description, I tested it on a dataset and all analysis and drawing processes worked properly. Please refer to the following figure: image

Thank you very much! I will try.