Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in assay(object, i = exprs_values, ...) : 'assay(<SingleCellExperiment>, i="character", ...)' invalid subscript 'i' #13

Open
yueli8 opened this issue Mar 31, 2023 · 1 comment

Comments

@yueli8
Copy link

yueli8 commented Mar 31, 2023

Hello miaozhun,

Thank you so much for developing so nice software!

May I ask a quick question?

Thank you in advance for your great help!

Best,

Yue

> Dendritic.sce<-as.SingleCellExperiment(Dendritic)
> group<-factor(c(rep(1,2165),rep(2,363)))
> results<-DEsingle(counts=NKT.sec,group=group)
Error in assay(object, i = exprs_values, ...) : 
  'assay(<SingleCellExperiment>, i="character", ...)' invalid subscript 'i'
'counts' not in names(assays(<SingleCellExperiment>))
[Dendritic.zip](https://github.com/miaozhun/DEsingle/files/11120698/Dendritic.zip)


@yueli8
Copy link
Author

yueli8 commented Apr 3, 2023

library(Seurat)
library(scHCL)
###这里直接使用Seurat分析结果后的对象保存的rds文件
rds<-readRDS('cluster.ifnb.rds')
counts<-as.matrix(rds@assays$RNA@counts) ##官网建议的是Rawcounts
dim(counts)
#[1] 2884 80
https://www.jianshu.com/p/c88c045b0c28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant