0

我最近开始使用“monocle3”,非常感谢您提前提供的所有帮助!

我正在尝试为我的数据构建单细胞轨迹,但我遇到了以下错误,不知道如何绕过它:

cds <- new_cell_data_set(expression_matrix,
                          cell_metadata = cell_metadata,
                          gene_metadata = gene_annotation)

错误:参数 expression_data 必须是矩阵 - 来自 Matrix 包的稀疏矩阵或密集矩阵

在此步骤之前,我已完成以下操作:

expression_matrix <- readRDS('C:\\....\\nbt_loc.rds')

cell_metadata <- readRDS('C:\\....\\nbt_loc.rds')

gene_annotation <- readRDS ('C:\\....\\nbt_loc.rds')

我真的很感谢大家的意见:)

干杯,

4

0 回答 0