digitalcytometry / cytotrace2

CytoTRACE 2 is an interpretable AI method for predicting cellular potency and absolute developmental potential from scRNA-seq data.
Other
94 stars 8 forks source link

Error in var(x) : is.atomic(y) is not TRUE #40

Closed xiaoli-gg closed 1 week ago

xiaoli-gg commented 2 weeks ago

My code is below:

> cytotrace2_result_sce <- cytotrace2(
+   sce,                   # 输入的 Seurat 对象或 SingleCellExperiment 对象
+   is_seurat = TRUE,      # 是否为 Seurat 对象
+   slot_type = "counts",  # 数据类型(counts, logcounts 等)
+   species = 'human',     # 物种选择
+   seed = 1234            # 设置随机种子,保证结果可重复
+ )

cytotrace2: Started loading data
Dataset contains 27284 genes and 47920 cells.
cytotrace2: Running on 5 subsample(s) approximately of length 10000
cytotrace2: Started running on subsample(s). This will take a few minutes.
cytotrace2: Started preprocessing.
14097 input genes mapped to model genes.
cytotrace2: Started prediction.
This section will run using  5 / 20 core(s).
Error in var(x) : is.atomic(y) is not TRUE

I don't know how to solve this issue. I will be grateful if you told me the method solving this error!

savagyan00 commented 2 weeks ago

Hi and thank you for using CytoTRACE 2,

We are sorry you are experiencing an issue here. This stems from a conflict between specific versions of some of the package dependencies. It would be helpful to install the package and all its dependencies in a clean environment. Ideally, use the package versions provided here. Alternatively, you can share your session information (sessionInfo()) so that we can make more informed suggestions on how to solve the problem.

We appreciate your collaboration!

xiaoli-gg commented 2 weeks ago

Thanks for your reply! I can run this code normally, today.

savagyan00 commented 1 week ago

Glad to hear! Please don't hesitate to contact us with any questions in the future.