0

我是 R 的初学者,试图用 URD 分析我的 scRNA-seq 数据以绘制一棵树。为此,我想将我的 seurat 对象转换为 URD。所以我遵循了下面由 Jeff Farrell 编写的脚本。

base.path <- "~/urd-cluster-bushra/"

# Load Seurat object that has been cropped to hypothalamus cells

object.seurat <- readRDS(paste0(base.path, "obj/retina.new_seurat.rds"))

# Convert to URD object\
suburd <- seuratToURD(object.seurat)

但是,当我运行 seuratToURD 函数时,出现以下错误:

Error in as.matrix(seurat.object@data) : no slot of name "data" for this object of class "Seurat"

有没有人来解决这个问题?我迫切需要你的帮助!

谢谢!

4

0 回答 0