关键词:单细胞转录组; scRNA-seq; Seurat; SingleCellExperiment; SingleR
SingleR包可基于单细胞转录组数据对细胞类型进行自动注释,可直接将Seurat对象传入SingleR函数,一步完成细胞类型预测。
Seurat对象在传入singleR实参前,需首先利用 as.SingleCellExperiment(Seurat_object) 转化为SingleCellExperiment对象。但这一步经常出错,常见报错信息如下:
Error in method(object) : all assays must have the same nrow and ncol.
亲测可行的解决方案如下:
Seurat_Object_Diet <- DietSeurat(curr.sce, graphs = "pca") # 先将Seurat object进行瘦身
SCE <- as.SingleCellExperiment(Seurat_Object_Diet) # 然后将其转化为SingleCellExperiment对象。最终,将SCE作为实参传入SingleR函数,即可成功运行命令。
参考资料:
| 留言与评论(共有 0 条评论) “” |